DataDescriptionUIInterface Class Reference

#include <datadescription_ui.h>

Inheritance diagram for DataDescriptionUIInterface:

Detailed Description

This interface provides helper functions for ui stuff in combination with descriptions.

Static Public Member Functions

static MAXON_METHOD Result< BoolEvaluateCondition (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)

Private Member Functions

 MAXON_INTERFACE (DataDescriptionUIInterface, MAXON_REFERENCE_CONST, "net.maxon.interface.datadescriptionui")

Member Function Documentation


MAXON_INTERFACE ( DataDescriptionUIInterface  ,

◆ EvaluateCondition()

static MAXON_METHOD Result<Bool> EvaluateCondition ( const CString condition,
const DataDescriptionWithUIAndString description,
const BaseArray< DataDictionary > &  uiEntries,
const GetDataCallbackType getDataCallback,
const HashMap< CString, CString > &  externalVariables 

Evaluates a condition for a given uiEntry

[in]conditionCondition string to evaluate.
[in]descriptionDescription to use.
[in]uiEntriesUI entries.
[in]getDataCallbackCallback to get data for the evaluation.
[in]externalVariablesExternal variables for the FormulaParser.
True if the condition matches. False if not.

◆ BuildPopupMenuForDescription()

static MAXON_METHOD Result<void> BuildPopupMenuForDescription ( const DataDescriptionWithUIAndString description,
const HashMap< CString, CString > &  externalVariables,
const ContextVarsMap contextVars,
const ValueReceiver< SubMenuEntry && > &  mainMenuEntries 

BuildPopupMenuForDescription description.

[in]descriptionDescription to use.
[in]externalVariablesExternal variables for the FormulaParser.
[in]contextVarsHashMap with variables to execute and evaluate the menu checks for each context that should be used.
[out]mainMenuEntriesValue Receiver which receives the created menu entries.
OK on success.