#include <SceneInPortItem.hxx>
Public Member Functions | |
SceneInPortItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneInPortItem () |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
Public Member Functions inherited from YACS::HMI::SceneDataPortItem | |
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 () |
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 () |
Protected Member Functions | |
void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
void | dropEvent (QGraphicsSceneDragDropEvent *event) |
virtual QColor | getPenColor () |
virtual QColor | getBrushColor () |
Protected Attributes | |
bool | _dragOver |
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 |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 29 of file SceneInPortItem.hxx.
SceneInPortItem::SceneInPortItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label, | ||
Subject * | subject | ||
) |
|
virtual |
Definition at line 48 of file SceneInPortItem.cxx.
References YACS::HMI::SceneDataPortItem::getParent().
|
protected |
Definition at line 60 of file SceneInPortItem.cxx.
References _dragOver, and YACS::HMI::ItemMimeData::getSubject().
|
protected |
Definition at line 79 of file SceneInPortItem.cxx.
References _dragOver.
|
protected |
Definition at line 86 of file SceneInPortItem.cxx.
References _dragOver, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::ItemMimeData::getControl(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::SceneObserverItem::getSubject(), YACS::HMI::ItemMimeData::getSubject(), and YACS::HMI::SubjectDataPort::tryCreateLink().
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneObserverItem.
Definition at line 121 of file SceneInPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, _dragOver, YACS::HMI::SceneObserverItem::_emphasized, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::SceneItem::_hover, YACS::HMI::Resource::emphasizeBrushColor, and YACS::HMI::SceneItem::hoverColor().
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 111 of file SceneInPortItem.cxx.
References _dragOver, YACS::HMI::AbstractSceneItem::_hiPenColor, YACS::HMI::AbstractSceneItem::_penColor, and YACS::HMI::Resource::dragOver.
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 54 of file SceneInPortItem.cxx.
References gui.GraphViewer::m, and YACS::HMI::InPortMenu::popupMenu().
|
protected |
Definition at line 42 of file SceneInPortItem.hxx.
Referenced by dragEnterEvent(), dragLeaveEvent(), dropEvent(), getBrushColor(), getPenColor(), and SceneInPortItem().