Frapper
1.0a
Main Page
Namespaces
Classes
Files
File List
File Members
plugins
panels
TestPanel
TestPanel.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of FRAPPER
4
research.animationsinstitut.de
5
sourceforge.net/projects/frapper
6
7
Copyright (c) 2008-2009 Filmakademie Baden-Wuerttemberg, Institute of Animation
8
9
This program is free software; you can redistribute it and/or modify it under
10
the terms of the GNU Lesser General Public License as published by the Free Software
11
Foundation; either version 2 of the License, or (at your option) any later
12
version.
13
14
This program is distributed in the hope that it will be useful, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17
18
You should have received a copy of the GNU Lesser General Public License along with
19
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21
http://www.gnu.org/copyleft/lesser.txt.
22
-----------------------------------------------------------------------------
23
*/
24
35
36
#ifndef TestPanel_H
37
#define TestPanel_H
38
39
#include "
FrapperPrerequisites.h
"
40
#include "
ViewPanel.h
"
41
#include "
Node.h
"
42
#include "
Parameter.h
"
43
#include "
NumberParameter.h
"
44
#include "
FilenameParameter.h
"
45
#include "
EnumerationParameter.h
"
46
#include "
ParameterPlugin.h
"
47
#include <QtGui/QListWidget>
48
#include <QtGui/QLabel>
49
#include <QtGui/QLineEdit>
50
#include <QtGui/QItemSelection>
51
52
namespace
Frapper {
53
57
class
TestPanel
:
public
ViewPanel
58
59
{
60
61
Q_OBJECT
62
63
public
:
// constructors and destructors
64
71
TestPanel
( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
72
80
virtual
~TestPanel
();
81
82
public
slots:
//
83
84
85
86
public
:
// functions
87
88
95
virtual
void
registerControl
(
NodeModel
*nodeModel,
SceneModel
*sceneModel);
96
104
QListWidgetItem*
addItem
(
Parameter
*parameter,
bool
groupElement);
105
112
void
fillToolBars
( QToolBar *mainToolBar, QToolBar *panelToolBar );
113
114
private
slots:
//
115
121
void
updateSelectedNode
(
Node
* selectedNode);
122
126
void
update
();
127
131
void
nodeSelected
(QListWidgetItem * listItem);
132
136
void
showDiscription
(
bool
description);
137
138
private
:
// data
139
140
144
NodeModel
*
m_nodeModel
;
145
149
Node
*
m_node
;
150
154
SceneModel
*
m_sceneModel
;
155
159
QListWidget *
m_ListNodes
;
160
164
QListWidget *
m_InputParameters
;
165
169
QListWidget *
m_OutputParameters
;
170
174
QListWidget *
m_NodeParameters
;
175
181
bool
m_description
;
182
};
183
184
}
// end namespace Frapper
185
186
#endif
Generated on Tue Sep 18 2012 11:43:03 for Frapper by
1.8.2