Frapper
1.0a
Main Page
Namespaces
Classes
Files
File List
File Members
gui
PanelFactory.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
34
35
#ifndef PANELFACTORY_H
36
#define PANELFACTORY_H
37
38
#include "
FrapperPrerequisites.h
"
39
#include "
Panel.h
"
40
#include "
PanelTypeInterface.h
"
41
#include <QtCore/QString>
42
43
44
namespace
Frapper {
45
49
class
FRAPPER_GUI_EXPORT
PanelFactory
50
{
51
52
public
:
// static functions
53
60
static
bool
registerType (
const
QString &filename );
61
69
static
Panel
* createPanel (
const
QString &typeName , QWidget *parent);
70
75
static
void
freeResources ();
76
77
public
:
// static data
78
82
static
QMap<QString, PanelTypeInterface*>
m_panelTypeMap
;
83
87
static
QStringList
m_panelPluginFiles
;
88
92
static
QStringList
m_panelPluginNames
;
93
97
static
QStringList
m_panelPluginIcons
;
98
};
99
100
}
// end namespace Frapper
101
102
#endif
Generated on Tue Sep 18 2012 11:43:03 for Frapper by
1.8.2