Version: 8.3.0
YACS::HMI::EditionNode Class Reference

#include <EditionNode.hxx>

Inheritance diagram for YACS::HMI::EditionNode:
Collaboration diagram for YACS::HMI::EditionNode:

Public Member Functions

 EditionNode (Subject *subject, QWidget *parent=0, const char *name=0)
 
virtual ~EditionNode ()
 
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

QLineEdit_le_fullName
 
SubjectNode_subjectNode
 
- 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 33 of file EditionNode.hxx.

Constructor & Destructor Documentation

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

Definition at line 35 of file EditionNode.cxx.

References _le_fullName, YACS::HMI::ItemEditionBase::_subject, _subjectNode, FormEditItem::_wid, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::GuiContext::getProc(), YACS::HMI::QtGuiContext::getQtCurrent(), and YASSERT.

38  : ItemEdition(subject, parent, name)
39 {
40  DEBTRACE("EditionNode::EditionNode");
41  if (QtGuiContext::getQtCurrent()->isEdition())
42  _wid->le_name->setReadOnly(false);
43 
44  _subjectNode = dynamic_cast<SubjectNode*>(_subject);
46 
47  _le_fullName = 0;
48  if (!dynamic_cast<SubjectProc*>(_subject))
49  {
50  _le_fullName = new QLineEdit(this);
51  _le_fullName->setToolTip("Full name of the node in schema");
52  _le_fullName->setReadOnly(true);
53  _wid->gridLayout1->addWidget(_le_fullName);
54 
56  _le_fullName->setText((proc->getChildName(_subjectNode->getNode())).c_str());
57  }
58 }
EditionNode::~EditionNode ( )
virtual

Definition at line 60 of file EditionNode.cxx.

61 {
62 }

Member Function Documentation

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

Member Data Documentation

QLineEdit* YACS::HMI::EditionNode::_le_fullName
protected

Definition at line 47 of file EditionNode.hxx.

Referenced by EditionNode(), and update().


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