Frapper
1.0a
|
Class representing a view for displaying and editing parameters of nodes. More...
#include <TestPanel.h>
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. | |
![]() | |
ViewPanel (Type viewPanelType, QWidget *parent=0, Qt::WindowFlags flags=0) | |
Constructor of the ViewPanel class. | |
Type | getViewPanelType () |
Returns the type of the view 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 > ¶meterMap) |
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 | |
NodeModel * | m_nodeModel |
Node model. | |
Node * | m_node |
selected node | |
SceneModel * | m_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 | |
![]() | |
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 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. | |
![]() | |
QMap< QString, QString > | m_parameterMap |
Map with default values. For load and save functionality. | |
Class representing a view for displaying and editing parameters of nodes.
TestPanel::TestPanel | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | flags = 0 |
||
) |
Constructor of the TestPanel class.
Constructors and Destructors.
parent | The parent widget the created instance will be a child of. |
flags | Extra widget options. |
Constructor of the TestPanel class.
parent | The parent widget the created instance will be a child of. |
flags | Extra widget options. |
|
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.
|
virtual |
Connects the panel with the scene.
Public Funcitons.
*nodeModel | NodeModel of the scene |
*sceneModel | SceneModel of the scene |
Connects the panel with the scene.
*nodeModel | NodeModel of the scene |
*sceneModel | SceneModel of the scene |
Reimplemented from Frapper::Panel.
QListWidgetItem * TestPanel::addItem | ( | Parameter * | parameter, |
bool | groupElement | ||
) |
Adds a item to the list.
parameter | Parameter to be added to a list |
groupElement | true if element of a parameter group |
|
virtual |
Fills the given tool bars with actions for the TestPanel view.
mainToolBar | The main tool bar to fill with actions. |
panelToolBar | The panel tool bar to fill with actions. |
Reimplemented from Frapper::Panel.
|
privateslot |
Is called a node is selected.
Private Slots.
selecedNode | the selected wich was selected |
Is called a node is selected
selecedNode | the selected wich was selected |
|
privateslot |
Updates the panel if the node model changes.
|
privateslot |
Updates the scene and the panel if a node is selected in the panel.
|
privateslot |
Sets the description mode.
description | boolean value of the action´s state |
|
private |
selected node
|
private |
Scene model.
|
private |
List Widget to show all nodes in the scene.
|
private |
List Widget to show all input parameters of the selected node.
|
private |
List Widget to show all output parameters of the selected node.
|
private |
List Widget to show all non-pin parameters of the selected node.
|
private |
Bool if detailed description should be used.
description | boolean value of the action´s state |