Version: 8.3.0
YACS::HMI::GeneralEditor Class Reference

#include <ValueDelegate.hxx>

Inheritance diagram for YACS::HMI::GeneralEditor:
Collaboration diagram for YACS::HMI::GeneralEditor:

Public Member Functions

 GeneralEditor (Subject *subject, const ValueDelegate *delegate, int column=0, QWidget *parent=0)
 
virtual ~GeneralEditor ()
 
virtual QString GetStrValue ()
 
virtual void setData (QVariant val)
 
- Public Member Functions inherited from YACS::HMI::GenericEditor
 GenericEditor ()
 
virtual ~GenericEditor ()
 
virtual void setSubject (Subject *subject)
 
virtual void setColumn (int column)
 
virtual void setDelegate (const ValueDelegate *delegate)
 
virtual SubjectgetSubject ()
 
virtual int getColumnInSubject ()
 
virtual bool firstSetData ()
 

Additional Inherited Members

- Protected Attributes inherited from YACS::HMI::GenericEditor
Subject_subject
 
int _column
 
const ValueDelegate_delegate
 
bool _first
 

Detailed Description

Definition at line 60 of file ValueDelegate.hxx.

Constructor & Destructor Documentation

GeneralEditor::GeneralEditor ( Subject subject,
const ValueDelegate delegate,
int  column = 0,
QWidget parent = 0 
)

Definition at line 100 of file ValueDelegate.cxx.

References DEBTRACE, YACS::HMI::GenericEditor::setColumn(), YACS::HMI::GenericEditor::setDelegate(), and YACS::HMI::GenericEditor::setSubject().

104  : QLineEdit(parent), GenericEditor()
105 {
106  DEBTRACE("GeneralEditor::GeneralEditor");
107  setDelegate(delegate);
108  setSubject(subject);
109  setColumn(column);
110 }
GeneralEditor::~GeneralEditor ( )
virtual

Definition at line 112 of file ValueDelegate.cxx.

113 {
114 }

Member Function Documentation

QString GeneralEditor::GetStrValue ( )
virtual

Reimplemented from YACS::HMI::GenericEditor.

Definition at line 116 of file ValueDelegate.cxx.

References DEBTRACE.

117 {
118  DEBTRACE("GeneralEditor::GetStrValue " << text().toStdString());
119  return text();
120 }
void GeneralEditor::setData ( QVariant  val)
virtual

Reimplemented from YACS::HMI::GenericEditor.

Definition at line 122 of file ValueDelegate.cxx.

References DEBTRACE.

123 {
124  DEBTRACE("GeneralEditor::setData " << this);
125  DEBTRACE(val.canConvert<QString>());
126  DEBTRACE(val.toString().toStdString());
127  setText(val.toString());
128 }

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