Vuo  2.1.2
Public Member Functions | Protected Member Functions | List of all members
VuoInputEditorWithMenu Class Reference

Description

A base class for input editors that display a menu.

Definition at line 18 of file VuoInputEditorWithMenu.hh.

Public Member Functions

json_objectshow (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...
 

Protected Member Functions

virtual VuoInputEditorMenuItemsetUpMenuTree (json_object *details)
 Creates the tree that models the menu. More...
 
virtual VuoInputEditorMenuItemsetUpMenuTree (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

- 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...
 
- 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...
 

Member Function Documentation

◆ isInterfaceDark()

bool VuoInputEditorWithMenu::isInterfaceDark ( )
protected

Returns true if the user interface is in dark mode.

Definition at line 109 of file VuoInputEditorWithMenu.cc.

◆ setUpMenuTree() [1/2]

VuoInputEditorMenuItem * VuoInputEditorWithMenu::setUpMenuTree ( json_object details)
protectedvirtual

Creates the tree that models the menu.

Reimplemented in VuoInputEditorBlendMode, VuoInputEditorWithEnumMenu, and VuoInputEditorNamedEnum.

Definition at line 61 of file VuoInputEditorWithMenu.cc.

◆ setUpMenuTree() [2/2]

VuoInputEditorMenuItem * VuoInputEditorWithMenu::setUpMenuTree ( void  )
protectedvirtual

◆ shouldIncludeValue()

bool VuoInputEditorWithMenu::shouldIncludeValue ( json_object value)
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.

◆ show()

json_object * VuoInputEditorWithMenu::show ( QPoint  portLeftCenter,
json_object originalValue,
json_object details,
map< QString, json_object * >  portNamesAndValues 
)
virtual

Displays a menu.

Implements VuoInputEditor.

Definition at line 15 of file VuoInputEditorWithMenu.cc.


The documentation for this class was generated from the following files: