Vuo
1.2.1
|
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 | |
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. | |
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. | |
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. | |
|
protected |
Creates an input editor whose show() function displays a frameless dialog.
|
protected |
Handles tabbing past the last widget or reverse-tabbing past the first widget in the tab order.
|
protectedpure virtual |
Returns the value currently set in the dialog's widgets.
Implemented in VuoInputEditorMovieFormat, VuoInputEditorPoint3d, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorTransform, VuoInputEditorTransform2d, VuoInputEditorText, VuoInputEditorKey, VuoInputEditorWithLineEditList, and VuoInputEditorWithLineEdit.
|
protected |
|
protected |
Makes the given widget the first in this input editor's tab order.
This function sets up the input editor to emit tabbedBackwardPastFirstWidget() signals.
|
protected |
Makes the given widget the last in this input editor's tab order.
This function sets up the input editor to emit tabbedPastLastWidget() signals.
|
protectedpure virtual |
Adds widgets to the dialog and configures them to display the dialog's initial value.
dialog | The dialog, which is initially empty. It has a style sheet that makes the dialog and any widgets added to it default to a standard style, which depends on the Vuo Editor's "Dark Interface" setting. If changing fonts of widgest, you may need to use QWidget::setStyleSheet() instead of QWidget::setFont() , since the latter may have no effect (http://doc.qt.io/qt-5/qwidget.html#font-prop). |
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 VuoInputEditorMovieFormat, VuoInputEditorPoint3d, VuoInputEditorInteger, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorReal, VuoInputEditorTransform, VuoInputEditorTransform2d, VuoInputEditorText, VuoInputEditorKey, VuoInputEditorWithLineEditList, and VuoInputEditorWithLineEdit.
|
virtual |
Displays a frameless dialog.
Implements VuoInputEditor.