Vuo  2.0.3
Public Member Functions | Protected Member Functions | List of all members
VuoDetailsEditorNumeric Class Reference

Description

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

Constructor & Destructor Documentation

◆ VuoDetailsEditorNumeric()

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

Member Function Documentation

◆ convertFromLineEditsFormat()

json_object * VuoDetailsEditorNumeric::convertFromLineEditsFormat ( const QString &  suggestedMinValueAsString,
const QString &  suggestedMaxValueAsString,
const QString &  suggestedStepValueAsString 
)
protected

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

Definition at line 189 of file VuoDetailsEditorNumeric.cc.

◆ convertToLineEditFormat()

QString VuoDetailsEditorNumeric::convertToLineEditFormat ( json_object value)
protected

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

Definition at line 169 of file VuoDetailsEditorNumeric.cc.

◆ getAcceptedValue()

json_object * VuoDetailsEditorNumeric::getAcceptedValue ( void  )
protected

Returns the current text in the line edits.

Definition at line 159 of file VuoDetailsEditorNumeric.cc.

◆ setUpDialog()

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

Sets up a dialog containing the port details editor.

Definition at line 63 of file VuoDetailsEditorNumeric.cc.

◆ setUpLineEdit()

void VuoDetailsEditorNumeric::setUpLineEdit ( QLineEdit *  lineEdit,
json_object originalValue 
)
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 value to display initially in the dialog.

Definition at line 147 of file VuoDetailsEditorNumeric.cc.

◆ show()

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

Displays a frameless dialog.

Definition at line 29 of file VuoDetailsEditorNumeric.cc.


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