#include <SceneHeaderItem.hxx>
Public Member Functions | |
SceneHeaderItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneHeaderItem () |
virtual QRectF | getMinimalBoundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | setText (QString label) |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual void | adjustGeometry () |
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) |
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 | |
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 31 of file SceneHeaderItem.hxx.
SceneHeaderItem::SceneHeaderItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label | ||
) |
Definition at line 43 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_height, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::AbstractSceneItem::_hiPenColor, YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::AbstractSceneItem::_penColor, _text, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::CtrlPort_Height, YACS::HMI::Resource::CtrlPort_Width, YACS::HMI::Resource::DataPort_Width, YACS::HMI::Resource::Header_brush, YACS::HMI::Resource::Header_hiBrush, YACS::HMI::Resource::Header_hiPen, YACS::HMI::Resource::Header_pen, YACS::HMI::Resource::Space_Margin, and YASSERT.
Referenced by YACS::HMI::SceneHeaderNodeItem::SceneHeaderNodeItem().
|
virtual |
Definition at line 57 of file SceneHeaderItem.cxx.
|
virtual |
Reimplemented in YACS::HMI::SceneHeaderNodeItem.
Definition at line 87 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::CtrlPort_Width, YACS::HMI::AbstractSceneItem::getWidth(), and YACS::HMI::Resource::Space_Margin.
Referenced by YACS::HMI::SceneHeaderNodeItem::adjustGeometry().
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 104 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::SceneItem::_hover, YACS::HMI::AbstractSceneItem::getParent(), and YACS::HMI::SceneItem::hoverColor().
Referenced by YACS::HMI::SceneHeaderNodeItem::paint().
|
virtual |
Reimplemented in YACS::HMI::SceneHeaderNodeItem.
Definition at line 61 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_height.
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 94 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_hiPenColor, YACS::HMI::AbstractSceneItem::_penColor, and YACS::HMI::AbstractSceneItem::getParent().
Referenced by YACS::HMI::SceneHeaderNodeItem::paint().
|
protectedvirtual |
When Zooming, filter all mouse events to items: do not work, scene do not receive...
Reimplemented from YACS::HMI::SceneItem.
Reimplemented in YACS::HMI::SceneHeaderNodeItem.
Definition at line 115 of file SceneHeaderItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Reimplemented in YACS::HMI::SceneHeaderNodeItem.
Definition at line 66 of file SceneHeaderItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Reimplemented in YACS::HMI::SceneHeaderNodeItem.
Definition at line 82 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, and YACS::HMI::SceneItem::popupMenu().
|
virtual |
Reimplemented in YACS::HMI::SceneHeaderNodeItem.
Definition at line 73 of file SceneHeaderItem.cxx.
References YACS::HMI::AbstractSceneItem::_scene, _text, and YACS::HMI::SceneTextItem::setPlainTextTrunc().
Referenced by YACS::HMI::SceneHeaderNodeItem::SceneHeaderNodeItem(), and YACS::HMI::SceneHeaderNodeItem::setText().
|
protected |
Definition at line 49 of file SceneHeaderItem.hxx.
Referenced by SceneHeaderItem(), and setText().