#include <SchemaItem.hxx>
Public Member Functions | |
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 Qt::ItemFlags | flags (const QModelIndex &index) |
virtual int | row () const |
virtual SchemaItem * | parent () |
virtual Subject * | getSubject () |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | select (bool isSelected) |
virtual void | toggleState () |
QModelIndex | modelIndex (int column=0) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual ItemMimeData * | mimeData (ItemMimeData *mime) |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action) |
virtual void | reparent (SchemaItem *parent) |
virtual void | setCaseValue () |
used in node derived classes More... | |
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 QVariant | editionToolTip (int column) const |
virtual QVariant | runToolTip (int column) const |
virtual QVariant | editionWhatsThis (int column) const |
virtual QVariant | runWhatsThis (int column) const |
virtual QString | getMimeFormat () |
virtual void | setExecState (int execState) |
Protected Attributes | |
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 36 of file SchemaItem.hxx.
SchemaItem::SchemaItem | ( | SchemaItem * | parent, |
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 39 of file SchemaItem.cxx.
References DEBTRACE, YACS::UNDEFINED, and YACS::HMI::YLabel.
|
virtual |
|
virtual |
Definition at line 87 of file SchemaItem.cxx.
References DEBTRACE.
Referenced by reparent(), and YACS::HMI::SchemaNodeItem::update().
|
virtual |
Definition at line 105 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaModel::index(), and YACS::HMI::SchemaNodeItem::update().
|
virtual |
Definition at line 111 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaContainerItem::addComponentInstance(), YACS::HMI::SchemaDirContainersItem::addContainerItem(), YACS::HMI::SchemaDirLinksItem::addLinkItem(), YACS::HMI::SchemaDirTypesItem::addTypeItem(), YACS::HMI::SchemaModel::rowCount(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), gui.Tree.Node::setOpen(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
virtual |
Definition at line 117 of file SchemaItem.cxx.
|
virtual |
Definition at line 123 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaModel::data(), YACS::HMI::SchemaInPortItem::dropMimeData(), YACS::HMI::SchemaDirTypesItem::dropMimeData(), YACS::HMI::SchemaNodeItem::dropMimeData(), YACS::HMI::SchemaComposedNodeItem::dropMimeData(), and YACS::HMI::SceneObserverItem::getToolTip().
|
virtual |
Reimplemented in YACS::HMI::SchemaComposedNodeItem, YACS::HMI::SchemaNodeItem, YACS::HMI::SchemaDirTypesItem, and YACS::HMI::SchemaInPortItem.
Definition at line 284 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaModel::dropMimeData().
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in YACS::HMI::SchemaComposedNodeItem, YACS::HMI::SchemaNodeItem, YACS::HMI::SchemaDirContainersItem, YACS::HMI::SchemaInPortItem, YACS::HMI::SchemaDirTypesItem, YACS::HMI::SchemaContainerItem, YACS::HMI::SchemaComponentItem, YACS::HMI::SchemaDirLinksItem, YACS::HMI::SchemaLinkItem, YACS::HMI::SchemaProcItem, and YACS::HMI::SchemaDataTypeItem.
Definition at line 321 of file SchemaItem.cxx.
|
virtual |
Reimplemented in YACS::HMI::SchemaComposedNodeItem, YACS::HMI::SchemaNodeItem, YACS::HMI::SchemaDirTypesItem, YACS::HMI::SchemaDirLinksItem, YACS::HMI::SchemaInPortItem, and YACS::HMI::SchemaOutPortItem.
Definition at line 149 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaModel::flags().
|
protectedvirtual |
Reimplemented in YACS::HMI::SchemaComposedNodeItem, YACS::HMI::SchemaNodeItem, and YACS::HMI::SchemaOutPortItem.
Definition at line 333 of file SchemaItem.cxx.
|
virtual |
Definition at line 169 of file SchemaItem.cxx.
Referenced by YACS::HMI::ValueDelegate::createEditor(), YACS::HMI::GuiEditor::DeleteSubject(), YACS::HMI::SchemaInPortItem::dropMimeData(), YACS::HMI::SchemaNodeItem::dropMimeData(), YACS::HMI::SchemaComposedNodeItem::dropMimeData(), YACS::HMI::SchemaModel::dropMimeData(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::TablePortsEdition::on_pb_remove_clicked(), YACS::HMI::TablePortsEdition::oncb_insert_activated(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::EditionSwitch::synchronize(), YACS::HMI::EditionElementaryNode::synchronize(), YACS::HMI::SchemaNodeItem::toggleState(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaModel::updateSelection(), and YACS::HMI::TablePortsEdition::upOrDown().
|
virtual |
Definition at line 99 of file SchemaItem.cxx.
References DEBTRACE.
|
inline |
|
virtual |
setData mime type must be coherent with SchemaModel::mimeTypes
Definition at line 276 of file SchemaItem.cxx.
References DEBTRACE, and YACS::HMI::ItemMimeData::setSubject().
Referenced by YACS::HMI::SchemaModel::mimeData().
QModelIndex SchemaItem::modelIndex | ( | int | column = 0 | ) |
Definition at line 253 of file SchemaItem.cxx.
References YACS::HMI::SchemaModel::getRootItem(), and YACS::HMI::SchemaModel::index().
Referenced by YACS::HMI::SchemaContainerItem::addComponentInstance(), YACS::HMI::SchemaDirContainersItem::addContainerItem(), YACS::HMI::SchemaDirLinksItem::addLinkItem(), YACS::HMI::SchemaDirTypesItem::addTypeItem(), YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::TreeView::resizeColumns(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::ItemEdition::setEdited(), YACS::HMI::EditionSwitch::synchronize(), YACS::HMI::EditionElementaryNode::synchronize(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaReferenceItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaNodeItem::update(), YACS::HMI::SchemaComposedNodeItem::update(), and YACS::HMI::TablePortsEdition::upOrDown().
|
virtual |
Definition at line 163 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaInPortItem::flags(), YACS::HMI::SchemaOutPortItem::flags(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::SchemaModel::parent(), and YACS::HMI::TablePortsEdition::upOrDown().
|
virtual |
Reimplemented in YACS::HMI::SchemaComposedNodeItem, YACS::HMI::SchemaDirContainersItem, YACS::HMI::SchemaInPortItem, YACS::HMI::SchemaContainerItem, YACS::HMI::SchemaNodeItem, YACS::HMI::SchemaOutPortItem, YACS::HMI::SchemaComponentItem, YACS::HMI::SchemaLinkItem, YACS::HMI::SchemaProcItem, and YACS::HMI::SchemaReferenceItem.
Definition at line 267 of file SchemaItem.cxx.
References gui.GraphViewer::m, and YACS::HMI::MenusBase::popupMenu().
Referenced by YACS::HMI::TreeView::contextMenuEvent().
|
virtual |
Definition at line 93 of file SchemaItem.cxx.
References DEBTRACE.
Referenced by YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
virtual |
Definition at line 289 of file SchemaItem.cxx.
References appendChild().
Referenced by YACS::HMI::SchemaComposedNodeItem::update().
|
virtual |
Definition at line 154 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaModel::parent(), and YACS::HMI::SchemaComposedNodeItem::update().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 327 of file SchemaItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::GuiObserver.
Definition at line 206 of file SchemaItem.cxx.
References YACS::HMI::ADD, YACS::HMI::ADDCONTROLLINK, YACS::HMI::ADDLINK, YACS::HMI::CONTROLLINK, YACS::HMI::DATALINK, and DEBTRACE.
|
virtual |
used in node derived classes
Reimplemented in YACS::HMI::SchemaComposedNodeItem, and YACS::HMI::SchemaNodeItem.
Definition at line 297 of file SchemaItem.cxx.
Referenced by YACS::HMI::SchemaComposedNodeItem::update().
|
inline |
|
protectedvirtual |
Reimplemented in YACS::HMI::SchemaProcItem.
Definition at line 338 of file SchemaItem.cxx.
References YACS::ACTIVATED, DEBTRACE, YACS::DESACTIVATED, YACS::DISABLED, YACS::DONE, YACS::ERROR, YACS::EXECFAILED, YACS::FAILED, YACS::INTERNALERR, YACS::INVALID, YACS::LOADED, YACS::LOADFAILED, YACS::PAUSE, YACS::READY, YACS::SUSPENDED, YACS::TOACTIVATE, YACS::TOLOAD, YACS::UNDEFINED, and YACS::HMI::YState.
Referenced by YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaNodeItem::SchemaNodeItem(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
virtual |
Reimplemented in YACS::HMI::SchemaNodeItem.
Definition at line 239 of file SchemaItem.cxx.
References DEBTRACE, and YACS::HMI::YLabel.
Referenced by YACS::HMI::SchemaModel::setData(), and YACS::HMI::SchemaNodeItem::toggleState().
Reimplemented from YACS::HMI::GuiObserver.
Reimplemented in YACS::HMI::SchemaComposedNodeItem, YACS::HMI::SchemaNodeItem, YACS::HMI::SchemaComponentItem, YACS::HMI::SchemaContainerItem, YACS::HMI::SchemaDataTypeItem, YACS::HMI::SchemaInPortItem, YACS::HMI::SchemaLinkItem, YACS::HMI::SchemaOutPortItem, and YACS::HMI::SchemaReferenceItem.
Definition at line 174 of file SchemaItem.cxx.
References DEBTRACE, YACS::HMI::EDIT, YACS::HMI::SchemaModel::editedBackBrush(), YACS::HMI::EMPHASIZE, YACS::HMI::SchemaModel::emphasizeBackBrush(), YACS::HMI::RENAME, YACS::HMI::SchemaModel::setData(), YACS::HMI::SchemaModel::stdBackBrush(), and YACS::HMI::YLabel.
Referenced by gui.graph.MyCanvas::customEvent(), YACS::HMI::SchemaReferenceItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaLinkItem::update(), YACS::HMI::SchemaDataTypeItem::update(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
protected |
Definition at line 76 of file SchemaItem.hxx.
|
protected |
Definition at line 88 of file SchemaItem.hxx.
Referenced by isEmphasized(), and setEmphasize().
|
protected |
Definition at line 87 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaProcItem::setExecState().
|
protected |
Definition at line 80 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaProcItem::setExecState().
|
protected |
Definition at line 81 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaNodeItem::SchemaNodeItem(), and YACS::HMI::SchemaNodeItem::toggleState().
|
protected |
Definition at line 77 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaProcItem::editionToolTip(), YACS::HMI::SchemaInPortItem::editionWhatsThis(), YACS::HMI::SchemaProcItem::runToolTip(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaInPortItem::SchemaInPortItem(), YACS::HMI::SchemaOutPortItem::SchemaOutPortItem(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::SchemaProcItem::setExecState(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaReferenceItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
protected |
Definition at line 78 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaComponentItem::SchemaComponentItem(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaContainerItem::SchemaContainerItem(), YACS::HMI::SchemaDirContainersItem::SchemaDirContainersItem(), YACS::HMI::SchemaDirLinksItem::SchemaDirLinksItem(), YACS::HMI::SchemaDirTypesItem::SchemaDirTypesItem(), YACS::HMI::SchemaInPortItem::SchemaInPortItem(), YACS::HMI::SchemaLinkItem::SchemaLinkItem(), YACS::HMI::SchemaNodeItem::SchemaNodeItem(), YACS::HMI::SchemaOutPortItem::SchemaOutPortItem(), and YACS::HMI::SchemaReferenceItem::SchemaReferenceItem().
|
protected |
Definition at line 79 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaInPortItem::SchemaInPortItem(), YACS::HMI::SchemaOutPortItem::SchemaOutPortItem(), YACS::HMI::SchemaReferenceItem::SchemaReferenceItem(), YACS::HMI::SchemaProcItem::setExecState(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
protected |
Definition at line 82 of file SchemaItem.hxx.
|
protected |
Definition at line 83 of file SchemaItem.hxx.
|
protected |
Definition at line 84 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaReferenceItem::update().
|
protected |
Definition at line 85 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaNodeItem::setCaseValue(), and YACS::HMI::SchemaComposedNodeItem::setCaseValue().
|
protected |
Definition at line 86 of file SchemaItem.hxx.
Referenced by YACS::HMI::SchemaInPortItem::flags(), YACS::HMI::SchemaOutPortItem::flags(), YACS::HMI::SchemaComposedNodeItem::getDirectDescendants(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().