#include <customnodeguiproxy.h>
|
MAXON_METHOD Result< DescriptionPropertyCustomGui * > | CreateAttribute (const DescID &id, Bool &resNeedsUnfoldGroup, const BaseArray< BaseList2D * > &objects, ATTRIBUTEMANAGER::CREATEATTRIBUTEFLAGS flags) |
|
MAXON_METHOD Result< Int32 > | GetAttributeGadgetBaseId (const DescID &id) |
|
MAXON_METHOD Result< void > | CreateAttributeValue (const DescID &id, const BaseArray< BaseList2D * > &objects) |
|
MAXON_METHOD Result< void > | RemoveAttributeValue (const DescID &id) |
|
MAXON_METHOD Result< void > | CreateUnfoldGroup (const DescID &id, const BaseArray< BaseList2D * > *objects, Bool setValues) |
|
MAXON_METHOD Result< void > | ConnectAttributeValue (const DescID &id, Int32 gadId, const ATTRIBUTEMANAGER::SetValueCallback &setValueCallback, const ATTRIBUTEMANAGER::ChangeValueCallback &changeValueCallback) |
|
MAXON_METHOD Result< Int32 > | ForwardMessage (const BaseContainer &msg, BaseContainer &result) |
|
MAXON_METHOD Result< BaseArray< BaseList2D * > > | GetObjects (const BaseDocument &baseDocument) const |
|
MAXON_METHOD Result< const DescTranslation & > | DeprecatedGetDescTranslation (const BaseList2D &baseList) const |
|
MAXON_METHOD Result< GraphNode > | GetNode (const BaseList2D &baseList) const |
|
MAXON_METHOD Result< DescTranslationRef > | GetDescTranslation (const BaseList2D &baseList, Description *desc=nullptr) const |
|
◆ MAXON_INTERFACE()
◆ CreateAttribute()
Creates an attribute manager attribute. This is just the "control dot", not the value itself. Note that no artificial (or virtual) elements can be created. Only existing elements can be reordered. This routine is should be called within CreateLayout.
- Parameters
-
[in] | id | A valid DescID for the element. |
[out] | resNeedsUnfoldGroup | Returns information if the element requires an open/close unfold element. |
[in] | objects | Optional parameter to set objects list. Nullptr to auto detect objects. |
[in] | flags | See ATTRIBUTEMANAGER::CREATEATTRIBUTEFLAGS. |
- Returns
- The created CustomGui element if successful.
◆ GetAttributeGadgetBaseId()
Returns the gadget base id of the attribute manager object.
- Parameters
-
[in] | id | A valid DescID for the element. |
- Returns
- Int32 with the gadget base id on success.
◆ CreateAttributeValue()
Creates an attribute manager value. This is data value, not the "control dot". Note that no artificial (or virtual) elements can be created. Only existing elements can be reordered. This routine is should be called within CreateLayout.
- Parameters
-
[in] | id | A valid DescID for the element. |
[in] | objects | Optional parameter to set objects list. Nullptr to auto detect objects. |
- Returns
- OK on success.
◆ RemoveAttributeValue()
Removes an attribute manager value from the current layout. This routine is should be called between LayoutFlushGroup and LayoutChanged.
- Parameters
-
[in] | id | A valid DescID for the element. |
- Returns
- OK on success.
◆ CreateUnfoldGroup()
Creates an open/close unfolding group. This routine is should be called within CreateLayout.
- Parameters
-
[in] | id | A valid DescID for the element. |
[in] | objects | Optional parameter to set objects list. Nullptr to auto detect objects. |
[in] | setValues | True to set the parameters immediately (e.g. on update layouts). Should be false in CreateLayout calls. |
- Returns
- OK on success.
◆ ConnectAttributeValue()
Installs callbacks to intercept an element's data access. This routine is should be called within CreateLayout.
- Parameters
-
[in] | id | A valid DescID for the element. |
[in] | gadId | The dialog gadget Id. |
[in] | setValueCallback | The callback that will be called when values are set. |
[in] | changeValueCallback | The callback that will be called when values are modified. |
- Returns
- OK on success.
◆ ForwardMessage()
Forwards UI messages to the original element. This is necessary, so that e.g. the "control dot" can work. It is called within a CustomGui's Message (typically for BFM_ACTION).
- Parameters
-
[in] | msg | The message to be forwarded. |
[out] | result | The result of the message. |
- Returns
- The result value to be returned in Message().
◆ GetObjects()
Returns the list of objects that are currently shown in the attribute manager.
- Parameters
-
[in] | baseDocument | The document. |
- Returns
- Array of objects.
◆ DeprecatedGetDescTranslation()
@MAXON_ANNOTATION{methodId="DeprecatedGetDescTranslation@8c496b8a71c5a2b6"->"GetDescTranslation@8c496b8a71c5a2b6"}
◆ GetNode()
Returns a node for an object that is shown in the attribute manager.
- Parameters
-
[in] | baseList | A valid object that is currently shown in the attribute manager. |
- Returns
- The corresponding node.
◆ GetDescTranslation()
Returns a translation map for an object that is shown in the attribute manager. The translation map holds information to map e.g. DescIDs to port IDs of nodes.
- Parameters
-
[in] | baseList | A valid object that is currently shown in the attribute manager. |
[out] | desc | When set, a call to bl.GetDescription() is made at first to update the translation structure, and the resulting description is written to desc. |
- Returns
- The translation map, will never be a null reference on success.