Vuo
0.8.0
|
An input editor that displays a line edit and, if the text is outside the bounds of its suggested minimum and maximum length, a warning message.
This input editor recognizes the following keys in the JSON details object:
Protected Member Functions | |
void | setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details) |
Sets up a dialog containing a line edit and a (possibly empty) warning message. | |
QString | convertToLineEditFormat (json_object *value) |
Removes quotation marks from the value to display in the line edit. | |
json_object * | convertFromLineEditFormat (const QString &valueAsString) |
Adds quotation marks around the value from the line edit. | |
![]() | |
void | setUpLineEdit (QLineEdit *existingLineEdit, json_object *originalValue) |
Configures the provided line edit to display the dialog's initial value. | |
void | setFirstWidgetInTabOrder (QWidget *widget) |
Makes the given widget the first in this input editor's tab order. | |
void | setLastWidgetInTabOrder (QWidget *widget) |
Makes the given widget the last in this input editor's tab order. | |
json_object * | getAcceptedValue (void) |
Returns the current text in the line edit. | |
bool | eventFilter (QObject *object, QEvent *event) |
Filters events on watched objects. | |
![]() | |
QDialog * | getDialog (void) |
Returns a pointer to the dialog displayed by show(). | |
![]() | |
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. | |
![]() | |
VuoInputEditorWithLineEdit (void) | |
Creates an input editor whose show function displays a line edit. | |
void | setWidth (int width) |
Sets the width of the line edit. | |
bool | supportsTabbingBetweenPorts (void) |
Returns a boolean indicating whether this input editor emits tabbedPastLastWidget() and tabbedBackwardPastFirstWidget() signals when appropriate. | |
![]() | |
QLineEdit * | lineEdit |
The text field widget. | |
|
protectedvirtual |
Adds quotation marks around the value from the line edit.
Reimplemented from VuoInputEditorWithLineEdit.
|
protectedvirtual |
Removes quotation marks from the value to display in the line edit.
Reimplemented from VuoInputEditorWithLineEdit.
|
protectedvirtual |
Sets up a dialog containing a line edit and a (possibly empty) warning message.
Removes the quotation marks surrounding originalValue
before displaying it in the line edit.
Reimplemented from VuoInputEditorWithLineEdit.