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:
- "suggestedMin" and "suggestedMax" define the range of the sliders but don't affect the line edit. By default, the dialog contains a slider with a [0,1] range.
- "suggestedStep" defines the step size of the sliders. By default, the step size is 0.1.
- Example:
{
"suggestedMin" : 0.5,
"suggestedMax" : 1.0,
"suggestedStep" : 0.25
}
|
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.
|
|
json_object * | getAcceptedValue (void) |
| Returns the current values held in the child widgets.
|
|
QString | convertToLineEditFormat (json_object *value) |
| Returns the text that should appear in the line edit to represent value .
|
|
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.
|
|
bool | eventFilter (QObject *object, QEvent *event) |
| Filters events on watched objects.
|
|
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 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.
|
|