#include <datadescription_ui.h>
This interface provides helper functions for ui stuff in combination with descriptions.
Static Public Member Functions | |
static MAXON_METHOD Result< Bool > | EvaluateCondition (const CString &condition, const DataDescriptionWithUIAndString &description, const BaseArray< DataDictionary > &uiEntries, const GetDataCallbackType &getDataCallback, const HashMap< CString, CString > &externalVariables) |
static MAXON_METHOD Result< void > | BuildPopupMenuForDescription (const DataDescriptionWithUIAndString &description, const HashMap< CString, CString > &externalVariables, const ContextVarsMap &contextVars, const ValueReceiver< SubMenuEntry && > &mainMenuEntries) |
static MAXON_METHOD Result< Bool > | EvaluateCondition (const CString &condition, const DataDescriptionWithUIAndString &description, const GetDataCallbackType &getDataCallback, const HashMap< CString, CString > &externalVariables) |
static MAXON_METHOD Result< Bool > | EvaluateCondition (const CString &condition, const DataDescriptionWithUIAndString &description, const GetDescEntriesCallbackType &getDescCallback, const GetDataCallbackType &getDataCallback, const HashMap< CString, CString > &externalVariables) |
static MAXON_METHOD Result< BaseArray< CString > > | TokenizeCondition (const CString &condition, const DataDescriptionWithUIAndString &description, const GetDescEntriesCallbackType &getDescCallback, const GetDataCallbackType &getDataCallback, const ValueReceiver< const ConditionToken & > &tokenRecv=ValueReceiver< const ConditionToken & >{}) |
Private Member Functions | |
MAXON_INTERFACE (DataDescriptionUIInterface, MAXON_REFERENCE_CONST, "net.maxon.interface.datadescriptionui") | |
|
private |
|
static |
Evaluates a condition for a given uiEntry. Deprecated. Not used anymore, switch to other EvaluateCondition functions.
[in] | condition | Condition string to evaluate. |
[in] | description | Description to use. |
[in] | uiEntries | UI entries. |
[in] | getDataCallback | Callback to get data for the evaluation. |
[in] | externalVariables | External variables for the FormulaParser. |
|
static |
BuildPopupMenuForDescription description.
[in] | description | Description to use. |
[in] | externalVariables | External variables for the FormulaParser. |
[in] | contextVars | HashMap with variables to execute and evaluate the menu checks for each context that should be used. |
[out] | mainMenuEntries | Value Receiver which receives the created menu entries. |
|
static |
Evaluates a condition within a given description.
|
static |
Evaluates a condition within a given description. The GetDescEntriesCallbackType allows to provided altered DataDictionary for requested attributes if desired.
[in] | condition | Condition string to evaluate. |
[in] | description | Description to use. |
[in] | getDescCallback | Callback to get "data"/"gui" description entries related to the condition to evaluate. Also can modify the id given to #getDataCallback; |
[in] | getDataCallback | Callback to get data for the evaluation. |
[in] | externalVariables | External variables for the FormulaParser. |
|
static |
Split a condition into tokens. Called from EvaluateCondition. Token will be replaced by their value for the FormulaParser. If #getDescCallback is empty, #tokenRecv will be called directly with CONDITIONTOKENTYPE::VARIABLE type for all tokens of unknown type (i.e. all kinds of attributes or variable, unknown characters and names). This can be useful for some parsing situations outside of the DataDescription regular use cases.
[in] | tokenRecv | Receiver for the tokens. |