#include <customgui_description.h>
Attribute Manager custom GUI (CUSTOMGUI_DESCRIPTION).
Here are the settings: DESCRIPTION_CUSTOMGUISETTINGS
|
void | SetMaster (GeDialog *dlg, MasterCallBackFunc *func) |
|
GeData | MasterMessage (const BaseContainer &msg) |
|
void | SetObjectList (const AtomArray &list, Bool limitExceeded=false) |
|
void | SetObject (C4DAtom *op) |
|
Bool | GetObjectList (AtomArray &list) |
|
void | SetFilter (DescriptionFilter *flt) |
|
DescID | HighlightDescID (const DescID &id, Bool check) |
|
void | SetActiveTabPage (const DescID &activetab) |
|
Bool | GetDescIDSelection (BaseContainer &selection) |
|
String | GetFilterString (AMFILTERFLAGS &flags) |
|
void | SetFilterString (const maxon::String &filter, AMFILTERFLAGS flags) |
|
void | SetTranslation (const maxon::Delegate< Bool(GeListNode *node, const DescID &id, DescID &resultId, C4DAtom *&resultAtom)> &func, Bool objectControl=false) |
|
void | ClearTranslation () |
|
maxon::Result< void > | ModifyDescription (maxon::Delegate< void(GeListNode *node, Description &description, DESCFLAGS_DESC flags)> &&func) |
|
void | ClearModifyDescription () |
|
Int32 | GetWidth () |
|
Int32 | GetHeight () |
|
void | Redraw () |
|
Bool | LayoutChanged () |
|
Bool | Activate () |
|
Bool | SetDefaultForResEdit () |
|
Bool | SetData (const TriState< GeData > &tristate) |
|
TriState< GeData > | GetData () |
|
void | SetLayoutMode (Int32 mode) |
|
Int32 | GetLayoutMode () |
|
Bool | SupportLayoutSwitch () |
|
Int32 | GetWidth (Int32 plugid) |
|
Int32 | GetHeight (Int32 plugid) |
|
void | Redraw (Int32 plugid) |
|
Bool | LayoutChanged (Int32 plugid) |
|
Bool | Activate (Int32 plugid) |
|
Bool | SetDefaultForResEdit (Int32 plugid) |
|
Bool | SetData (Int32 plugid, const TriState< GeData > &tristate) |
|
TriState< GeData > | GetData (Int32 plugid) |
|
void | SetLayoutMode (Int32 plugid, Int32 mode) |
|
Int32 | GetLayoutMode (Int32 plugid) |
|
Bool | SupportLayoutSwitch (Int32 plugid) |
|
◆ DescriptionCustomGui()
◆ ~DescriptionCustomGui()
◆ SetMaster()
Registers the master callback function.
- Parameters
-
[in] | dlg | The parent dialog. The caller owns the pointed dialog. |
[in] | func | The callback function. |
◆ MasterMessage()
Sends a master message to the custom GUI.
- Parameters
-
- Returns
- The result.
◆ SetObjectList()
void SetObjectList |
( |
const AtomArray & |
list, |
|
|
Bool |
limitExceeded = false |
|
) |
| |
Sets the objects that are shown.
- Parameters
-
[in] | list | The objects to show. |
[in] | limitExceeded | Set to true if if the object count exceeded some limit. |
◆ SetObject()
Sets a single objects to show.
- Parameters
-
[in] | op | The object to show. The caller owns the pointed object. |
◆ GetObjectList()
Retrieves the objects that are shown.
- Parameters
-
[out] | list | Filled with the objects shown. |
- Returns
- true if successful, otherwise false.
◆ SetFilter()
Private. Registers a filter callback for the description.
- Parameters
-
[in] | flt | The callback structure, or nullptr to unregister the filter. The caller owns the pointed structure. |
◆ HighlightDescID()
◆ SetActiveTabPage()
void SetActiveTabPage |
( |
const DescID & |
activetab | ) |
|
Sets the active description tab.
- Parameters
-
[in] | activetab | The tab's page description ID. |
◆ GetDescIDSelection()
Retrieves the description IDs of the selected description elements.
- Parameters
-
[out] | selection | Filled with the description IDs of the selected description elements. The container elements' type is CUSTOMDATATYPE_DESCID. |
- Returns
- true if successful, otherwise false.
◆ GetFilterString()
Gets the current filter string and flags.
- Parameters
-
- Returns
- The current filter string.
◆ SetFilterString()
Sets the current filter string and flags.
- Parameters
-
[in] | filter | The filter string. |
[in] | flags | The filter flags: AMFILTERFLAGS |
◆ SetTranslation()
Sets a lambda function that you can use to translate any DescID within the Description via.
- Parameters
-
[in] | func | The translation lambda function, follows the same signature as C4DAtom::TranslateDescID. |
[in] | objectControl | (Optional) True to not translate for GetDEnabling (leave control with the original object). |
◆ ClearTranslation()
void ClearTranslation |
( |
| ) |
|
Clears the function set by SetParentTranslation.
◆ ModifyDescription()
@markprivate Sets a lambda function that you can use to modify the description shown in the attributes manager
- Parameters
-
[in] | func | The modification function. |
- Returns
- OK on success.
◆ ClearModifyDescription()
void ClearModifyDescription |
( |
| ) |
|
Clears the function set by ModifyDescription.