Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Protected Member Functions | List of all members
VuoInputEditorMovieFormat Class Reference

Description

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:

Example:
{
"suggestedMin" : 0.5,
"suggestedMax" : 1.0,
"suggestedStep" : 0.25
}

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.
 
json_objectgetAcceptedValue (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_objectconvertFromSubwidgetFormats (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.
 
- Protected Member Functions inherited from VuoInputEditorWithLineEdit
void setUpLineEdit (QLineEdit *existingLineEdit, json_object *originalValue)
 Configures the provided line edit to display the dialog's initial value.
 
json_objectgetAcceptedValue (void)
 Returns the current text in the line edit.
 
virtual json_objectconvertFromLineEditFormat (const QString &valueAsString)
 Returns the value represented when the given text appears in the line edit.
 
- Protected Member Functions inherited from VuoInputEditorWithDialog
 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.
 

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.
 
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.
 
- Public Member Functions inherited from VuoInputEditorWithLineEdit
 VuoInputEditorWithLineEdit (void)
 Creates an input editor whose show function displays a line edit.
 
virtual bool supportsTabbingBetweenPorts (void)
 Returns true.
 
void setWidth (int width)
 Sets the width of the line edit.
 
- Static Public Member Functions inherited from VuoInputEditor
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 Attributes inherited from VuoInputEditorWithLineEdit
QLineEdit * lineEdit
 The text field widget.
 

Member Function Documentation

json_object * VuoInputEditorMovieFormat::convertFromSubwidgetFormats ( const QVariant &  imageEncoding,
const QString &  imageQualityAsString,
const QVariant &  audioEncoding,
const QString &  audioQualityAsString 
)
protected

Formats the values from the constituent widgets to conform to the JSON specification for VuoMovieFormats.

QString VuoInputEditorMovieFormat::convertToLineEditFormat ( json_object value)
protectedvirtual

Returns the text that should appear in the line edit to represent value.

Reimplemented from VuoInputEditorWithLineEdit.

bool VuoInputEditorMovieFormat::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Filters events on watched objects.

json_object * VuoInputEditorMovieFormat::getAcceptedValue ( void  )
protectedvirtual

Returns the current values held in the child widgets.

Implements VuoInputEditorWithDialog.

void VuoInputEditorMovieFormat::setUpDialog ( QDialog &  dialog,
json_object originalValue,
json_object details 
)
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.


The documentation for this class was generated from the following files: