NetworkPanel Class Reference

Class for a panel that contains a network editor widget using Qt's graphics-view architecture. More...

#include <NetworkPanel.h>

Inheritance diagram for NetworkPanel:

Inheritance graph
[legend]
Collaboration diagram for NetworkPanel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 NetworkPanel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the NetworkPanel class.
virtual ~NetworkPanel ()
 Destructor of the NetworkPanel class.
virtual void fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar)
 Fills the given tool bars in a panel frame with actions for the panel.
NetworkGraphicsViewgetNetworkGraphicsView ()
 Returns the graphics view that is used to display the model's graphics scene.

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 Handles key press events for the widget.

Private Attributes

NetworkGraphicsViewm_networkGraphicsView
 The graphics view widget to use for displaying the nodes.


Detailed Description

Class for a panel that contains a network editor widget using Qt's graphics-view architecture.

Constructor & Destructor Documentation

NetworkPanel::NetworkPanel ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Constructor of the NetworkPanel class.

Constructors and Destructors.

Parameters:
parent The parent widget the created instance will be a child of.
flags Extra widget options.
Constructor of the NetworkPanel class.

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

NetworkPanel::~NetworkPanel (  )  [virtual]

Destructor of the NetworkPanel class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.


Member Function Documentation

void NetworkPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
) [virtual]

Fills the given tool bars in a panel frame with actions for the panel.

Public Functions.

Parameters:
mainToolBar The main tool bar to fill with actions.
panelToolBar The panel tool bar to fill with actions.
Fills the given tool bars in a panel frame with actions for the panel.

Parameters:
mainToolBar The main tool bar to fill with actions.
panelToolBar The panel tool bar to fill with actions.

Reimplemented from Panel.

NetworkGraphicsView * NetworkPanel::getNetworkGraphicsView (  ) 

Returns the graphics view that is used to display the model's graphics scene.

Returns:
The graphics view that is used to display the model's graphics scene.

void NetworkPanel::keyPressEvent ( QKeyEvent *  event  )  [protected]

Handles key press events for the widget.

Protected Events.

Parameters:
event The description of the key event.
Handles key press events for the widget.

Parameters:
event The description of the key event.


Member Data Documentation

The graphics view widget to use for displaying the 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