An input editor that displays widgets for editing a VuoMovieFormat value, allowing the user to select the image and audio encodings from a drop-down menu, and the image and audio quality values either with a mouse (using a slider) or by typing the values into a text box (line edit).
This input editor recognizes the following keys in the JSON details object:
Definition at line 48 of file VuoInputEditorMovieFormat.hh.
Protected Member Functions | |
void | setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details) |
Sets up a dialog containing slider/line-edit combinations for video quality and audio quality, and drop-down menus for video encoding and audio encoding. More... | |
json_object * | getAcceptedValue (void) |
Returns the current values held in the child widgets. More... | |
QString | convertToLineEditFormat (json_object *value) |
Returns the text that should appear in the line edit to represent value . More... | |
json_object * | convertFromSubwidgetFormats (const QVariant &imageEncoding, const QString &imageQualityAsString, const QVariant &audioEncoding, const QString &audioQualityAsString) |
Formats the values from the constituent widgets to conform to the JSON specification for VuoMovieFormats. More... | |
bool | eventFilter (QObject *object, QEvent *event) VuoWarnUnusedResult |
Filters events on watched objects. More... | |
![]() | |
void | setUpLineEdit (QLineEdit *existingLineEdit, json_object *originalValue) |
Configures the provided line edit to display the dialog's initial value. More... | |
json_object * | getAcceptedValue (void) |
Returns the current text in the line edit. More... | |
virtual json_object * | convertFromLineEditFormat (const QString &valueAsString) |
Returns the value represented when the given text appears in the line edit. More... | |
![]() | |
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) VuoWarnUnusedResult |
Handles tabbing past the last widget or reverse-tabbing past the first widget in the tab order. More... | |
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. 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... | |
![]() | |
VuoInputEditorWithLineEdit (void) | |
Creates an input editor whose show function displays a line edit. More... | |
virtual bool | supportsTabbingBetweenPorts (void) |
Returns true. More... | |
void | setWidth (int width) |
Sets the width of the line edit. More... | |
![]() | |
json_object * | show (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues) |
Displays a frameless dialog. More... | |
![]() | |
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... | |
![]() | |
QLineEdit * | lineEdit |
The text field widget. More... | |
![]() | |
bool | isDark |
Is Vuo Editor in Dark Interface Mode? More... | |
|
protected |
Formats the values from the constituent widgets to conform to the JSON specification for VuoMovieFormats.
Definition at line 251 of file VuoInputEditorMovieFormat.cc.
|
protectedvirtual |
Returns the text that should appear in the line edit to represent value
.
Reimplemented from VuoInputEditorWithLineEdit.
Definition at line 237 of file VuoInputEditorMovieFormat.cc.
|
protected |
Filters events on watched objects.
Definition at line 442 of file VuoInputEditorMovieFormat.cc.
|
protectedvirtual |
Returns the current values held in the child widgets.
Implements VuoInputEditorWithDialog.
Definition at line 226 of file VuoInputEditorMovieFormat.cc.
|
protectedvirtual |
Sets up a dialog containing slider/line-edit combinations for video quality and audio quality, and drop-down menus for video encoding and audio encoding.
Reimplemented from VuoInputEditorWithLineEdit.
Definition at line 34 of file VuoInputEditorMovieFormat.cc.