#include <SceneElementaryNodeItem.hxx>
Public Member Functions | |
SceneElementaryNodeItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneElementaryNodeItem () |
virtual void | setWidth (qreal width) |
SceneElementaryNodeItem cannot be resized (only ComposedNodeItem can) More... | |
virtual void | setHeight (qreal height) |
SceneElementaryNodeItem cannot be resized (only ComposedNodeItem can) More... | |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual void | autoPosNewPort (AbstractSceneItem *item, int nbPorts) |
virtual void | reorganize () |
virtual void | reorganizeShrinkExpand (ShrinkMode theShrinkMode) |
virtual void | shrinkExpandRecursive (bool isExpanding, bool fromHere, ShrinkMode theShrinkMode) |
virtual void | setShownState (shownState ss) |
Public Member Functions inherited from YACS::HMI::SceneNodeItem | |
SceneNodeItem (QGraphicsScene *scene, SceneItem *parent, QString label, Subject *subject) | |
virtual | ~SceneNodeItem () |
virtual void | addHeader () |
virtual SceneHeaderItem * | getHeader () |
virtual void | addProgressItem () |
virtual SceneProgressItem * | getProgressItem () |
virtual qreal | getHeaderBottom () |
virtual SceneComposedNodeItem * | getParent () |
virtual void | removeInPortFromList (AbstractSceneItem *inPort) |
virtual void | removeOutPortFromList (AbstractSceneItem *outPort) |
virtual void | setMoving (bool moving) |
virtual void | setTopLeft (QPointF topLeft) |
virtual void | adjustHeader () |
virtual ScenePortItem * | getCtrlInPortItem () |
virtual ScenePortItem * | getCtrlOutPortItem () |
virtual void | updateName () |
virtual void | arrangeNodes (bool isRecursive) |
generic method to compute a graph for child nodes. implemented in some derived classes More... | |
virtual void | arrangeChildNodes () |
virtual void | updateChildItems () |
virtual void | shrinkExpandLink (bool se) |
virtual void | showOutScopeLinks () |
virtual void | updateLinks () |
bool | isExpanded () |
void | setExpanded (bool e) |
void | setExpandedPos (QPointF epos) |
qreal | getExpandedX () |
qreal | getExpandedY () |
void | setExpandedWH () |
void | setExpandedWH (qreal w, qreal h) |
qreal | getExpandedWidth () |
qreal | getExpandedHeight () |
shownState | getShownState () |
bool | hasProgressBar () const |
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 | checkGeometryChange () |
void | setParent (SceneItem *parent) |
void | setEventPos (QPointF point) |
bool | isAncestorShrinked () |
Public Member Functions inherited from YACS::HMI::AbstractSceneItem | |
AbstractSceneItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~AbstractSceneItem () |
int | getLevel () |
void | setLevel () |
virtual QString | getLabel () |
qreal | getWidth () |
qreal | getHeight () |
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 () |
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::SceneNodeItem | |
virtual QString | getMimeFormat () |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
virtual void | updateState () |
virtual void | setExecState (int execState) |
QString | getHeaderLabel () |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 29 of file SceneElementaryNodeItem.hxx.
SceneElementaryNodeItem::SceneElementaryNodeItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label, | ||
Subject * | subject | ||
) |
Definition at line 45 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_height, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::AbstractSceneItem::_hiPenColor, _maxPorts, YACS::HMI::AbstractSceneItem::_penColor, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::Border_Margin, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Width, YACS::HMI::Resource::ElementaryNode_brush, YACS::HMI::Resource::ElementaryNode_hiBrush, YACS::HMI::Resource::ElementaryNode_hiPen, YACS::HMI::Resource::ElementaryNode_pen, YACS::HMI::Resource::Header_Height, and YACS::HMI::Resource::Space_Margin.
|
virtual |
Definition at line 59 of file SceneElementaryNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 144 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_height, YACS::HMI::AbstractSceneItem::_incHeight, YACS::HMI::AbstractSceneItem::_label, _maxPorts, YACS::HMI::SceneNodeItem::_shownState, YACS::HMI::Resource::Border_Margin, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Height, YACS::HMI::Resource::DataPort_Width, DEBTRACE, YACS::HMI::expandShown, YACS::HMI::Resource::Header_Height, YACS::HMI::AbstractSceneItem::setTopLeft(), and YACS::HMI::Resource::Space_Margin.
Referenced by reorganize(), and update().
|
virtual |
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 73 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_height, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::Border_Margin, YACS::HMI::SceneObserverItem::getBrushColor(), YACS::HMI::SceneItem::getPenColor(), gui.graph::h(), YACS::HMI::Resource::Thickness, and gui.logview::w.
|
virtual |
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 184 of file SceneElementaryNodeItem.cxx.
References gui.GraphViewer::m, and YACS::HMI::ElementaryNodeMenu::popupMenu().
|
virtual |
Reimplemented from YACS::HMI::AbstractSceneItem.
Definition at line 253 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_label, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::GuiContext::_mapOfSubjectDataPort, _maxPorts, YACS::HMI::SceneObserverItem::_subject, autoPosNewPort(), DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::ENGINE::Node::getSetOfInPort(), YACS::ENGINE::Node::getSetOfOutPort(), YACS::HMI::SceneNodeItem::updateLinks(), and YASSERT.
Referenced by setShownState(), shrinkExpandRecursive(), and update().
|
virtual |
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 190 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::Scene::_autoComputeLinks, YACS::HMI::AbstractSceneItem::_label, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::CurrentNode, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::SceneNodeItem::isExpanded(), YACS::HMI::SceneComposedNodeItem::rebuildLinks(), and shrinkExpandRecursive().
|
virtual |
SceneElementaryNodeItem cannot be resized (only ComposedNodeItem can)
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 69 of file SceneElementaryNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 287 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::SceneItem::_ancestorShrinked, YACS::HMI::SceneNodeItem::_shownState, reorganize(), and YACS::HMI::shrinkHidden.
|
virtual |
SceneElementaryNodeItem cannot be resized (only ComposedNodeItem can)
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 64 of file SceneElementaryNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 205 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::SceneItem::_ancestorShrinked, YACS::HMI::SceneNodeItem::_expandedPos, YACS::HMI::AbstractSceneItem::_label, YACS::HMI::SceneNodeItem::_shownState, YACS::HMI::ChildrenNodes, YACS::HMI::CurrentNode, DEBTRACE, YACS::HMI::ElementaryNodes, YACS::HMI::expandShown, YACS::HMI::SceneNodeItem::isExpanded(), reorganize(), YACS::HMI::SceneNodeItem::setExpanded(), YACS::HMI::shrinkHidden, and YACS::HMI::shrinkShown.
Referenced by reorganizeShrinkExpand().
Reimplemented from YACS::HMI::SceneNodeItem.
Definition at line 89 of file SceneElementaryNodeItem.cxx.
References YACS::HMI::Scene::_autoComputeLinks, YACS::HMI::SceneNodeItem::_inPorts, YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::SceneNodeItem::_outPorts, YACS::HMI::AbstractSceneItem::_scene, YACS::HMI::ADD, autoPosNewPort(), DEBTRACE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::INPUTDATASTREAMPORT, YACS::HMI::INPUTPORT, YACS::HMI::OUTPUTDATASTREAMPORT, YACS::HMI::OUTPUTPORT, YACS::HMI::SceneComposedNodeItem::rebuildLinks(), YACS::HMI::REMOVE, reorganize(), YACS::HMI::SYNCHRO, and YACS::HMI::SceneNodeItem::update().
Referenced by gui.graph.MyCanvas::customEvent().
|
protected |
Definition at line 49 of file SceneElementaryNodeItem.hxx.
Referenced by autoPosNewPort(), reorganize(), and SceneElementaryNodeItem().