#include <SchemaReferenceItem.hxx>
Public Member Functions | |
SchemaReferenceItem (SchemaItem *parent, QString label, Subject *subject) | |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
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 Qt::ItemFlags | flags (const QModelIndex &index) |
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 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 () |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::GuiObserver | |
static std::string | eventName (GuiEvent event) |
static void | setEventMap () |
Protected Member Functions inherited from YACS::HMI::SchemaItem | |
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 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 SchemaReferenceItem.hxx.
SchemaReferenceItem::SchemaReferenceItem | ( | SchemaItem * | parent, |
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 32 of file SchemaReferenceItem.cxx.
References YACS::HMI::SchemaItem::_itemDeco, YACS::HMI::SchemaItem::_itemForeground, and YACS::HMI::YLabel.
|
virtual |
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 53 of file SchemaReferenceItem.cxx.
References gui.GraphViewer::m, and YACS::HMI::ReferenceMenu::popupMenu().
Reimplemented from YACS::HMI::SchemaItem.
Definition at line 39 of file SchemaReferenceItem.cxx.
References YACS::HMI::SchemaItem::_itemData, YACS::HMI::SchemaItem::_label, DEBTRACE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::RENAME, YACS::HMI::SchemaModel::setData(), YACS::HMI::SchemaItem::update(), and YACS::HMI::YLabel.
Referenced by gui.graph.MyCanvas::customEvent().