Vuo  0.5.7
 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, QString portName, vector< pair< QString, json_object * > > portNamesAndValues, json_object *details)
 Displays a frameless dialog.
 
- Public Member Functions inherited from VuoInputEditor
virtual bool emitsTabCycleCompletionSignals (void)
 Returns a boolean indicating whether this input editor emits tabCycleCompleted() and reverseTabCycleCompleted() signals when appropriate.
 

Protected Member Functions

virtual void setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details, bool editingSolePortConstantForNode=false)=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 tabCycleCompleted ()
 An input editor can emit this signal to inform the Vuo Editor that a 'Tab' keypress was received while the final widget in this input editor's tab cycle already had focus.
 
void reverseTabCycleCompleted ()
 An input editor can emit this signal to inform the Vuo Editor that a 'Shift'+'Tab' keypress was received while the first widget in this input editor's tab cycle already had 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,
bool  editingSolePortConstantForNode = false 
)
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.
editingSolePortConstantForNodeA boolean indicating whether this input editor is currently being used to edit a node's only port constant.

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

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

Displays a frameless dialog.

Implements VuoInputEditor.


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