A widget for editing the details (suggestedMin, suggestedMax, suggestedStep) associated with a numeric published input port.
Definition at line 18 of file VuoDetailsEditorNumeric.hh.
Public Member Functions | |
VuoDetailsEditorNumeric (VuoType *type, QWidget *parent=0) | |
Creates a widget for editing the details (suggestedMin, suggestedMax, suggestedStep) associated with a numeric published input port. More... | |
json_object * | show (QPoint portLeftCenter, json_object *originalDetails) |
Displays a frameless dialog. More... | |
Protected Member Functions | |
void | setUpDialog (QDialog &dialog, json_object *originalDetails) |
Sets up a dialog containing the port details editor. More... | |
void | setUpLineEdit (QLineEdit *lineEdit, json_object *originalValue) |
Configures the provided line edit to display the dialog's initial value. More... | |
QString | convertToLineEditFormat (json_object *value) |
Returns the text that should appear in the line edit to represent value . More... | |
json_object * | convertFromLineEditsFormat (const QString &suggestedMinValueAsString, const QString &suggestedMaxValueAsString, const QString &suggestedStepValueAsString) |
Formats the value from the line edit to conform to the JSON specification for numbers. More... | |
json_object * | getAcceptedValue (void) |
Returns the current text in the line edits. More... | |
|
explicit |
Creates a widget for editing the details (suggestedMin, suggestedMax, suggestedStep) associated with a numeric published input port.
Definition at line 20 of file VuoDetailsEditorNumeric.cc.
|
protected |
Formats the value from the line edit to conform to the JSON specification for numbers.
Definition at line 189 of file VuoDetailsEditorNumeric.cc.
|
protected |
Returns the text that should appear in the line edit to represent value
.
Definition at line 169 of file VuoDetailsEditorNumeric.cc.
|
protected |
Returns the current text in the line edits.
Definition at line 159 of file VuoDetailsEditorNumeric.cc.
|
protected |
Sets up a dialog containing the port details editor.
Definition at line 63 of file VuoDetailsEditorNumeric.cc.
|
protected |
Configures the provided line edit to display the dialog's initial value.
lineEdit | The already-initialized QLineEdit widget to configure for the dialog. |
originalValue | The value to display initially in the dialog. |
Definition at line 147 of file VuoDetailsEditorNumeric.cc.
json_object * VuoDetailsEditorNumeric::show | ( | QPoint | portLeftCenter, |
json_object * | originalDetails | ||
) |
Displays a frameless dialog.
Definition at line 29 of file VuoDetailsEditorNumeric.cc.