Commit b4990506 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

rename dtkCoreWidgetFactory to dtkWidgetFactory

parent 547e3301
......@@ -44,7 +44,7 @@ set(${PROJECT_NAME}_HEADERS
dtkWidgetsTagCloudScope.h
dtkWidgetsTagCloudScopeItem.h
dtkWidgetsTagCloudView.h
dtkCoreWidgetFactory.h
dtkWidgetFactory.h
)
set(${PROJECT_NAME}_SOURCES
......@@ -69,7 +69,7 @@ set(${PROJECT_NAME}_SOURCES
dtkWidgetsTagCloudScope.cpp
dtkWidgetsTagCloudScopeItem.cpp
dtkWidgetsTagCloudView.cpp
dtkCoreWidgetFactory.cpp
dtkWidgetFactory.cpp
)
set(${PROJECT_NAME}_SOURCES_RCC
......
......@@ -12,14 +12,14 @@
// Code:
#include "dtkCoreWidgetFactory.h"
#include "dtkWidgetFactory.h"
dtkCoreWidgetFactory::dtkCoreWidgetFactory(void)
dtkWidgetFactory::dtkWidgetFactory(void)
{
}
dtkCoreWidgetFactory::~dtkCoreWidgetFactory(void)
dtkWidgetFactory::~dtkWidgetFactory(void)
{
}
......@@ -28,7 +28,7 @@ dtkCoreWidgetFactory::~dtkCoreWidgetFactory(void)
// Type creator registration
// /////////////////////////////////////////////////////////////////
void dtkCoreWidgetFactory::record(const QString& key, QWidget* widget)
void dtkWidgetFactory::record(const QString& key, QWidget* widget)
{
if (this->widgets.contains(key)) {
qDebug() << Q_FUNC_INFO << "Factory already contains key" << key << ". Nothing is done";
......@@ -42,7 +42,7 @@ void dtkCoreWidgetFactory::record(const QString& key, QWidget* widget)
// Type creator invokation
// /////////////////////////////////////////////////////////////////
QWidget *dtkCoreWidgetFactory::get(const QString& key) const
QWidget *dtkWidgetFactory::get(const QString& key) const
{
if(!this->widgets.contains(key))
return NULL;
......@@ -54,10 +54,10 @@ QWidget *dtkCoreWidgetFactory::get(const QString& key) const
// Type creator inspection
// /////////////////////////////////////////////////////////////////
QStringList dtkCoreWidgetFactory::keys(void) const
QStringList dtkWidgetFactory::keys(void) const
{
return this->widgets.keys();
}
//
// dtkCoreWidgetFactory_t.h ends here
// dtkWidgetFactory_t.h ends here
......@@ -21,14 +21,14 @@
class QWidget;
// ///////////////////////////////////////////////////////////////////
// dtkCoreWidgetFactory
// dtkWidgetFactory
// ///////////////////////////////////////////////////////////////////
class DTKWIDGETS_EXPORT dtkCoreWidgetFactory : public QObject
class DTKWIDGETS_EXPORT dtkWidgetFactory : public QObject
{
public:
dtkCoreWidgetFactory(void);
~dtkCoreWidgetFactory(void);
dtkWidgetFactory(void);
~dtkWidgetFactory(void);
public:
void record(const QString& key, QWidget* widget);
......@@ -44,4 +44,4 @@ private:
};
//
// dtkCoreWidgetFactory.h ends here
// dtkWidgetFactory.h ends here
#include "dtkApplication.h"
#include "dtkDistributedGuiApplication.h"
#include "dtkCoreWidgetFactory.h"
#include "dtkWidgetFactory.h"
#include "dtkToolBox.h"
#include "dtkWidgetsPlugin.h"
#include "dtkWidgetsTag.h"
......
......@@ -15,14 +15,14 @@
#pragma once
#include "dtkCoreWidgetFactory.h"
#include "dtkWidgetFactory.h"
// ///////////////////////////////////////////////////////////////////
// DTK_DECLARE_WIDGET_FACTORY
// ///////////////////////////////////////////////////////////////////
#define DTK_DECLARE_WIDGET_FACTORY(type,Export) \
class Export type##WidgetFactory : public dtkCoreWidgetFactory{}; \
class Export type##WidgetFactory : public dtkWidgetFactory{}; \
template <typename T> QWidget *type##WidgetCreator() { return new T; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment