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

Description

An input editor that displays widgets for editing a VuoInteger 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" : 0,
"suggestedMax" : 360,
"suggestedStep" : 30
}

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).
 
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.
 
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.
 
json_object * getAcceptedValue (void)
 Returns the current text in the line edit.
 
virtual QString convertToLineEditFormat (json_object *value)
 Returns the text that should appear in the line edit to represent value.
 
virtual json_object * convertFromLineEditFormat (const QString &valueAsString)
 Returns the value represented when the given text appears in the line edit.
 
bool eventFilter (QObject *object, QEvent *event)
 Filters events on watched objects.
 
- Protected Member Functions inherited from VuoInputEditorWithDialog
QDialog * getDialog (void)
 Returns a pointer to the dialog displayed by show().
 
- 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.
 
- Public Member Functions inherited from VuoInputEditorWithLineEdit
 VuoInputEditorWithLineEdit (void)
 Creates an input editor whose show function displays a line edit.
 
void setWidth (int width)
 Sets the width of the line edit.
 
bool supportsTabbingBetweenPorts (void)
 Returns a boolean indicating whether this input editor emits tabbedPastLastWidget() and tabbedBackwardPastFirstWidget() signals when appropriate.
 
- Protected Attributes inherited from VuoInputEditorWithLineEdit
QLineEdit * lineEdit
 The text field widget.
 

Member Function Documentation

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

Filters events on watched objects.

void VuoInputEditorInteger::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).

Reimplemented from VuoInputEditorWithLineEdit.


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