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. More... | |
Public Member Functions inherited from VuoInputEditor | |
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... | |
Protected Member Functions | |
VuoInputEditorWithDialog (void) | |
Creates an input editor whose show() function displays a frameless dialog. More... | |
QDialog * | getDialog (void) |
Returns a pointer to the dialog displayed by show(). More... | |
void | setFirstWidgetInTabOrder (QWidget *widget) |
Makes the given widget the first in this input editor's tab order. More... | |
void | setLastWidgetInTabOrder (QWidget *widget) |
Makes the given widget the last in this input editor's tab order. More... | |
bool | eventFilter (QObject *object, QEvent *event) |
Handles tabbing past the last widget or reverse-tabbing past the first widget in the tab order. More... | |
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. More... | |
virtual json_object * | getAcceptedValue (void)=0 |
Returns the value currently set in the dialog's widgets. More... | |
Additional Inherited Members | |
Signals inherited from VuoInputEditor | |
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... | |
Static Public Member Functions inherited from VuoInputEditor | |
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... | |
|
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 VuoInputEditorRange, VuoInputEditorReal, VuoInputEditorInteger, VuoInputEditorPoint2d, VuoInputEditorPoint3d, VuoInputEditorPoint4d, VuoInputEditorTransform, VuoInputEditorTransform2d, VuoInputEditorMovieFormat, VuoInputEditorText, VuoInputEditorAnchor, VuoInputEditorEdgeBlend, VuoInputEditorIntegerRange, VuoInputEditorKey, VuoInputEditorBlackmagicInputDevice, VuoInputEditorBlackmagicOutputDevice, VuoInputEditorTextComparison, 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 VuoInputEditorRange, VuoInputEditorReal, VuoInputEditorInteger, VuoInputEditorPoint2d, VuoInputEditorPoint3d, VuoInputEditorPoint4d, VuoInputEditorTransform, VuoInputEditorTransform2d, VuoInputEditorMovieFormat, VuoInputEditorText, VuoInputEditorAnchor, VuoInputEditorEdgeBlend, VuoInputEditorIntegerRange, VuoInputEditorKey, VuoInputEditorBlackmagicInputDevice, VuoInputEditorBlackmagicOutputDevice, VuoInputEditorTextComparison, VuoInputEditorWithLineEditList, and VuoInputEditorWithLineEdit.
|
virtual |
Displays a frameless dialog.
Implements VuoInputEditor.