#include <SceneProgressItem.hxx>
Public Member Functions | |
SceneProgressItem (QGraphicsScene *scene, SceneItem *parent, QString label) | |
virtual | ~SceneProgressItem () |
virtual QRectF | getMinimalBoundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | setProgress (QString newProgress) |
virtual int | getProgress () |
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) |
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 QString | getToolTip () |
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 |
QString | _tooltip |
int | _progress |
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 SceneProgressItem.hxx.
SceneProgressItem::SceneProgressItem | ( | QGraphicsScene * | scene, |
SceneItem * | parent, | ||
QString | label | ||
) |
Definition at line 38 of file SceneProgressItem.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, _progress, _text, _tooltip, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::Border_Margin, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Height, 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::progressBar_Height, YACS::HMI::SceneItem::setTopLeft(), YACS::HMI::Resource::Space_Margin, and YASSERT.
|
virtual |
Definition at line 57 of file SceneProgressItem.cxx.
|
virtual |
Definition at line 136 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, YACS::HMI::AbstractSceneItem::_width, YACS::HMI::Resource::Corner_Margin, YACS::HMI::AbstractSceneItem::getWidth(), and YACS::HMI::Resource::Space_Margin.
Referenced by YACS::HMI::SceneComposedNodeItem::setShownState(), and YACS::HMI::SceneComposedNodeItem::shrinkExpandRecursive().
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 148 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_brushColor, YACS::HMI::AbstractSceneItem::_hiBrushColor, YACS::HMI::SceneItem::_hover, YACS::HMI::AbstractSceneItem::getParent(), and YACS::HMI::SceneItem::hoverColor().
|
virtual |
Definition at line 61 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_height, and YACS::HMI::AbstractSceneItem::_width.
|
protectedvirtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 143 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_hiPenColor.
Referenced by paint().
|
inlinevirtual |
|
protectedvirtual |
generic behaviour for headers: obtain the tooltip from parent. Method to be redefined in derived classes.
Reimplemented from YACS::HMI::SceneItem.
Definition at line 164 of file SceneProgressItem.cxx.
References _tooltip.
|
protectedvirtual |
When Zooming, filter all mouse events to items: do not work, scene do not receive...
Reimplemented from YACS::HMI::SceneItem.
Definition at line 159 of file SceneProgressItem.cxx.
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 66 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, _progress, YACS::HMI::Resource::Corner_Margin, YACS::HMI::Resource::DataPort_Width, getPenColor(), YACS::HMI::AbstractSceneItem::getWidth(), gui.graph::h(), YACS::HMI::Resource::progressBar_Height, YACS::HMI::Resource::progressBarColor, YACS::HMI::Resource::Space_Margin, YACS::HMI::Resource::Thickness, and gui.logview::w.
|
virtual |
Reimplemented from YACS::HMI::SceneItem.
Definition at line 131 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_parent, and YACS::HMI::SceneItem::popupMenu().
|
virtual |
Definition at line 89 of file SceneProgressItem.cxx.
References _progress, _tooltip, YACS::HMI::Resource::progressBarLabel, and setText().
|
virtual |
Definition at line 122 of file SceneProgressItem.cxx.
References YACS::HMI::AbstractSceneItem::_scene, _text, and YACS::HMI::SceneTextItem::setPlainTextTrunc().
Referenced by YACS::HMI::SceneNodeItem::addProgressItem(), and setProgress().
|
protected |
Definition at line 54 of file SceneProgressItem.hxx.
Referenced by getProgress(), paint(), SceneProgressItem(), and setProgress().
|
protected |
Definition at line 52 of file SceneProgressItem.hxx.
Referenced by SceneProgressItem(), and setText().
|
protected |
Definition at line 53 of file SceneProgressItem.hxx.
Referenced by getToolTip(), SceneProgressItem(), and setProgress().