Frapper  1.0a
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Frapper::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 Frapper::NetworkPanel:
Inheritance graph
[legend]
Collaboration diagram for Frapper::NetworkPanel:
Collaboration graph
[legend]

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.
 
- Public Member Functions inherited from Frapper::ViewPanel
 ViewPanel (Type viewPanelType, QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the ViewPanel class.
 
Type getViewPanelType ()
 Returns the type of the view panel.
 
- Public Member Functions inherited from Frapper::Panel
 Panel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the Panel class.
 
virtual ~Panel ()
 Destructor of the Panel class.
 
QMap< QString, QString > getPanelParameters ()
 Gets the panel parameters. For load and save functionality.
 
virtual void setPanelParameters (const QMap< QString, QString > &parameterMap)
 Sets the panel parameters. For load and save functionality.
 
virtual void registerControl (NodeModel *nodeModel, SceneModel *sceneModel)
 Connects the panel with the 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.
 

Additional Inherited Members

- Public Types inherited from Frapper::ViewPanel
enum  Type {
  T_Documentation, T_Viewport, T_NetworkEditor, T_HierarchyEditor,
  T_ParameterEditor, T_CurveEditor, T_Timeline, T_PluginPanel,
  T_PainterPanel, T_NumTypes
}
 Nested enumeration for the different types of view panels. More...
 
- Static Public Member Functions inherited from Frapper::Panel
static QString getTypeName (Type panelType)
 Returns the name of the given panel type.
 
static QString getTypeIconName (Type panelType)
 Returns the icon name for the given panel type.
 
- Protected Attributes inherited from Frapper::Panel
QMap< QString, QString > m_parameterMap
 Map with default values. For load and save functionality.
 

Detailed Description

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

Constructor & Destructor Documentation

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

Constructor of the NetworkPanel class.

Constructors and Destructors.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.

Constructor of the NetworkPanel class.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.
Frapper::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 Frapper::NetworkPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
)
virtual

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

Public Functions.

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

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

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

Reimplemented from Frapper::Panel.

NetworkGraphicsView * Frapper::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 Frapper::NetworkPanel::keyPressEvent ( QKeyEvent *  event)
protected

Handles key press events for the widget.

Protected Events.

Parameters
eventThe description of the key event.

Handles key press events for the widget.

Parameters
eventThe description of the key event.

Member Data Documentation

NetworkGraphicsView* Frapper::NetworkPanel::m_networkGraphicsView
private

The graphics view widget to use for displaying the nodes.


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