#include <SceneHeaderNodeItem.hxx>
Public Member Functions | |
SceneHeaderNodeItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneHeaderNodeItem () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | setText (QString label) |
virtual qreal | getHeaderBottom () const |
virtual void | autoPosControl (AbstractSceneItem *item) |
virtual void | autoPosNewPort (AbstractSceneItem *item) |
virtual void | reorganizePorts (shownState ss) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual void | adjustGeometry () |
virtual void | adjustPosPorts () |
virtual QRectF | getMinimalBoundingRect () const |
virtual void | adaptComposedNode (SceneItem *port, qreal deltaY) |
virtual void | setEdited (bool isEdited) |
virtual void | setValid (bool isValid) |
virtual void | setExecState (int execState) |
virtual SceneCtrlPortItem * | getCtrlInPortItem () |
virtual SceneCtrlPortItem * | getCtrlOutPortItem () |
QColor | getValidColor () |
Public Member Functions inherited from YACS::HMI::SceneHeaderItem | |
SceneHeaderItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneHeaderItem () |
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) |
virtual QString | getToolTip () |
void | setEventPos (QPointF point) |
virtual void | updateChildItems () |
virtual void | updateLinks () |
virtual void | shrinkExpandLink (bool se) |
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 | activateSelection (bool selected) |
virtual void | setGeometryOptimization (bool optimize) |
SceneItem * | getParent () |
Protected Member Functions | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
Protected Member Functions inherited from YACS::HMI::SceneHeaderItem | |
QColor | getPenColor () |
QColor | getBrushColor () |
Protected Member Functions inherited from YACS::HMI::SceneItem | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
QColor | hoverColor (QColor origColor) |
Protected Member Functions inherited from YACS::HMI::AbstractSceneItem | |
virtual QRectF | childBoundingRect (AbstractSceneItem *child) const |
Protected Attributes | |
SceneNodeItem * | _fatherNode |
SceneHeaderItem * | _header |
SceneCtrlPortItem * | _controlIn |
SceneCtrlPortItem * | _controlOut |
std::list< SceneInPortItem * > | _inPorts |
std::list< SceneOutPortItem * > | _outPorts |
int | _maxPorts |
QColor | _sc |
QString | _stateDef |
int | _execState |
bool | _isProc |
bool | _isValid |
bool | _isEdited |
Protected Attributes inherited from YACS::HMI::SceneHeaderItem | |
SceneTextItem * | _text |
Protected Attributes inherited from YACS::HMI::SceneItem | |
bool | _hover |
bool | _ancestorShrinked |
QPointF | _eventPos |
Protected Attributes inherited from YACS::HMI::AbstractSceneItem | |
SceneItem * | _parent |
YACS::HMI::Scene * | _scene |
QString | _label |
int | _level |
qreal | _width |
qreal | _height |
qreal | _incHeight |
QColor | _penColor |
QColor | _brushColor |
QColor | _hiPenColor |
QColor | _hiBrushColor |
bool | _hasHeader |
bool | _optimize |
bool | _dragable |
enum Qt::MouseButton | _dragButton |
Additional Inherited Members | |
Public Attributes inherited from YACS::HMI::SceneItem | |
bool | _blocX |
bool | _blocY |
Definition at line 34 of file SceneHeaderNodeItem.hxx.
SceneHeaderNodeItem::SceneHeaderNodeItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label | ||
) |
Definition at line 46 of file SceneHeaderNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, _controlIn, _controlOut, _execState, _fatherNode, YACS::HMI::AbstractSceneItem::_hasHeader, _header, YACS::HMI::AbstractSceneItem::_height, _isEdited, _isProc, _isValid, YACS::HMI::AbstractSceneItem::_label, _maxPorts, YACS::HMI::AbstractSceneItem::_parent, _sc, YACS::HMI::AbstractSceneItem::_scene, _stateDef, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::CtrlPort_Width, YACS::HMI::Resource::DataPort_Width, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::Resource::Header_Height, YACS::HMI::Resource::normalNodeBrushColor, YACS::HMI::Resource::runNodeBrushColor, YACS::HMI::SceneHeaderItem::SceneHeaderItem(), YACS::HMI::SceneHeaderItem::setText(), YACS::HMI::SceneItem::setTopLeft(), YACS::HMI::Resource::Space_Margin, YACS::UNDEFINED, and YACS::HMI::Resource::validNodeColor.
|
virtual |
Definition at line 83 of file SceneHeaderNodeItem.cxx.
|
virtual |
Definition at line 274 of file SceneHeaderNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, and DEBTRACE.
Referenced by autoPosNewPort().
|
virtual |
Reimplemented from YACS::HMI::SceneHeaderItem.
Definition at line 237 of file SceneHeaderNodeItem.cxx.
References _header, YACS::HMI::AbstractSceneItem::_label, YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::SceneHeaderItem::adjustGeometry(), adjustPosPorts(), DEBTRACE, and YACS::HMI::AbstractSceneItem::getWidth().
Referenced by YACS::HMI::SceneNodeItem::adjustHeader().
|
virtual |
Definition at line 247 of file SceneHeaderNodeItem.cxx.
References _controlOut, _fatherNode, YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::CtrlPort_Width, YACS::HMI::Resource::DataPort_Width, YACS::HMI::expandShown, YACS::HMI::SceneNodeItem::getShownState(), YACS::HMI::AbstractSceneItem::getWidth(), reorganizePorts(), YACS::HMI::SceneItem::setTopLeft(), YACS::HMI::Resource::Space_Margin, and YASSERT.
Referenced by adjustGeometry().
|
virtual |
Definition at line 153 of file SceneHeaderNodeItem.cxx.
|
virtual |
Definition at line 157 of file SceneHeaderNodeItem.cxx.
References _fatherNode, _inPorts, _maxPorts, _outPorts, YACS::HMI::AbstractSceneItem::_parent, adaptComposedNode(), YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Height, YACS::HMI::Resource::DataPort_Width, DEBTRACE, YACS::HMI::AbstractSceneItem::getWidth(), YACS::HMI::SceneNodeItem::hasProgressBar(), YACS::HMI::Resource::Header_Height, YACS::HMI::Resource::progressBar_Height, YACS::HMI::AbstractSceneItem::setTopLeft(), and YACS::HMI::Resource::Space_Margin.
Referenced by YACS::HMI::SceneComposedNodeItem::update().
|
virtual |
Definition at line 358 of file SceneHeaderNodeItem.cxx.
References _controlIn.
Referenced by YACS::HMI::LinkMatrix::cellTo(), and YACS::HMI::SceneNodeItem::getCtrlInPortItem().
|
virtual |
Definition at line 363 of file SceneHeaderNodeItem.cxx.
References _controlOut.
Referenced by YACS::HMI::LinkMatrix::cellFrom(), and YACS::HMI::SceneNodeItem::getCtrlOutPortItem().
|
virtual |
Definition at line 142 of file SceneHeaderNodeItem.cxx.
References _fatherNode, YACS::HMI::AbstractSceneItem::_hasHeader, _maxPorts, YACS::HMI::Resource::DataPort_Height, YACS::HMI::SceneNodeItem::hasProgressBar(), YACS::HMI::Resource::Header_Height, YACS::HMI::Resource::progressBar_Height, and YACS::HMI::Resource::Space_Margin.
Referenced by YACS::HMI::SceneNodeItem::getHeaderBottom().
|
virtual |
Reimplemented from YACS::HMI::SceneHeaderItem.
Definition at line 261 of file SceneHeaderNodeItem.cxx.
References _fatherNode, _inPorts, _outPorts, YACS::HMI::Resource::Border_Margin, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Height, YACS::HMI::Resource::DataPort_Width, YACS::HMI::SceneNodeItem::hasProgressBar(), YACS::HMI::Resource::Header_Height, YACS::HMI::Resource::progressBar_Height, and YACS::HMI::Resource::Space_Margin.
Referenced by YACS::HMI::SceneComposedNodeItem::childrenBoundingRect().
QColor SceneHeaderNodeItem::getValidColor | ( | ) |
Definition at line 380 of file SceneHeaderNodeItem.cxx.
References _isValid, _sc, and YACS::HMI::Resource::invalidNodeColor.
Referenced by YACS::HMI::SceneCtrlPortItem::paint().
|
protectedvirtual |
Definition at line 375 of file SceneHeaderNodeItem.cxx.
|
protectedvirtual |
When Zooming, filter all mouse events to items: do not work, scene do not receive...
Reimplemented from YACS::HMI::SceneHeaderItem.
Definition at line 370 of file SceneHeaderNodeItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneHeaderItem.
Definition at line 87 of file SceneHeaderNodeItem.cxx.
References _fatherNode, YACS::HMI::AbstractSceneItem::_parent, gui.CONNECTOR::a, YACS::HMI::Resource::Border_Margin, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::CtrlPort_Height, YACS::HMI::Resource::CtrlPort_Width, YACS::HMI::Resource::DataPort_Width, DEBTRACE, YACS::HMI::SceneHeaderItem::getBrushColor(), YACS::HMI::SceneHeaderItem::getPenColor(), YACS::HMI::AbstractSceneItem::getWidth(), gui.graph::h(), YACS::HMI::SceneNodeItem::hasProgressBar(), YACS::HMI::Resource::Header_Height, YACS::HMI::SceneNodeItem::isExpanded(), YACS::HMI::Resource::Line_Space, YACS::HMI::Resource::Line_Width, YACS::HMI::Resource::progressBar_Height, YACS::HMI::Resource::Radius, YACS::HMI::Resource::Space_Margin, YACS::HMI::Resource::Thickness, and gui.logview::w.
|
virtual |
Reimplemented from YACS::HMI::SceneHeaderItem.
Definition at line 230 of file SceneHeaderNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, and YACS::HMI::SceneItem::popupMenu().
|
virtual |
Definition at line 191 of file SceneHeaderNodeItem.cxx.
References _fatherNode, _inPorts, YACS::HMI::AbstractSceneItem::_label, _outPorts, YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Height, YACS::HMI::Resource::DataPort_Width, DEBTRACE, YACS::HMI::expandShown, YACS::HMI::AbstractSceneItem::getWidth(), YACS::HMI::SceneNodeItem::hasProgressBar(), YACS::HMI::Resource::Header_Height, YACS::HMI::Resource::progressBar_Height, YACS::HMI::shrinkHidden, and YACS::HMI::Resource::Space_Margin.
Referenced by adjustPosPorts().
|
virtual |
Definition at line 286 of file SceneHeaderNodeItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, _isEdited, YACS::HMI::AbstractSceneItem::_parent, DEBTRACE, YACS::HMI::Resource::editedNodeBrushColor, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::Resource::normalNodeBrushColor, and YACS::HMI::Resource::runNodeBrushColor.
Referenced by YACS::HMI::SceneNodeItem::update().
|
virtual |
Definition at line 313 of file SceneHeaderNodeItem.cxx.
References _execState, _isProc, _isValid, YACS::HMI::AbstractSceneItem::_parent, _sc, _stateDef, YACS::ACTIVATED, YACS::HMI::Resource::ACTIVATED, DEBTRACE, YACS::HMI::Resource::DEFAULT, YACS::DESACTIVATED, YACS::HMI::Resource::DESACTIVATED, YACS::DISABLED, YACS::HMI::Resource::DISABLED, YACS::DONE, YACS::HMI::Resource::DONE, YACS::ERROR, YACS::HMI::Resource::ERROR, YACS::EXECFAILED, YACS::HMI::Resource::EXECFAILED, YACS::FAILED, YACS::HMI::Resource::FAILED, YACS::FINISHED, YACS::HMI::Resource::FINISHED, YACS::INITIALISED, YACS::HMI::Resource::INITIALISED, YACS::INTERNALERR, YACS::HMI::Resource::INTERNALERR, YACS::INVALID, YACS::HMI::Resource::INVALID, YACS::LOADED, YACS::HMI::Resource::LOADED, YACS::LOADFAILED, YACS::HMI::Resource::LOADFAILED, YACS::NOTYETINITIALIZED, YACS::HMI::Resource::NOTYETINITIALIZED, YACS::PAUSE, YACS::HMI::Resource::PAUSE, YACS::PAUSED, YACS::HMI::Resource::PAUSED, YACS::READY, YACS::HMI::Resource::READY, YACS::RUNNING, YACS::HMI::Resource::RUNNING, YACS::STOPPED, YACS::HMI::Resource::STOPPED, YACS::SUSPENDED, YACS::HMI::Resource::SUSPENDED, YACS::TOACTIVATE, YACS::HMI::Resource::TOACTIVATE, YACS::TOLOAD, YACS::HMI::Resource::TOLOAD, YACS::UNDEFINED, YACS::HMI::Resource::UNDEFINED, YACS::HMI::Resource::UNKNOWN, YACS::WAITINGTASKS, and YACS::HMI::Resource::WAITINGTASKS.
Referenced by YACS::HMI::SceneNodeItem::setExecState().
|
virtual |
Reimplemented from YACS::HMI::SceneHeaderItem.
Definition at line 137 of file SceneHeaderNodeItem.cxx.
References _header, and YACS::HMI::SceneHeaderItem::setText().
Referenced by YACS::HMI::SceneNodeItem::updateName().
|
virtual |
Definition at line 303 of file SceneHeaderNodeItem.cxx.
References _isValid, YACS::HMI::AbstractSceneItem::_parent, and DEBTRACE.
Referenced by YACS::HMI::SceneNodeItem::updateState().
|
protected |
Definition at line 67 of file SceneHeaderNodeItem.hxx.
Referenced by getCtrlInPortItem(), and SceneHeaderNodeItem().
|
protected |
Definition at line 68 of file SceneHeaderNodeItem.hxx.
Referenced by adjustPosPorts(), getCtrlOutPortItem(), and SceneHeaderNodeItem().
|
protected |
Definition at line 75 of file SceneHeaderNodeItem.hxx.
Referenced by SceneHeaderNodeItem(), and setExecState().
|
protected |
Definition at line 65 of file SceneHeaderNodeItem.hxx.
Referenced by adjustPosPorts(), autoPosNewPort(), getHeaderBottom(), getMinimalBoundingRect(), paint(), reorganizePorts(), and SceneHeaderNodeItem().
|
protected |
Definition at line 66 of file SceneHeaderNodeItem.hxx.
Referenced by adjustGeometry(), SceneHeaderNodeItem(), and setText().
|
protected |
Definition at line 69 of file SceneHeaderNodeItem.hxx.
Referenced by autoPosNewPort(), getMinimalBoundingRect(), and reorganizePorts().
|
protected |
Definition at line 79 of file SceneHeaderNodeItem.hxx.
Referenced by SceneHeaderNodeItem(), and setEdited().
|
protected |
Definition at line 76 of file SceneHeaderNodeItem.hxx.
Referenced by SceneHeaderNodeItem(), and setExecState().
|
protected |
Definition at line 78 of file SceneHeaderNodeItem.hxx.
Referenced by getValidColor(), SceneHeaderNodeItem(), setExecState(), and setValid().
|
protected |
Definition at line 71 of file SceneHeaderNodeItem.hxx.
Referenced by autoPosNewPort(), getHeaderBottom(), and SceneHeaderNodeItem().
|
protected |
Definition at line 70 of file SceneHeaderNodeItem.hxx.
Referenced by autoPosNewPort(), getMinimalBoundingRect(), and reorganizePorts().
|
protected |
Definition at line 73 of file SceneHeaderNodeItem.hxx.
Referenced by getValidColor(), SceneHeaderNodeItem(), and setExecState().
|
protected |
Definition at line 74 of file SceneHeaderNodeItem.hxx.
Referenced by SceneHeaderNodeItem(), and setExecState().