Vuo  0.6.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
VuoInputEditorWithDialog Class Referenceabstract

Description

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.
 
- 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.
 

Protected Member Functions

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.
 
- Protected Member Functions inherited from VuoInputEditor
QFont getDefaultFont (void)
 Returns the font that input editors are recommended to use.
 

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.
 

Member Function Documentation

virtual json_object* VuoInputEditorWithDialog::getAcceptedValue ( void  )
protectedpure virtual

Returns the value currently set in the dialog's widgets.

Implemented in VuoInputEditorPoint3d, VuoInputEditorPoint2d, VuoInputEditorPoint4d, and VuoInputEditorWithLineEdit.

virtual void VuoInputEditorWithDialog::setUpDialog ( QDialog &  dialog,
json_object *  originalValue,
json_object *  details 
)
protectedpure virtual

Adds widgets to the dialog and configures them to display the dialog's initial value.

Parameters
dialogThe dialog, which is initially empty.
originalValueThe value to display initially in the dialog.
detailsAdditional details (e.g., suggested min. and max. values) pertaining to the port data.

Implemented in VuoInputEditorPoint3d, VuoInputEditorInteger, VuoInputEditorPoint2d, VuoInputEditorPoint4d, VuoInputEditorReal, VuoInputEditorText, and VuoInputEditorWithLineEdit.

json_object * VuoInputEditorWithDialog::show ( QPoint  portLeftCenter,
json_object *  originalValue,
json_object *  details,
map< QString, json_object * >  portNamesAndValues 
)
virtual

Displays a frameless dialog.

Implements VuoInputEditor.


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