Version: 8.3.0
YACS::HMI::EditionDataLink Class Reference

#include <EditionDataLink.hxx>

Inheritance diagram for YACS::HMI::EditionDataLink:
Collaboration diagram for YACS::HMI::EditionDataLink:

Public Member Functions

 EditionDataLink (Subject *subject, QWidget *parent=0, const char *name=0)
 
virtual ~EditionDataLink ()
 
virtual void update (GuiEvent event, int type, Subject *son)
 
- Public Member Functions inherited from YACS::HMI::ItemEdition
 ItemEdition (Subject *subject, QWidget *parent=0, const char *name=0)
 
virtual ~ItemEdition ()
 
virtual void synchronize ()
 
virtual void select (bool isSelected)
 
virtual void setName (std::string name)
 
virtual void setEdited (bool isEdited)
 
- Public Member Functions inherited from FormEditItem
 FormEditItem (QWidget *parent=0)
 
virtual ~FormEditItem ()
 
- Public Member Functions inherited from YACS::HMI::ItemEditionBase
 ItemEditionBase (Subject *subject)
 
virtual ~ItemEditionBase ()
 
virtual SubjectgetSubject ()
 
- Public Member Functions inherited from YACS::HMI::GuiObserver
 GuiObserver ()
 
virtual ~GuiObserver ()
 
virtual void incrementSubjects (Subject *subject)
 
virtual void decrementSubjects (Subject *subject)
 
int getNbSubjects ()
 
bool isDestructible ()
 

Protected Attributes

PropertyEditor_propeditor
 
- Protected Attributes inherited from YACS::HMI::ItemEdition
bool _isEdited
 
bool _haveScript
 
- Protected Attributes inherited from FormEditItem
WidEditItem_wid
 
- Protected Attributes inherited from YACS::HMI::ItemEditionBase
Subject_subject
 
int _stackId
 
std::string _name
 
std::string _type
 
std::string _category
 
- Protected Attributes inherited from YACS::HMI::GuiObserver
std::set< Subject * > _subjectSet
 
bool _destructible
 

Additional Inherited Members

- Public Slots inherited from YACS::HMI::ItemEdition
virtual void onApply ()
 
virtual void onCancel ()
 
virtual void onModifyName (const QString &text)
 
- Static Public Member Functions inherited from YACS::HMI::ItemEdition
static std::string filterName (const std::string &name)
 
- Static Protected Attributes inherited from YACS::HMI::GuiObserver
static std::map< int, std::string > _eventNameMap
 

Detailed Description

Definition at line 31 of file EditionDataLink.hxx.

Constructor & Destructor Documentation

EditionDataLink::EditionDataLink ( Subject subject,
QWidget parent = 0,
const char *  name = 0 
)

Definition at line 31 of file EditionDataLink.cxx.

References _propeditor, YACS::HMI::ItemEditionBase::_subject, FormEditItem::_wid, and YACS::HMI::SubjectLink::getSubjectInPort().

34  : ItemEdition(subject, parent, name)
35 {
36  SubjectLink * sub = dynamic_cast<SubjectLink*>(_subject);
37  if(dynamic_cast<SubjectInputDataStreamPort*>(sub->getSubjectInPort()))
38  {
40  _wid->gridLayout1->addWidget(_propeditor);
41  }
42 }
EditionDataLink::~EditionDataLink ( )
virtual

Definition at line 44 of file EditionDataLink.cxx.

45 {
46 }

Member Function Documentation

void EditionDataLink::update ( GuiEvent  event,
int  type,
Subject son 
)
virtual

when loading a schema, creation of all edition widgets is time and memory consuming, so, widget edition creation is differed until user select an item in tree or 2D vue.

Reimplemented from YACS::HMI::ItemEdition.

Definition at line 48 of file EditionDataLink.cxx.

References _propeditor, DEBTRACE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::SETVALUE, and YACS::HMI::PropertyEditor::update().

Referenced by gui.graph.MyCanvas::customEvent().

49 {
50  DEBTRACE("EditionDataLink::update " <<eventName(event) << " " << type);
51  if(event == SETVALUE && _propeditor)
53 }

Member Data Documentation

PropertyEditor* YACS::HMI::EditionDataLink::_propeditor
protected

Definition at line 41 of file EditionDataLink.hxx.

Referenced by EditionDataLink(), and update().


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