Frapper  1.0a
Public Member Functions | Private Slots | Private Attributes | List of all members
Frapper::TestPanel Class Reference

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

#include <TestPanel.h>

Inheritance diagram for Frapper::TestPanel:
Inheritance graph
[legend]
Collaboration diagram for Frapper::TestPanel:
Collaboration graph
[legend]

Public Member Functions

 TestPanel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the TestPanel class.
 
virtual ~TestPanel ()
 Destructor of the TestPanel class.
 
virtual void registerControl (NodeModel *nodeModel, SceneModel *sceneModel)
 Connects the panel with the scene.
 
QListWidgetItem * addItem (Parameter *parameter, bool groupElement)
 Adds a item to the list.
 
void fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar)
 Fills the given tool bars with actions for the TestPanel view.
 
- 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.
 

Private Slots

void updateSelectedNode (Node *selectedNode)
 Is called a node is selected.
 
void update ()
 Updates the panel if the node model changes.
 
void nodeSelected (QListWidgetItem *listItem)
 Updates the scene and the panel if a node is selected in the panel.
 
void showDiscription (bool description)
 Sets the description mode.
 

Private Attributes

NodeModelm_nodeModel
 Node model.
 
Nodem_node
 selected node
 
SceneModelm_sceneModel
 Scene model.
 
QListWidget * m_ListNodes
 List Widget to show all nodes in the scene.
 
QListWidget * m_InputParameters
 List Widget to show all input parameters of the selected node.
 
QListWidget * m_OutputParameters
 List Widget to show all output parameters of the selected node.
 
QListWidget * m_NodeParameters
 List Widget to show all non-pin parameters of the selected node.
 
bool m_description
 Bool if detailed description should be used.
 

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 representing a view for displaying and editing parameters of nodes.

Constructor & Destructor Documentation

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

Constructor of the TestPanel class.

Constructors and Destructors.

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

Constructor of the TestPanel class.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.
TestPanel::~TestPanel ( )
virtual

Destructor of the TestPanel class.

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 TestPanel::registerControl ( NodeModel nodeModel,
SceneModel sceneModel 
)
virtual

Connects the panel with the scene.

Public Funcitons.

Parameters
*nodeModelNodeModel of the scene
*sceneModelSceneModel of the scene

Connects the panel with the scene.

Parameters
*nodeModelNodeModel of the scene
*sceneModelSceneModel of the scene

Reimplemented from Frapper::Panel.

QListWidgetItem * TestPanel::addItem ( Parameter parameter,
bool  groupElement 
)

Adds a item to the list.

Parameters
parameterParameter to be added to a list
groupElementtrue if element of a parameter group
Returns
the created QListWidgetItem
void TestPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
)
virtual

Fills the given tool bars with actions for the TestPanel view.

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

Reimplemented from Frapper::Panel.

void TestPanel::updateSelectedNode ( Node selectedNode)
privateslot

Is called a node is selected.

Private Slots.

Parameters
selecedNodethe selected wich was selected

Is called a node is selected

Parameters
selecedNodethe selected wich was selected
void TestPanel::update ( )
privateslot

Updates the panel if the node model changes.

void TestPanel::nodeSelected ( QListWidgetItem *  listItem)
privateslot

Updates the scene and the panel if a node is selected in the panel.

void TestPanel::showDiscription ( bool  description)
privateslot

Sets the description mode.

Parameters
descriptionboolean value of the action´s state

Member Data Documentation

NodeModel* Frapper::TestPanel::m_nodeModel
private

Node model.

Node* Frapper::TestPanel::m_node
private

selected node

SceneModel* Frapper::TestPanel::m_sceneModel
private

Scene model.

QListWidget* Frapper::TestPanel::m_ListNodes
private

List Widget to show all nodes in the scene.

QListWidget* Frapper::TestPanel::m_InputParameters
private

List Widget to show all input parameters of the selected node.

QListWidget* Frapper::TestPanel::m_OutputParameters
private

List Widget to show all output parameters of the selected node.

QListWidget* Frapper::TestPanel::m_NodeParameters
private

List Widget to show all non-pin parameters of the selected node.

bool Frapper::TestPanel::m_description
private

Bool if detailed description should be used.

Parameters
descriptionboolean value of the action´s state

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