A base class for input editors that display a menu.
Definition at line 18 of file VuoInputEditorWithMenu.hh.
Public Member Functions | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues) |
Displays a menu. More... | |
![]() | |
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... | |
Protected Member Functions | |
virtual VuoInputEditorMenuItem * | setUpMenuTree (json_object *details) |
Creates the tree that models the menu. More... | |
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... | |
bool | isInterfaceDark () |
Returns true if the user interface is in dark mode. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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... | |
|
protected |
Returns true if the user interface is in dark mode.
Definition at line 109 of file VuoInputEditorWithMenu.cc.
|
protectedvirtual |
Creates the tree that models the menu.
Reimplemented in VuoInputEditorBlendMode, VuoInputEditorWithEnumMenu, and VuoInputEditorNamedEnum.
Definition at line 61 of file VuoInputEditorWithMenu.cc.
|
protectedvirtual |
Creates the tree that models the menu.
Reimplemented in VuoInputEditorAudioInputDevice, VuoInputEditorAudioOutputDevice, VuoInputEditorCurve, VuoInputEditorCurveEasing, VuoInputEditorDispersion, VuoInputEditorDisplacement, VuoInputEditorHidDevice, VuoInputEditorLoopType, VuoInputEditorMidiInputDevice, VuoInputEditorMidiOutputDevice, VuoInputEditorOscInputDevice, VuoInputEditorOscOutputDevice, VuoInputEditorScreen, VuoInputEditorSerialDevice, VuoInputEditorSizingMode, VuoInputEditorSyphonServerDescription, VuoInputEditorVideoInputDevice, VuoInputEditorWave, and VuoInputEditorWrapMode.
Definition at line 66 of file VuoInputEditorWithMenu.cc.
|
protected |
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).
Definition at line 83 of file VuoInputEditorWithMenu.cc.
|
virtual |
Displays a menu.
Implements VuoInputEditor.
Definition at line 15 of file VuoInputEditorWithMenu.cc.