ViewFlagGraphicsItem Class Reference

Class for graphical representation of node view flags. More...

#include <ViewFlagGraphicsItem.h>

Inheritance diagram for ViewFlagGraphicsItem:

Inheritance graph
[legend]
Collaboration diagram for ViewFlagGraphicsItem:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Class for graphical representation of node view flags.

Inheritance Diagram

inline_dotgraph_17.dot
[legend]

Constructor & Destructor Documentation

ViewFlagGraphicsItem::ViewFlagGraphicsItem ( QGraphicsItem *  parent,
bool  state,
const QPointF &  position,
unsigned int  stageIndex 
)

Constructor of the ViewFlagGraphicsItem class.

Constructors and Destructors.

Parameters:
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.
Constructor of the ViewFlagGraphicsItem class.

Parameters:
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.


Member Function Documentation

void ViewFlagGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [virtual]

Paints the graphics item into a graphics view.

Public Functions.

Parameters:
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.
Paints the graphics item into a graphics view.

Parameters:
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.

Parameters:
event The object containing details about the event.
Event handler that reacts to context menu events.

Parameters:
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.

Parameters:
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.

Parameters:
triggeredAction The action that was triggered.
Selects the stage to assign to the node corresponding to the triggered stage action.

Parameters:
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.

Parameters:
index The stage index.


Member Data Documentation

unsigned int ViewFlagGraphicsItem::m_stageIndex [private]

The index of the stage that the node that this flag belongs to is contained in.

The group that all the stage actions will be added to.


The documentation for this class was generated from the following files:

Generated on Wed Feb 24 15:01:03 2010 for Frapper by  doxygen 1.5.9