Vuo
0.7.0
|
A base class for input editors that display a frameless dialog.
Public Member Functions | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues) |
Displays a frameless dialog. | |
![]() | |
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. | |
Protected Member Functions | |
virtual void | setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details)=0 |
Adds widgets to the dialog and configures them to display the dialog's initial value. | |
virtual json_object * | getAcceptedValue (void)=0 |
Returns the value currently set in the dialog's widgets. | |
![]() | |
QFont | getDefaultFont (void) |
Returns the font that input editors are recommended to use. | |
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. | |
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. | |
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. | |
|
protectedpure virtual |
Returns the value currently set in the dialog's widgets.
Implemented in VuoInputEditorPoint3d, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorKey, and VuoInputEditorWithLineEdit.
|
protectedpure virtual |
Adds widgets to the dialog and configures them to display the dialog's initial value.
dialog | The dialog, which is initially empty. |
originalValue | The value to display initially in the dialog. |
details | Additional details (e.g., suggested min. and max. values) pertaining to the port data. |
Implemented in VuoInputEditorPoint3d, VuoInputEditorInteger, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorReal, VuoInputEditorText, VuoInputEditorKey, and VuoInputEditorWithLineEdit.
|
virtual |
Displays a frameless dialog.
Implements VuoInputEditor.