#include <SceneDataPortItem.hxx>
Public Member Functions | |
SceneDataPortItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneDataPortItem () |
virtual void | setText (QString label) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual SceneNodeItem * | getParent () |
virtual void | updateChildItems () |
virtual void | updateLinks () |
virtual void | shrinkExpandLink (bool se) |
Public Member Functions inherited from YACS::HMI::SceneObserverItem | |
SceneObserverItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneObserverItem () |
virtual void | select (bool isSelected) |
virtual void | activateSelection (bool selected) |
virtual Subject * | getSubject () |
virtual QString | getToolTip () |
Public Member Functions inherited from YACS::HMI::SceneItem | |
SceneItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneItem () |
virtual QRectF | boundingRect () const |
virtual QRectF | childrenBoundingRect () const |
virtual void | setTopLeft (QPointF topLeft) |
virtual void | checkGeometryChange () |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
void | setParent (SceneItem *parent) |
void | setEventPos (QPointF point) |
virtual void | shrinkExpandRecursive (bool isExpanding, bool fromHere, ShrinkMode theShrinkMode) |
bool | isAncestorShrinked () |
Public Member Functions inherited from YACS::HMI::AbstractSceneItem | |
AbstractSceneItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~AbstractSceneItem () |
int | getLevel () |
void | setLevel () |
virtual void | reorganize () |
virtual QString | getLabel () |
virtual void | addHeader () |
virtual void | addProgressItem () |
virtual qreal | getHeaderBottom () |
qreal | getWidth () |
qreal | getHeight () |
virtual void | setWidth (qreal width) |
AbstractSceneItem cannot be resized (only ComposedNodeItem can) More... | |
virtual void | setHeight (qreal height) |
AbstractSceneItem cannot be resized (only ComposedNodeItem can) More... | |
virtual void | setGeometryOptimization (bool optimize) |
SceneItem * | getParent () |
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 () |
Public Member Functions inherited from YACS::HMI::ScenePortItem | |
ScenePortItem (QString label) | |
virtual | ~ScenePortItem () |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::GuiObserver | |
static std::string | eventName (GuiEvent event) |
static void | setEventMap () |
Public Attributes inherited from YACS::HMI::SceneItem | |
bool | _blocX |
bool | _blocY |
Protected Member Functions inherited from YACS::HMI::SceneObserverItem | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual QColor | getBrushColor () |
virtual QString | getMimeFormat () |
Protected Attributes inherited from YACS::HMI::SceneObserverItem | |
Subject * | _subject |
bool | _draging |
bool | _dragModifier |
bool | _emphasized |
Protected Attributes inherited from YACS::HMI::ScenePortItem | |
SceneTextItem * | _text |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 32 of file SceneDataPortItem.hxx.
SceneDataPortItem::SceneDataPortItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 38 of file SceneDataPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_height, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::AbstractSceneItem::_hiPenColor, YACS::HMI::AbstractSceneItem::_penColor, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::DataPort_brush, YACS::HMI::Resource::DataPort_Height, YACS::HMI::Resource::DataPort_hiBrush, YACS::HMI::Resource::DataPort_hiPen, YACS::HMI::Resource::DataPort_pen, YACS::HMI::Resource::DataPort_Width, YACS::HMI::Resource::DataStreamPort_brush, YACS::HMI::Resource::DataStreamPort_hiBrush, YACS::HMI::Resource::DataStreamPort_hiPen, YACS::HMI::Resource::DataStreamPort_pen, YACS::HMI::SceneObserverItem::getSubject(), YACS::HMI::INPUTDATASTREAMPORT, YACS::HMI::INPUTPORT, YACS::HMI::OUTPUTDATASTREAMPORT, YACS::HMI::OUTPUTPORT, and setText().
|
virtual |
Definition at line 64 of file SceneDataPortItem.cxx.
References DEBTRACE.
|
virtual |
Definition at line 110 of file SceneDataPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent.
Referenced by YACS::HMI::SceneInPortItem::~SceneInPortItem(), and YACS::HMI::SceneOutPortItem::~SceneOutPortItem().
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 69 of file SceneDataPortItem.cxx.
References YACS::HMI::Resource::DataPort_Height, YACS::HMI::Resource::DataPort_Width, DEBTRACE, YACS::HMI::SceneObserverItem::getBrushColor(), YACS::HMI::SceneItem::getPenColor(), YACS::HMI::Resource::Radius, and YACS::HMI::Resource::Thickness.
|
virtual |
Implements YACS::HMI::ScenePortItem.
Definition at line 86 of file SceneDataPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_scene, and YACS::HMI::ScenePortItem::_text.
Referenced by SceneDataPortItem().
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 146 of file SceneDataPortItem.cxx.
References YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::SceneObserverItem::_subject, and YACS::HMI::QtGuiContext::getQtCurrent().
Reimplemented from YACS::HMI::SceneObserverItem.
Definition at line 94 of file SceneDataPortItem.cxx.
References YACS::HMI::ScenePortItem::_text, DEBTRACE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::Subject::getName(), YACS::HMI::REMOVE, YACS::HMI::RENAME, YACS::HMI::SceneTextItem::setPlainTextTrunc(), and YACS::HMI::SceneObserverItem::update().
Referenced by gui.graph.MyCanvas::customEvent().
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 118 of file SceneDataPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_label, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::SceneObserverItem::_subject, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::SceneLinkItem::updateShape().
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 132 of file SceneDataPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_label, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::SceneObserverItem::_subject, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::SceneLinkItem::updateShape().