Frapper  1.0a
Static Public Member Functions | Static Public Attributes | List of all members
Frapper::PanelFactory Class Reference

Static class managing node types and Node object creation. More...

#include <PanelFactory.h>

Static Public Member Functions

static bool registerType (const QString &filename)
 Loads the XML description of a panel type from the file with the given name.
 
static PanelcreatePanel (const QString &typeName, QWidget *parent)
 Creates a panel of the given type name with the given name.
 
static void freeResources ()
 Frees all resources that were used by private static data of the panel factory class.
 

Static Public Attributes

static QMap< QString,
PanelTypeInterface * > 
m_panelTypeMap
 Map of existing panel types.
 
static QStringList m_panelPluginFiles
 List of existing panel plugin Files.
 
static QStringList m_panelPluginNames
 List of existing panel plugin names.
 
static QStringList m_panelPluginIcons
 List of existing panel plugin icons.
 

Detailed Description

Static class managing node types and Node object creation.

Member Function Documentation

bool Frapper::PanelFactory::registerType ( const QString &  filename)
static

Loads the XML description of a panel type from the file with the given name.

Parameters
filenameThe name of an XML file describing a panel type.
Panel * Frapper::PanelFactory::createPanel ( const QString &  typeName,
QWidget *  parent 
)
static

Creates a panel of the given type name with the given name.

Parameters
typeNameThe name of the type to use for the new panel.
nameThe name to give to the new panel.
Returns
A pointer to the new node.
Parameters
typeNameThe name of the type to use for the new panel.
nameThe name to give to the new panel.
Returns
A pointer to the new panel.
void Frapper::PanelFactory::freeResources ( )
static

Frees all resources that were used by private static data of the panel factory class.

Member Data Documentation

QMap< QString, PanelTypeInterface * > Frapper::PanelFactory::m_panelTypeMap
static

Map of existing panel types.

Private Static Data.

QStringList Frapper::PanelFactory::m_panelPluginFiles
static

List of existing panel plugin Files.

Public Static Data.

QStringList Frapper::PanelFactory::m_panelPluginNames
static

List of existing panel plugin names.

QStringList Frapper::PanelFactory::m_panelPluginIcons
static

List of existing panel plugin icons.


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