This class implements the input editor widget displayed by the Vuo Editor when editing an input port value of a certain type.
Definition at line 45 of file VuoInputEditor.hh.
Signals | |
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 | |
virtual json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues)=0 |
Displays the input editor and waits until the user has finished or canceled editing. 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... | |
Static Public Member Functions | |
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... | |
|
static |
Returns the font that input editors are recommended to use.
Definition at line 15 of file VuoInputEditor.cc.
|
static |
Returns a CSS representation of the font that input editors are recommended to use.
Definition at line 24 of file VuoInputEditor.cc.
|
pure virtual |
Displays the input editor and waits until the user has finished or canceled editing.
portLeftCenter | The left center point (in global coordinates) of the port whose value is to be edited. Used to position the input editor. |
originalValue | The value to display initially in the input editor. |
details | Additional details about the port (e.g., suggested minimum and maximum values). A port in a node class implementation can optionally provide these details. To assist node class developers, the input editor's class description should document the JSON keys recognized by the input editor. |
portNamesAndValues | Not yet implemented. The name and value of each input port that is on the same node as the port being edited by this input editor (including that port) and that has a constant value (no incoming data cable). Together with details, this information can be used to limit the input editor's range based on other input ports' values. |
Implemented in VuoInputEditorColor, VuoInputEditorFont, VuoInputEditorWithMenu, and VuoInputEditorWithDialog.
|
virtual |
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.
If true, this input editor should emit tabbedPastLastWidget() and tabbedBackwardPastFirstWidget() signals when appropriate. If false, those signals are ignored.
Unless overridden, this function always returns false.
Reimplemented in VuoInputEditorPoint2d, VuoInputEditorPoint3d, VuoInputEditorPoint4d, VuoInputEditorTransform, VuoInputEditorRange, VuoInputEditorReal, VuoInputEditorInteger, VuoInputEditorTransform2d, VuoInputEditorEdgeBlend, VuoInputEditorIntegerRange, VuoInputEditorTextComparison, VuoCommentEditor, VuoTextEditor, VuoInputEditorWithLineEditList, and VuoInputEditorWithLineEdit.
Definition at line 29 of file VuoInputEditor.cc.
|
signal |
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.
This tells the Vuo Editor to navigate to the previous port in the Vuo Editor's tab order.
|
signal |
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.
This tells the Vuo Editor to navigate to the next port in the Vuo Editor's tab order.
|
signal |
An input editor can emit this signal to inform the Vuo Editor that the value has been edited.
If the Vuo Editor receives this signal while a composition is running, it updates the running composition immediately to use the updated value (while the input editor is still showing).
newValue | The updated value. |