#include <ViewFlagGraphicsItem.h>


Signals | |
| void | stageIndexSet (unsigned int stageIndex) |
| Signal that is emitted when the stage index has been changed. | |
Public Member Functions | |
| ViewFlagGraphicsItem (QGraphicsItem *parent, bool state, const QPointF &position, unsigned int stageIndex) | |
| Constructor of the ViewFlagGraphicsItem class. | |
| ~ViewFlagGraphicsItem () | |
| Destructor of the ViewFlagGraphicsItem class. | |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| Paints the graphics item into a graphics view. | |
Protected Member Functions | |
| void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
| Event handler that reacts to context menu events. | |
Private Slots | |
| void | selectStage (QAction *triggeredAction) |
| Selects the stage to assign to the node corresponding to the triggered stage action. | |
| void | setStageIndex (unsigned int index, ViewNode *viewNode) |
| Activated when a new stage has been selected from outside. | |
Private Attributes | |
| unsigned int | m_stageIndex |
| The index of the stage that the node that this flag belongs to is contained in. | |
| QActionGroup * | m_stageActionGroup |
| The group that all the stage actions will be added to. | |
| ViewFlagGraphicsItem::ViewFlagGraphicsItem | ( | QGraphicsItem * | parent, | |
| bool | state, | |||
| const QPointF & | position, | |||
| unsigned int | stageIndex | |||
| ) |
Constructor of the ViewFlagGraphicsItem class.
Constructors and Destructors.
| parent | The graphics item this item will be a child of. | |
| state | The initial state of the flag. | |
| position | The flag's relative position in its parent. | |
| stageIndex | The index of the stage that the node that this flag belongs to is contained in. |
| parent | The graphics item this item will be a child of. | |
| state | The initial state of the flag. | |
| position | The flag's relative position in its parent. | |
| stageIndex | The index of the stage that the node that this flag represents is contained in. |
| ViewFlagGraphicsItem::~ViewFlagGraphicsItem | ( | ) |
Destructor of the ViewFlagGraphicsItem class.
| void ViewFlagGraphicsItem::paint | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget = 0 | |||
| ) | [virtual] |
Paints the graphics item into a graphics view.
Public Functions.
| painter | The object to use for painting. | |
| option | Style options for painting the graphics item. | |
| widget | The widget into which to paint the graphics item. |
| painter | The object to use for painting. | |
| option | Style options for painting the graphics item. | |
| widget | The widget into which to paint the graphics item. |
Reimplemented from FlagGraphicsItem.
| void ViewFlagGraphicsItem::contextMenuEvent | ( | QGraphicsSceneContextMenuEvent * | event | ) | [protected] |
Event handler that reacts to context menu events.
Protected Events.
| event | The object containing details about the event. |
| event | The object containing details about the event. |
| void ViewFlagGraphicsItem::stageIndexSet | ( | unsigned int | stageIndex | ) | [signal] |
Signal that is emitted when the stage index has been changed.
| stageIndex | The index of the new stage that the node should be contained in. |
| void ViewFlagGraphicsItem::selectStage | ( | QAction * | triggeredAction | ) | [private, slot] |
Selects the stage to assign to the node corresponding to the triggered stage action.
Private Slots.
| triggeredAction | The action that was triggered. |
| triggeredAction | The action that was triggered. |
| void ViewFlagGraphicsItem::setStageIndex | ( | unsigned int | index, | |
| ViewNode * | viewNode | |||
| ) | [private, slot] |
Activated when a new stage has been selected from outside.
| index | The stage index. |
unsigned int ViewFlagGraphicsItem::m_stageIndex [private] |
The index of the stage that the node that this flag belongs to is contained in.
QActionGroup* ViewFlagGraphicsItem::m_stageActionGroup [private] |
The group that all the stage actions will be added to.
1.5.9