#include <SceneTextItem.hxx>
Public Member Functions | |
SceneTextItem (QGraphicsScene *scene, SceneItem *parent, QString label, bool center=false) | |
virtual | ~SceneTextItem () |
virtual QRectF | boundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | setTopLeft (QPointF topLeft) |
virtual void | setPlainTextTrunc (QString label) |
virtual void | checkGeometryChange () |
virtual void | popupMenu (QWidget *caller, const QPoint &globalPos) |
virtual QString | getToolTip () |
void | setEventPos (QPointF point) |
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 Attributes | |
QPointF | _eventPos |
bool | _center |
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 | |
Protected Member Functions inherited from YACS::HMI::AbstractSceneItem | |
virtual QRectF | childBoundingRect (AbstractSceneItem *child) const |
Definition at line 29 of file SceneTextItem.hxx.
SceneTextItem::SceneTextItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label, | ||
bool | center = false |
||
) |
Definition at line 39 of file SceneTextItem.cxx.
References _center, YACS::HMI::AbstractSceneItem::_level, YACS::HMI::AbstractSceneItem::_parent, and DEBTRACE.
|
virtual |
Definition at line 48 of file SceneTextItem.cxx.
|
virtual |
Implements YACS::HMI::AbstractSceneItem.
Definition at line 52 of file SceneTextItem.cxx.
|
virtual |
|
virtual |
generic behaviour for headers: obtain the tooltip from parent.
Definition at line 94 of file SceneTextItem.cxx.
References YACS::HMI::AbstractSceneItem::_label, YACS::HMI::AbstractSceneItem::getParent(), and YACS::HMI::SceneItem::getToolTip().
Referenced by YACS::HMI::Scene::helpEvent().
|
virtual |
Implements YACS::HMI::AbstractSceneItem.
Definition at line 56 of file SceneTextItem.cxx.
References _center, YACS::HMI::AbstractSceneItem::_label, YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::AbstractSceneItem::getHeight(), YACS::HMI::AbstractSceneItem::getWidth(), and YACS::HMI::Resource::Text_DX.
|
virtual |
Implements YACS::HMI::AbstractSceneItem.
Definition at line 85 of file SceneTextItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, DEBTRACE, and YACS::HMI::SceneItem::popupMenu().
Referenced by YACS::HMI::GraphicsView::contextMenuEvent().
void SceneTextItem::setEventPos | ( | QPointF | point | ) |
Definition at line 103 of file SceneTextItem.cxx.
References _eventPos.
Referenced by YACS::HMI::GraphicsView::contextMenuEvent().
|
virtual |
Definition at line 77 of file SceneTextItem.cxx.
References YACS::HMI::AbstractSceneItem::_label.
Referenced by YACS::HMI::SceneHeaderItem::setText(), YACS::HMI::SceneProgressItem::setText(), and YACS::HMI::SceneDataPortItem::update().
|
virtual |
|
protected |
Definition at line 48 of file SceneTextItem.hxx.
Referenced by paint(), and SceneTextItem().
|
protected |
Definition at line 47 of file SceneTextItem.hxx.
Referenced by setEventPos().