An input editor that displays a menu of named enum values, as extracted from the JSON details object.
To insert a menu separator, use value "-"
.
To disable a menu item (to make a section label), begin its key with non-numeric characters (e.g., "Label 0"
).
Protected Member Functions | |
VuoInputEditorMenuItem * | setUpMenuTree (json_object *details) |
Creates the tree that models the menu. More... | |
Protected Member Functions inherited from VuoInputEditorWithMenu | |
virtual VuoInputEditorMenuItem * | setUpMenuTree (void) |
Creates the tree that models the menu. More... | |
bool | shouldIncludeValue (json_object *value) |
Returns true if value is in the port's includeValues list, or if the port doesn't have an includeValues list (and thus all values should be included in the menu). More... | |
Additional Inherited Members | |
Signals inherited from VuoInputEditor | |
void | valueChanged (json_object *newValue) |
An input editor can emit this signal to inform the Vuo Editor that the value has been edited. More... | |
void | tabbedPastLastWidget () |
If supportsTabbingBetweenPorts() returns true, an input editor should emit this signal when the Tab key is pressed while the last widget in the input editor's tab order has focus. More... | |
void | tabbedBackwardPastFirstWidget () |
If supportsTabbingBetweenPorts() returns true, an input editor should emit this signal when the Shift-Tab key combination is pressed while the first widget in the input editor's tab order has focus. More... | |
Public Member Functions inherited from VuoInputEditorWithMenu | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object *> portNamesAndValues) |
Displays a menu. More... | |
Public Member Functions inherited from VuoInputEditor | |
virtual bool | supportsTabbingBetweenPorts (void) |
Returns true if this input editor should be part of the Vuo Editor's tab order when using Tab / Shift-Tab to navigate between input ports. More... | |
Static Public Member Functions inherited from VuoInputEditor | |
static QFont | getDefaultFont (void) |
Returns the font that input editors are recommended to use. More... | |
static QString | getDefaultFontCss (void) |
Returns a CSS representation of the font that input editors are recommended to use. More... | |
|
protectedvirtual |
Creates the tree that models the menu.
Reimplemented from VuoInputEditorWithMenu.