#include <SchemaComposedNodeItem.hxx>
Public Member Functions | |
SchemaComposedNodeItem (SchemaItem *parent, QString label, Subject *subject) | |
virtual | ~SchemaComposedNodeItem () |
virtual void | update (GuiEvent event, int type, Subject *son) |
std::list< YACS::ENGINE::Node * > | getDirectDescendants () const |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual Qt::ItemFlags | flags (const QModelIndex &index) |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action) |
virtual void | setCaseValue () |
used in node derived classes More... | |
Public Member Functions inherited from YACS::HMI::SchemaItem | |
SchemaItem (SchemaItem *parent, QString label, Subject *subject) | |
virtual | ~SchemaItem () |
virtual void | appendChild (SchemaItem *child) |
virtual void | removeChild (SchemaItem *child) |
virtual void | insertChild (int row, SchemaItem *child) |
virtual SchemaItem * | child (int row) |
virtual int | childCount () const |
virtual int | columnCount () const |
virtual QVariant | data (int column, int role) const |
virtual int | row () const |
virtual SchemaItem * | parent () |
virtual Subject * | getSubject () |
virtual void | select (bool isSelected) |
virtual void | toggleState () |
QModelIndex | modelIndex (int column=0) |
virtual ItemMimeData * | mimeData (ItemMimeData *mime) |
virtual void | reparent (SchemaItem *parent) |
bool | isEmphasized () |
void | setEmphasize (bool emphasize) |
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 Member Functions | |
virtual QString | getMimeFormat () |
virtual QVariant | editionWhatsThis (int column) const |
Protected Member Functions inherited from YACS::HMI::SchemaItem | |
virtual QVariant | editionToolTip (int column) const |
virtual QVariant | runToolTip (int column) const |
virtual QVariant | runWhatsThis (int column) const |
virtual void | setExecState (int execState) |
Protected Attributes | |
SchemaDirTypesItem * | _dirTypesItem |
SchemaDirContainersItem * | _dirContainersItem |
SchemaDirLinksItem * | _dirLinksItem |
Protected Attributes inherited from YACS::HMI::SchemaItem | |
QList< SchemaItem * > | _childItems |
QList< QVariant > | _itemData |
QList< QVariant > | _itemDeco |
QList< QVariant > | _itemForeground |
QList< QVariant > | _itemBackground |
QList< QVariant > | _itemCheckState |
QList< QVariant > | _itemToolTip |
QList< QVariant > | _itemWhatsThis |
QString | _label |
SchemaItem * | _parentItem |
Subject * | _subject |
int | _execState |
bool | _emphasized |
Protected Attributes inherited from YACS::HMI::GuiObserver | |
std::set< Subject * > | _subjectSet |
bool | _destructible |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::GuiObserver | |
static std::string | eventName (GuiEvent event) |
static void | setEventMap () |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 33 of file SchemaComposedNodeItem.hxx.
SchemaComposedNodeItem::SchemaComposedNodeItem | ( | SchemaItem * | parent, |
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 60 of file SchemaComposedNodeItem.cxx.
References _dirContainersItem, _dirLinksItem, _dirTypesItem, YACS::HMI::SchemaItem::_itemData, YACS::HMI::SchemaItem::_itemDeco, YACS::HMI::BLOC, YACS::HMI::SchemaItem::childCount(), DEBTRACE, YACS::HMI::FOREACHLOOP, YACS::HMI::FORLOOP, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::SchemaItem::getSubject(), YACS::HMI::Subject::getType(), YACS::HMI::SubjectComposedNode::getValue(), YACS::HMI::SubjectComposedNode::hasValue(), YACS::HMI::SchemaModel::isEdition(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::OPTIMIZERLOOP, setCaseValue(), YACS::HMI::SchemaModel::setData(), YACS::HMI::SchemaItem::setExecState(), YACS::HMI::SWITCH, YACS::UNDEFINED, YACS::HMI::WHILELOOP, YASSERT, YACS::HMI::YLabel, and YACS::HMI::YType.
Referenced by update().
|
virtual |
Definition at line 116 of file SchemaComposedNodeItem.cxx.
References DEBTRACE.
|
virtual |
drop in composed nodes are used for add nodes from catalog, or reparent nodes, or control link
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 356 of file SchemaComposedNodeItem.cxx.
References YACS::HMI::GenericGui::_guiEditor, YACS::HMI::Resource::COMPONENT_INSTANCE_NEW, YACS::HMI::GuiEditor::CreateNodeFromCatalog(), YACS::HMI::SchemaItem::data(), DEBTRACE, YACS::HMI::ItemMimeData::getControl(), YACS::HMI::QtGuiContext::getGMain(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::ItemMimeData::getSubject(), YACS::HMI::SchemaItem::getSubject(), YACS::HMI::SubjectNode::reparent(), PMMLBasicsTestLauncher::ret, and YACS::HMI::SubjectNode::tryCreateLink().
|
protectedvirtual |
Reimplemented from YACS::HMI::SchemaItem.
Reimplemented in YACS::HMI::SchemaProcItem.
Definition at line 438 of file SchemaComposedNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 332 of file SchemaComposedNodeItem.cxx.
References YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::YValue.
std::list< YACS::ENGINE::Node * > SchemaComposedNodeItem::getDirectDescendants | ( | ) | const |
Definition at line 317 of file SchemaComposedNodeItem.cxx.
References YACS::HMI::SchemaItem::_subject, YACS::ENGINE::ComposedNode::edGetDirectDescendants(), YACS::HMI::SubjectNode::getNode(), and YASSERT.
|
protectedvirtual |
drag for composed nodes in tree are used for control link with Left Mouse Button and for reparent with Middle Mouse Button
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 410 of file SchemaComposedNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SchemaItem.
Reimplemented in YACS::HMI::SchemaProcItem.
Definition at line 326 of file SchemaComposedNodeItem.cxx.
References gui.GraphViewer::m, and YACS::HMI::ComposedNodeMenu::popupMenu().
|
virtual |
used in node derived classes
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 418 of file SchemaComposedNodeItem.cxx.
References YACS::HMI::SchemaItem::_itemData, YACS::HMI::SchemaItem::_parentItem, YACS::HMI::SchemaItem::_subject, DEBTRACE, YACS::HMI::SubjectNode::getNode(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::ENGINE::Switch::getRankOfNode(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::SchemaItem::getSubject(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::SchemaModel::setData(), YASSERT, and YACS::HMI::YValue.
Referenced by SchemaComposedNodeItem().
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 121 of file SchemaComposedNodeItem.cxx.
References _dirContainersItem, _dirLinksItem, _dirTypesItem, YACS::HMI::SchemaItem::_itemData, YACS::HMI::SchemaItem::_itemForeground, YACS::HMI::QtGuiContext::_mapOfSchemaItem, YACS::HMI::GuiContext::_mapOfSubjectNode, YACS::HMI::SchemaItem::_subject, YACS::HMI::ADD, YACS::HMI::SchemaDirContainersItem::addComponentItem(), YACS::HMI::SchemaDirContainersItem::addContainerItem(), YACS::HMI::ADDCONTROLLINK, YACS::HMI::ADDLINK, YACS::HMI::SchemaDirLinksItem::addLinkItem(), YACS::HMI::SchemaDirTypesItem::addTypeItem(), YACS::HMI::BLOC, YACS::HMI::SchemaItem::childCount(), YACS::HMI::COMPONENT, YACS::HMI::CONTAINER, YACS::HMI::CORBANODE, YACS::HMI::CPPNODE, YACS::HMI::CUT, YACS::HMI::DATATYPE, DEBTRACE, YACS::ENGINE::Switch::edGetNode(), YACS::HMI::GuiObserver::eventName(), YACS::HMI::FOREACHLOOP, YACS::HMI::FORLOOP, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::Subject::getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::ENGINE::Node::getState(), YACS::HMI::SubjectComposedNode::getValue(), YACS::HMI::SubjectSwitch::getValue(), YACS::HMI::SubjectComposedNode::hasValue(), YACS::HMI::SubjectSwitch::hasValue(), YACS::HMI::INPUTDATASTREAMPORT, YACS::HMI::INPUTPORT, YACS::INVALID, YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::OPTIMIZERLOOP, YACS::HMI::OUTNODE, YACS::HMI::OUTPUTDATASTREAMPORT, YACS::HMI::OUTPUTPORT, YACS::HMI::PASTE, YACS::HMI::PRESETNODE, YACS::HMI::PYFUNCNODE, YACS::HMI::PYTHONNODE, YACS::READY, YACS::HMI::REMOVE, YACS::HMI::SchemaItem::removeChild(), YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::SchemaItem::reparent(), YACS::HMI::SchemaItem::row(), YACS::HMI::SALOMENODE, YACS::HMI::SALOMEPYTHONNODE, SchemaComposedNodeItem(), YACS::HMI::SETCASE, YACS::HMI::SchemaItem::setCaseValue(), YACS::HMI::SchemaModel::setData(), YACS::HMI::SchemaItem::setExecState(), YACS::HMI::SETSELECT, YACS::HMI::SETVALUE, YACS::HMI::STUDYINNODE, YACS::HMI::STUDYOUTNODE, YACS::HMI::SWITCH, YACS::HMI::SchemaItem::update(), YACS::HMI::UPDATE, YACS::HMI::UPDATEPROGRESS, YACS::HMI::WHILELOOP, YACS::HMI::XMLNODE, YASSERT, YACS::HMI::YLabel, YACS::HMI::YState, and YACS::HMI::YType.
Referenced by gui.graph.MyCanvas::customEvent().
|
protected |
Definition at line 48 of file SchemaComposedNodeItem.hxx.
Referenced by SchemaComposedNodeItem(), and update().
|
protected |
Definition at line 49 of file SchemaComposedNodeItem.hxx.
Referenced by SchemaComposedNodeItem(), and update().
|
protected |
Definition at line 47 of file SchemaComposedNodeItem.hxx.
Referenced by SchemaComposedNodeItem(), and update().