An input editor that displays widgets for editing a VuoReal value, allowing the user either to select the value with a mouse (using a spin box or slider) or to type the value into a text box (line edit).
This input editor recognizes the following keys in the JSON details object:
Definition at line 52 of file VuoInputEditorReal.hh.
Protected Member Functions | |
void | setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details) |
Sets up a dialog containing either a slider and line edit (if details contains both "suggestedMin" and "suggestedMax") or a spin box (which includes a line edit). More... | |
json_object * | getAcceptedValue (void) |
Returns the current text in the line edits. More... | |
virtual bool | supportsTabbingBetweenPorts (void) |
This editor does support tabbing between ports. More... | |
![]() | |
VuoInputEditorWithDialog (void) | |
Creates an input editor whose show() function displays a frameless dialog. More... | |
QDialog * | getDialog (void) |
Returns a pointer to the dialog displayed by show(). More... | |
void | setFirstWidgetInTabOrder (QWidget *widget) |
Makes the given widget the first in this input editor's tab order. More... | |
void | setLastWidgetInTabOrder (QWidget *widget) |
Makes the given widget the last in this input editor's tab order. More... | |
bool | eventFilter (QObject *object, QEvent *event) VuoWarnUnusedResult |
Handles tabbing past the last widget or reverse-tabbing past the first widget in the tab order. More... | |
Protected Attributes | |
VuoDoubleSpinBox * | spinbox |
For use when both the suggestedMin and suggestedMax port annotation values are provided by the node class designer. More... | |
![]() | |
bool | isDark |
Is Vuo Editor in Dark Interface Mode? More... | |
Friends | |
class | TestInputEditors |
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... | |
![]() | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues) |
Displays a frameless dialog. 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... | |
|
protectedvirtual |
Returns the current text in the line edits.
Implements VuoInputEditorWithDialog.
Definition at line 262 of file VuoInputEditorReal.cc.
|
protectedvirtual |
Sets up a dialog containing either a slider and line edit (if details
contains both "suggestedMin" and "suggestedMax") or a spin box (which includes a line edit).
Implements VuoInputEditorWithDialog.
Definition at line 73 of file VuoInputEditorReal.cc.
|
inlineprotectedvirtual |
This editor does support tabbing between ports.
Reimplemented from VuoInputEditor.
Definition at line 59 of file VuoInputEditorReal.hh.
|
protected |
For use when both the suggestedMin and suggestedMax port annotation values are provided by the node class designer.
Definition at line 60 of file VuoInputEditorReal.hh.