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
VuoInputEditorPoint4d Class Reference

Description

An input editor that displays widgets for editing a VuoPoint4d value, allowing the user either to select the value with a mouse (using a spin box or slider) or to type the value into a text box (line edit).

This input editor recognizes the following keys in the JSON details object:

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

Protected Member Functions

void setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details)
 Sets up a dialog containing either a slider and line edit (if details contains both "suggestedMin" and "suggestedMax") or a spin box (which includes a line edit).
 
json_objectgetAcceptedValue (void)
 Returns the current text in the line edits.
 
virtual bool supportsTabbingBetweenPorts (void)
 Indicates that this input editor supports tabbing.
 
- 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 VuoInputEditorWithDialog
json_objectshow (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues)
 Displays a frameless dialog.
 
- 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.
 

Member Function Documentation

json_object * VuoInputEditorPoint4d::getAcceptedValue ( void  )
protectedvirtual

Returns the current text in the line edits.

Implements VuoInputEditorWithDialog.

void VuoInputEditorPoint4d::setUpDialog ( QDialog &  dialog,
json_object originalValue,
json_object details 
)
protectedvirtual

Sets up a dialog containing either a slider and line edit (if details contains both "suggestedMin" and "suggestedMax") or a spin box (which includes a line edit).

Implements VuoInputEditorWithDialog.

virtual bool VuoInputEditorPoint4d::supportsTabbingBetweenPorts ( void  )
inlineprotectedvirtual

Indicates that this input editor supports tabbing.

Reimplemented from VuoInputEditor.


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