Vuo
1.2.3
|
A base class for input editors that display a line edit (text field).
Public Member Functions | |
VuoInputEditorWithLineEdit (void) | |
Creates an input editor whose show function displays a line edit. | |
virtual bool | supportsTabbingBetweenPorts (void) |
Returns true. | |
void | setWidth (int width) |
Sets the width of the line edit. | |
![]() | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues) |
Displays a frameless dialog. | |
Protected Member Functions | |
virtual void | setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details=0) |
Adds a line edit widget to the dialog. | |
void | setUpLineEdit (QLineEdit *existingLineEdit, json_object *originalValue) |
Configures the provided line edit to display the dialog's initial value. | |
json_object * | getAcceptedValue (void) |
Returns the current text in the line edit. | |
virtual QString | convertToLineEditFormat (json_object *value) |
Returns the text that should appear in the line edit to represent value . | |
virtual json_object * | convertFromLineEditFormat (const QString &valueAsString) |
Returns the value represented when the given text appears in the line edit. | |
![]() | |
VuoInputEditorWithDialog (void) | |
Creates an input editor whose show() function displays a frameless dialog. | |
QDialog * | getDialog (void) |
Returns a pointer to the dialog displayed by show(). | |
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. | |
bool | eventFilter (QObject *object, QEvent *event) |
Handles tabbing past the last widget or reverse-tabbing past the first widget in the tab order. | |
Protected Attributes | |
QLineEdit * | lineEdit |
The text field widget. | |
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. | |
![]() | |
static QFont | getDefaultFont (void) |
Returns the font that input editors are recommended to use. | |
static QString | getDefaultFontCss (void) |
Returns a CSS representation of the font that input editors are recommended to use. | |
VuoInputEditorWithLineEdit::VuoInputEditorWithLineEdit | ( | void | ) |
Creates an input editor whose show
function displays a line edit.
|
protectedvirtual |
Returns the value represented when the given text appears in the line edit.
Reimplemented in VuoInputEditorReal, and VuoInputEditorInteger.
|
protectedvirtual |
Returns the text that should appear in the line edit to represent value
.
Reimplemented in VuoInputEditorMovieFormat, and VuoInputEditorReal.
|
protectedvirtual |
Returns the current text in the line edit.
Implements VuoInputEditorWithDialog.
|
protectedvirtual |
Adds a line edit widget to the dialog.
Sets this line edit as the first and last widget in this input editor's tab order.
Implements VuoInputEditorWithDialog.
Reimplemented in VuoInputEditorMovieFormat, VuoInputEditorInteger, and VuoInputEditorReal.
|
protected |
Configures the provided line edit to display the dialog's initial value.
Sets the line edit as the first and last widget in this input editor's tab order.
existingLineEdit | The already-initialized QLineEdit widget to configure for the dialog. |
originalValue | The value to display initially in the dialog. |
void VuoInputEditorWithLineEdit::setWidth | ( | int | width | ) |
Sets the width of the line edit.
|
virtual |
Returns true.
Reimplemented from VuoInputEditor.
|
protected |
The text field widget.