A widget for editing the details (suggestedMin, suggestedMax, suggestedStep) associated with a Point published input port.
Definition at line 24 of file VuoDetailsEditorPoint.hh.
Public Member Functions | |
VuoDetailsEditorPoint (VuoType *type, QWidget *parent=0) | |
Creates a widget for editing the details (suggestedMin, suggestedMax, suggestedStep) associated with a VuoPoint{2d,3d,4d} 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, double value, bool populateText) |
Configures the provided line edit to display the dialog's initial value. More... | |
QString | convertToLineEditFormat (double value) |
Returns the text that should appear in the line edit to represent value . More... | |
json_object * | convertFromLineEditsFormat (const QString &suggestedMinXValueAsString, const QString &suggestedMaxValueAsString, const QString &suggestedStepXValueAsString, const QString &suggestedMinYValueAsString, const QString &suggestedMaxYValueAsString, const QString &suggestedStepYValueAsString, const QString &suggestedMinZValueAsString, const QString &suggestedMaxZValueAsString, const QString &suggestedStepZValueAsString, const QString &suggestedMinWValueAsString, const QString &suggestedMaxWValueAsString, const QString &suggestedStepWValueAsString) |
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 VuoPoint{2d,3d,4d} published input port.
Definition at line 19 of file VuoDetailsEditorPoint.cc.
|
protected |
Formats the value from the line edit to conform to the JSON specification for numbers.
Definition at line 353 of file VuoDetailsEditorPoint.cc.
|
protected |
Returns the text that should appear in the line edit to represent value
.
Definition at line 340 of file VuoDetailsEditorPoint.cc.
|
protected |
Returns the current text in the line edits.
Definition at line 320 of file VuoDetailsEditorPoint.cc.
|
protected |
Sets up a dialog containing the port details editor.
Definition at line 62 of file VuoDetailsEditorPoint.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 double value to display in the text field, if it is to be populated at all. |
populateText | A boolean indicating whether to populate the text field. |
Definition at line 308 of file VuoDetailsEditorPoint.cc.
json_object * VuoDetailsEditorPoint::show | ( | QPoint | portLeftCenter, |
json_object * | originalDetails | ||
) |
Displays a frameless dialog.
Definition at line 28 of file VuoDetailsEditorPoint.cc.