#include <SceneCtrlPortItem.hxx>
Public Member Functions | |
SceneCtrlPortItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneCtrlPortItem () |
virtual void | setText (QString label) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual SceneNodeItem * | getParentNode () |
SubjectNode * | getSubjectNode () |
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) |
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 () |
Public Member Functions inherited from YACS::HMI::ScenePortItem | |
ScenePortItem (QString label) | |
virtual | ~ScenePortItem () |
Protected Member Functions | |
virtual QString | getMimeFormat () |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
Protected Member Functions inherited from YACS::HMI::SceneItem | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
virtual QColor | getPenColor () |
virtual QColor | getBrushColor () |
QColor | hoverColor (QColor origColor) |
Protected Member Functions inherited from YACS::HMI::AbstractSceneItem | |
virtual QRectF | childBoundingRect (AbstractSceneItem *child) const |
Protected Attributes | |
bool | _draging |
bool | _dragModifier |
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 |
Protected Attributes inherited from YACS::HMI::ScenePortItem | |
SceneTextItem * | _text |
Additional Inherited Members | |
Public Attributes inherited from YACS::HMI::SceneItem | |
bool | _blocX |
bool | _blocY |
Definition at line 33 of file SceneCtrlPortItem.hxx.
SceneCtrlPortItem::SceneCtrlPortItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label | ||
) |
Definition at line 49 of file SceneCtrlPortItem.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::CtrlPort_brush, YACS::HMI::Resource::CtrlPort_Height, YACS::HMI::Resource::CtrlPort_hiBrush, YACS::HMI::Resource::CtrlPort_hiPen, YACS::HMI::Resource::CtrlPort_pen, YACS::HMI::Resource::CtrlPort_Width, and setText().
|
virtual |
Definition at line 62 of file SceneCtrlPortItem.cxx.
|
protectedvirtual |
Reimplemented in YACS::HMI::SceneCtrlOutPortItem.
Definition at line 106 of file SceneCtrlPortItem.cxx.
Referenced by mouseMoveEvent().
|
virtual |
Definition at line 91 of file SceneCtrlPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, and YACS::HMI::AbstractSceneItem::getParent().
Referenced by YACS::HMI::SceneCtrlInPortItem::dropEvent(), YACS::HMI::SceneLinkItem::getFromNode(), getSubjectNode(), and YACS::HMI::SceneLinkItem::getToNode().
SubjectNode * SceneCtrlPortItem::getSubjectNode | ( | ) |
Definition at line 99 of file SceneCtrlPortItem.cxx.
References getParentNode(), and YACS::HMI::SceneObserverItem::getSubject().
Referenced by mouseMoveEvent(), and mousePressEvent().
|
protectedvirtual |
creation of mime data if drag detected. setData mime type must be coherent with SchemaModel::mimeTypes to allow drop on port item in tree view
Definition at line 132 of file SceneCtrlPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_dragButton, _draging, _dragModifier, DEBTRACE, getMimeFormat(), getSubjectNode(), paint(), and YACS::HMI::ItemMimeData::setSubject().
|
protectedvirtual |
When Zooming, filter all mouse events to items: do not work, scene do not receive...
Reimplemented from YACS::HMI::SceneItem.
Definition at line 111 of file SceneCtrlPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_dragable, YACS::HMI::AbstractSceneItem::_dragButton, _draging, _dragModifier, YACS::HMI::AbstractSceneItem::_label, YACS::HMI::AbstractSceneItem::_scene, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), getSubjectNode(), YACS::HMI::QtGuiContext::isEdition(), YACS::HMI::Scene::isZooming(), and YACS::HMI::Subject::select().
|
protectedvirtual |
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 66 of file SceneCtrlPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::Resource::CtrlPort_Height, YACS::HMI::Resource::CtrlPort_Width, YACS::HMI::SceneItem::getPenColor(), YACS::HMI::SceneHeaderNodeItem::getValidColor(), YACS::HMI::Resource::Radius, and YACS::HMI::Resource::Thickness.
Referenced by mouseMoveEvent().
|
virtual |
Implements YACS::HMI::ScenePortItem.
Definition at line 83 of file SceneCtrlPortItem.cxx.
References YACS::HMI::AbstractSceneItem::_scene, and YACS::HMI::ScenePortItem::_text.
Referenced by SceneCtrlPortItem().
|
protected |
Definition at line 51 of file SceneCtrlPortItem.hxx.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
protected |
Definition at line 52 of file SceneCtrlPortItem.hxx.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().