Vuo  2.0.2
Public Member Functions | Protected Member Functions | List of all members
VuoDetailsEditorPoint Class Reference

Description

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_objectshow (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_objectconvertFromLineEditsFormat (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_objectgetAcceptedValue (void)
 Returns the current text in the line edits. More...
 

Constructor & Destructor Documentation

◆ VuoDetailsEditorPoint()

VuoDetailsEditorPoint::VuoDetailsEditorPoint ( VuoType type,
QWidget *  parent = 0 
)
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.

Member Function Documentation

◆ convertFromLineEditsFormat()

json_object * VuoDetailsEditorPoint::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 
)
protected

Formats the value from the line edit to conform to the JSON specification for numbers.

Definition at line 353 of file VuoDetailsEditorPoint.cc.

◆ convertToLineEditFormat()

QString VuoDetailsEditorPoint::convertToLineEditFormat ( double  value)
protected

Returns the text that should appear in the line edit to represent value.

Definition at line 340 of file VuoDetailsEditorPoint.cc.

◆ getAcceptedValue()

json_object * VuoDetailsEditorPoint::getAcceptedValue ( void  )
protected

Returns the current text in the line edits.

Definition at line 320 of file VuoDetailsEditorPoint.cc.

◆ setUpDialog()

void VuoDetailsEditorPoint::setUpDialog ( QDialog &  dialog,
json_object originalDetails 
)
protected

Sets up a dialog containing the port details editor.

Definition at line 62 of file VuoDetailsEditorPoint.cc.

◆ setUpLineEdit()

void VuoDetailsEditorPoint::setUpLineEdit ( QLineEdit *  lineEdit,
double  originalValue,
bool  populateText 
)
protected

Configures the provided line edit to display the dialog's initial value.

Parameters
lineEditThe already-initialized QLineEdit widget to configure for the dialog.
originalValueThe double value to display in the text field, if it is to be populated at all.
populateTextA boolean indicating whether to populate the text field.

Definition at line 308 of file VuoDetailsEditorPoint.cc.

◆ show()

json_object * VuoDetailsEditorPoint::show ( QPoint  portLeftCenter,
json_object originalDetails 
)

Displays a frameless dialog.

Definition at line 28 of file VuoDetailsEditorPoint.cc.


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