Version: 9.15.0
YACS::HMI::GenericEditor Class Reference

#include <ValueDelegate.hxx>

Inheritance diagram for YACS::HMI::GenericEditor:
Collaboration diagram for YACS::HMI::GenericEditor:

Public Member Functions

 GenericEditor ()
 
virtual ~GenericEditor ()
 
virtual void setSubject (Subject *subject)
 
virtual void setColumn (int column)
 
virtual void setDelegate (const ValueDelegate *delegate)
 
virtual QString GetStrValue ()
 
virtual SubjectgetSubject ()
 
virtual int getColumnInSubject ()
 
virtual void setData (QVariant val)
 
virtual bool firstSetData ()
 

Protected Attributes

Subject_subject
 
int _column
 
const ValueDelegate_delegate
 
bool _first
 

Detailed Description

Definition at line 40 of file ValueDelegate.hxx.

Constructor & Destructor Documentation

◆ GenericEditor()

GenericEditor::GenericEditor ( )

Definition at line 43 of file ValueDelegate.cxx.

44 {
45  _subject = 0;
46  _column = 0;
47  _delegate = 0;
48  _first = true;
49 }
const ValueDelegate * _delegate

◆ ~GenericEditor()

GenericEditor::~GenericEditor ( )
virtual

Definition at line 51 of file ValueDelegate.cxx.

52 {
53  DEBTRACE("GenericEditor::~GenericEditor " << this);
54 
55 }
#define DEBTRACE(msg)
Definition: YacsTrace.hxx:31

References DEBTRACE.

Member Function Documentation

◆ firstSetData()

bool GenericEditor::firstSetData ( )
virtual

Definition at line 91 of file ValueDelegate.cxx.

92 {
93  bool ret = _first;
94  _first = false;
95  return ret;
96 }

Referenced by YACS::HMI::ValueDelegate::setEditorData().

◆ getColumnInSubject()

int GenericEditor::getColumnInSubject ( )
virtual

Definition at line 82 of file ValueDelegate.cxx.

83 {
84  return _column;
85 }

Referenced by YACS::HMI::EditionElementaryNode::onCommitData(), and YACS::HMI::TreeView::onCommitData().

◆ GetStrValue()

◆ getSubject()

◆ setColumn()

void GenericEditor::setColumn ( int  column)
virtual

◆ setData()

void GenericEditor::setData ( QVariant  val)
virtual

◆ setDelegate()

void GenericEditor::setDelegate ( const ValueDelegate delegate)
virtual

◆ setSubject()

void GenericEditor::setSubject ( Subject subject)
virtual

Member Data Documentation

◆ _column

int YACS::HMI::GenericEditor::_column
protected

Definition at line 55 of file ValueDelegate.hxx.

◆ _delegate

const ValueDelegate* YACS::HMI::GenericEditor::_delegate
protected

Definition at line 56 of file ValueDelegate.hxx.

◆ _first

bool YACS::HMI::GenericEditor::_first
protected

Definition at line 57 of file ValueDelegate.hxx.

◆ _subject

Subject* YACS::HMI::GenericEditor::_subject
protected

Definition at line 54 of file ValueDelegate.hxx.


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