TwiceAsNice  2019-02-18
Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Nice::WidgetFactory Class Referenceabstract

#include <WidgetFactory.h>

Inheritance diagram for Nice::WidgetFactory:
Inheritance graph
Collaboration diagram for Nice::WidgetFactory:
Collaboration graph

Static Public Member Functions

static QWidget * createWidget (const std::string &_type, const std::string &_widget, QWidget *_parent)
 
static QWidget * createWidget (const std::string &_type, QWidget *_parent, const std::string &_widget="Default")
 
static std::vector< std::string > getSupportedWidgets (const std::string &_type)
 
template<typename T >
static void addWidgetFactory (const std::string &_type, const std::string &_widget="Default")
 
static QWidget * createWidget (const std::string &_type, const std::string &_widget, QWidget *_parent)
 
static QWidget * createWidget (const std::string &_type, QWidget *_parent, const std::string &_widget="Default")
 
static std::vector< std::string > getSupportedWidgets (const std::string &_type)
 
template<typename T >
static void addWidgetFactory (const std::string &_type, const std::string &_widget="Default")
 
static QWidget * createWidget (const std::string &_type, const std::string &_widget, QWidget *_parent)
 
static QWidget * createWidget (const std::string &_type, QWidget *_parent, const std::string &_widget="Default")
 
static std::vector< std::string > getSupportedWidgets (const std::string &_type)
 
template<typename T >
static void addWidgetFactory (const std::string &_type, const std::string &_widget="Default")
 

Static Public Attributes

static std::map< std::string, std::map< std::string, Nice::WidgetFactory * > *> * WidgetFactoryTypeMap = 0
 

Protected Member Functions

virtual ~WidgetFactory ()
 
virtual QWidget * createW (QWidget *_parent)=0
 
virtual ~WidgetFactory ()
 
virtual QWidget * createW (QWidget *_parent)=0
 
virtual ~WidgetFactory ()
 
virtual QWidget * createW (QWidget *_parent)=0
 

Constructor & Destructor Documentation

◆ ~WidgetFactory() [1/3]

Nice::WidgetFactory::~WidgetFactory ( )
protectedvirtual

◆ ~WidgetFactory() [2/3]

virtual Nice::WidgetFactory::~WidgetFactory ( )
protectedvirtual

◆ ~WidgetFactory() [3/3]

virtual Nice::WidgetFactory::~WidgetFactory ( )
protectedvirtual

Member Function Documentation

◆ addWidgetFactory() [1/3]

template<typename T >
void Nice::WidgetFactory::addWidgetFactory ( const std::string &  _type,
const std::string &  _widget = "Default" 
)
static

◆ addWidgetFactory() [2/3]

template<typename T >
static void Nice::WidgetFactory::addWidgetFactory ( const std::string &  _type,
const std::string &  _widget = "Default" 
)
static

◆ addWidgetFactory() [3/3]

template<typename T >
static void Nice::WidgetFactory::addWidgetFactory ( const std::string &  _type,
const std::string &  _widget = "Default" 
)
static

◆ createW() [1/3]

virtual QWidget* Nice::WidgetFactory::createW ( QWidget *  _parent)
protectedpure virtual

◆ createW() [2/3]

virtual QWidget* Nice::WidgetFactory::createW ( QWidget *  _parent)
protectedpure virtual

◆ createW() [3/3]

virtual QWidget* Nice::WidgetFactory::createW ( QWidget *  _parent)
protectedpure virtual

◆ createWidget() [1/6]

static QWidget* Nice::WidgetFactory::createWidget ( const std::string &  _type,
const std::string &  _widget,
QWidget *  _parent 
)
static

◆ createWidget() [2/6]

QWidget * Nice::WidgetFactory::createWidget ( const std::string &  _type,
const std::string &  _widget,
QWidget *  _parent 
)
static

◆ createWidget() [3/6]

static QWidget* Nice::WidgetFactory::createWidget ( const std::string &  _type,
const std::string &  _widget,
QWidget *  _parent 
)
static

◆ createWidget() [4/6]

static QWidget* Nice::WidgetFactory::createWidget ( const std::string &  _type,
QWidget *  _parent,
const std::string &  _widget = "Default" 
)
inlinestatic

◆ createWidget() [5/6]

static QWidget* Nice::WidgetFactory::createWidget ( const std::string &  _type,
QWidget *  _parent,
const std::string &  _widget = "Default" 
)
inlinestatic

◆ createWidget() [6/6]

static QWidget* Nice::WidgetFactory::createWidget ( const std::string &  _type,
QWidget *  _parent,
const std::string &  _widget = "Default" 
)
inlinestatic

◆ getSupportedWidgets() [1/3]

std::vector< std::string > Nice::WidgetFactory::getSupportedWidgets ( const std::string &  _type)
static

◆ getSupportedWidgets() [2/3]

static std::vector<std::string> Nice::WidgetFactory::getSupportedWidgets ( const std::string &  _type)
static

◆ getSupportedWidgets() [3/3]

static std::vector<std::string> Nice::WidgetFactory::getSupportedWidgets ( const std::string &  _type)
static

Member Data Documentation

◆ WidgetFactoryTypeMap

static std::map< std::string, std::map< std::string, Nice::WidgetFactory * > *> * Nice::WidgetFactory::WidgetFactoryTypeMap = 0
static

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