#include <SchemaNodeItem.hxx>
Public Member Functions | |
SchemaNodeItem (SchemaItem *parent, QString label, Subject *subject) | |
virtual | ~SchemaNodeItem () |
virtual void | update (GuiEvent event, int type, Subject *son) |
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 | toggleState () |
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) |
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) |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::GuiObserver | |
static std::string | eventName (GuiEvent event) |
static void | setEventMap () |
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 |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 29 of file SchemaNodeItem.hxx.
SchemaNodeItem::SchemaNodeItem | ( | SchemaItem * | parent, |
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 45 of file SchemaNodeItem.cxx.
References YACS::HMI::SchemaItem::_itemCheckState, YACS::HMI::SchemaItem::_itemDeco, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::SchemaModel::isEdition(), setCaseValue(), YACS::HMI::SchemaItem::setExecState(), YACS::UNDEFINED, and YACS::HMI::YLabel.
|
virtual |
Definition at line 59 of file SchemaNodeItem.cxx.
References DEBTRACE.
|
virtual |
drop in nodes are used for control link
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 237 of file SchemaNodeItem.cxx.
References YACS::HMI::SchemaItem::data(), DEBTRACE, YACS::HMI::ItemMimeData::getSubject(), YACS::HMI::SchemaItem::getSubject(), PMMLBasicsTestLauncher::ret, and YACS::HMI::SubjectNode::tryCreateLink().
|
protectedvirtual |
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 282 of file SchemaNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 185 of file SchemaNodeItem.cxx.
References YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::YValue.
|
protectedvirtual |
drag for 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 209 of file SchemaNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 179 of file SchemaNodeItem.cxx.
References gui.GraphViewer::m, and YACS::HMI::ElementaryNodeMenu::popupMenu().
|
virtual |
used in node derived classes
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 262 of file SchemaNodeItem.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 SchemaNodeItem().
|
virtual |
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 217 of file SchemaNodeItem.cxx.
References YACS::HMI::SchemaItem::_itemCheckState, YACS::HMI::GuiExecutor::addBreakpoint(), DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::QtGuiContext::getGuiExecutor(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::GuiContext::getProc(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::SchemaItem::getSubject(), YACS::HMI::GuiExecutor::removeBreakpoint(), YACS::HMI::SchemaItem::toggleState(), YASSERT, and YACS::HMI::YLabel.
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 64 of file SchemaNodeItem.cxx.
References YACS::HMI::SchemaItem::_itemForeground, YACS::HMI::QtGuiContext::_mapOfSchemaItem, YACS::HMI::GuiContext::_mapOfSubjectDataPort, YACS::HMI::SchemaItem::_subject, YACS::HMI::ADD, YACS::HMI::SchemaItem::appendChild(), YACS::HMI::SchemaItem::child(), YACS::HMI::SchemaItem::childCount(), DEBTRACE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::Subject::getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::ENGINE::ElementaryNode::getSetOfInputPort(), YACS::ENGINE::ElementaryNode::getSetOfOutputPort(), YACS::ENGINE::Node::getState(), CORBAEngineTest::i, YACS::HMI::INPUTDATASTREAMPORT, YACS::HMI::INPUTPORT, YACS::INVALID, YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::ORDER, YACS::HMI::OUTPUTDATASTREAMPORT, YACS::HMI::OUTPUTPORT, YACS::READY, YACS::HMI::SchemaItem::removeChild(), YACS::HMI::SchemaModel::setData(), YACS::HMI::SchemaItem::setExecState(), YACS::HMI::SchemaItem::update(), YACS::HMI::UPDATE, YACS::HMI::UPDATEPROGRESS, YASSERT, YACS::HMI::YLabel, and YACS::HMI::YState.
Referenced by gui.graph.MyCanvas::customEvent().