An input editor that displays widgets for editing a VuoReal 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:
- "suggestedMin" and "suggestedMax" define the range of the slider (if both are defined) or spin box (if one is defined) but don't affect the line edit. By default, the dialog contains a spin box with unbounded range.
- "suggestedStep" defines the step size of the slider or spin box. By default, the step size is 1.
- Example:
{
"suggestedMin" : -1.0,
"suggestedMax" : 1.0,
"suggestedStep" : 0.25
}
|
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_object * | getAcceptedValue (void) |
| Returns the current text in the line edits.
|
|
virtual bool | supportsTabbingBetweenPorts (void) |
| This editor does support tabbing between ports.
|
|
| 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.
|
|