Vuo
0.5.7
|
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. | |
void | setWidth (int width) |
Sets the width of the line edit. | |
bool | emitsTabCycleCompletionSignals (void) |
Returns a boolean indicating whether this input editor emits tabCycleCompleted() and reverseTabCycleCompleted() signals when appropriate. | |
![]() | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, QString portName, vector< pair< QString, json_object * > > portNamesAndValues, json_object *details) |
Displays a frameless dialog. | |
Protected Member Functions | |
virtual void | setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details=0, bool editingSolePortConstantForNode=false) |
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. | |
void | setFirstTabCycleElement (QWidget *element) |
Sets the provided element as the first tab cycle element within this input editor. | |
void | setFinalTabCycleElement (QWidget *element) |
Sets the provided element as the final tab cycle element within this input editor. | |
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. | |
bool | eventFilter (QObject *object, QEvent *event) |
Filters events on watched objects. | |
Protected Attributes | |
QLineEdit * | lineEdit |
The text field widget. | |
QWidget * | firstTabCycleElement |
The first widget in this input editor's tab cycle. | |
QWidget * | finalTabCycleElement |
The final widget in this input editor's tab cycle. | |
bool | editingSolePortConstantForNode |
A boolean indicating whether this input editor is currently being used to edit a node's only port constant. | |
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 | tabCycleCompleted () |
An input editor can emit this signal to inform the Vuo Editor that a 'Tab' keypress was received while the final widget in this input editor's tab cycle already had focus. | |
void | reverseTabCycleCompleted () |
An input editor can emit this signal to inform the Vuo Editor that a 'Shift'+'Tab' keypress was received while the first widget in this input editor's tab cycle already had focus. | |
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 VuoInputEditorText.
|
protectedvirtual |
Returns the text that should appear in the line edit to represent value
.
Reimplemented in VuoInputEditorPoint3d, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorReal, and VuoInputEditorText.
|
virtual |
Returns a boolean indicating whether this input editor emits tabCycleCompleted()
and reverseTabCycleCompleted()
signals when appropriate.
Reimplemented from VuoInputEditor.
|
protected |
Filters events on watched objects.
|
protectedvirtual |
Returns the current text in the line edit.
Implements VuoInputEditorWithDialog.
|
protected |
Sets the provided element
as the final tab cycle element within this input editor.
This method should be called only after any calls to setUpLineEdit
(...) and/or setUpDialog
(...) to override the default behavior of considering the member lineEdit
to be the final tab cycle element.
|
protected |
Sets the provided element
as the first tab cycle element within this input editor.
This method should be called only after any calls to setUpLineEdit
(...) and/or setUpDialog
(...) to override the default behavior of considering the member lineEdit
to be the first tab cycle element.
|
protectedvirtual |
Adds a line edit widget to the dialog.
Implements VuoInputEditorWithDialog.
Reimplemented in VuoInputEditorPoint3d, VuoInputEditorInteger, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorReal, and VuoInputEditorText.
|
protected |
Configures the provided line edit to display the dialog's initial value.
existingLineEdit | The pre-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.
|
protected |
A boolean indicating whether this input editor is currently being used to edit a node's only port constant.
|
protected |
The final widget in this input editor's tab cycle.
|
protected |
The first widget in this input editor's tab cycle.
|
protected |
The text field widget.