NetworkGraphicsView Class Reference

Class representing a graphics view for displaying and editing a network of nodes. More...

#include <NetworkGraphicsView.h>

Inheritance diagram for NetworkGraphicsView:

Inheritance graph
[legend]
Collaboration diagram for NetworkGraphicsView:

Collaboration graph
[legend]

List of all members.

Public Slots

void displayAllPins ()
 Sets the pin display mode for selected or all node items to show all pins.
void displayConnectedPins ()
 Sets the pin display mode for selected or all node items to show only connected pins.
void displayPinsCollapsed ()
 Sets the pin display mode for selected or all node items to show all pins as one collapsed pin.

Signals

void contextMenuRequested (const QPointF &scenePosition)
 Signal to notify connected objects that a context menu has been requested at the given scene position.

Public Member Functions

 NetworkGraphicsView (QWidget *parent=0)
 Constructor of the NetworkGraphicsView class.
 ~NetworkGraphicsView ()
 Destructor of the NetworkGraphicsView class.
void setScene (QGraphicsScene *scene)
 Sets the scene to display in the graphics view.

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 Event handler for key press events.
virtual void mousePressEvent (QMouseEvent *event)
 Event handler for mouse press events.
virtual void mouseMoveEvent (QMouseEvent *event)
 Event handler for mouse move events.
virtual void contextMenuEvent (QContextMenuEvent *event)
 Event handler for context menu events.

Private Member Functions

void setPinDisplayMode (NodeGraphicsItem::PinDisplayMode pinDisplayMode)
 Sets the pin display mode for selected or all node items to the given mode.
void cancelCreatingConnection ()
 Cancels the creation of a new connection between pins of nodes.


Detailed Description

Class representing a graphics view for displaying and editing a network of nodes.

Constructor & Destructor Documentation

NetworkGraphicsView::NetworkGraphicsView ( QWidget *  parent = 0  ) 

Constructor of the NetworkGraphicsView class.

Constructors and Destructors.

Parameters:
parent The parent widget the created instance will be a child of.
Constructor of the NetworkGraphicsView class.

Parameters:
parent The parent widget the created instance will be a child of.

NetworkGraphicsView::~NetworkGraphicsView ( void   ) 

Destructor of the NetworkGraphicsView class.


Member Function Documentation

void NetworkGraphicsView::setScene ( QGraphicsScene *  scene  ) 

Sets the scene to display in the graphics view.

Public Functions.

Parameters:
scene The scene to display in the graphics view.
Sets the scene to display in the graphics view.

Parameters:
scene The scene to display in the graphics view.

void NetworkGraphicsView::displayAllPins (  )  [slot]

Sets the pin display mode for selected or all node items to show all pins.

Public Slots.

void NetworkGraphicsView::displayConnectedPins (  )  [slot]

Sets the pin display mode for selected or all node items to show only connected pins.

void NetworkGraphicsView::displayPinsCollapsed (  )  [slot]

Sets the pin display mode for selected or all node items to show all pins as one collapsed pin.

void NetworkGraphicsView::contextMenuRequested ( const QPointF &  scenePosition  )  [signal]

Signal to notify connected objects that a context menu has been requested at the given scene position.

Parameters:
scenePosition The position in scene coordinates at which the context menu has been requested.

void NetworkGraphicsView::keyPressEvent ( QKeyEvent *  event  )  [protected, virtual]

Event handler for key press events.

Protected Events.

Parameters:
event The description of the key event.
Event handler for key press events.

Parameters:
event The description of the key event.

Reimplemented from BaseGraphicsView.

void NetworkGraphicsView::mousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

Event handler for mouse press events.

Parameters:
event The description of the mouse event.

Reimplemented from BaseGraphicsView.

void NetworkGraphicsView::mouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual]

Event handler for mouse move events.

Parameters:
event The description of the mouse event.

Reimplemented from BaseGraphicsView.

void NetworkGraphicsView::contextMenuEvent ( QContextMenuEvent *  event  )  [protected, virtual]

Event handler for context menu events.

Parameters:
event The object that contains details about the event.

void NetworkGraphicsView::setPinDisplayMode ( NodeGraphicsItem::PinDisplayMode  pinDisplayMode  )  [private]

Sets the pin display mode for selected or all node items to the given mode.

Private Functions.

Parameters:
pinDisplayMode The pin display mode to set for the node items.
Changes the scale of the graphics scene so that it appears bigger in the graphics view. Sets the pin display mode for selected or all node items to the given mode.

Parameters:
pinDisplayMode The pin display mode to set for the node items.

void NetworkGraphicsView::cancelCreatingConnection (  )  [private]

Cancels the creation of a new connection between pins of nodes.


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

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