diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.cpp b/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.cpp index 55eae02ebe..d0190f2d15 100644 --- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.cpp +++ b/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.cpp @@ -1,62 +1,73 @@ /*========================================================================= Program: BlueBerry Platform Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #include "berryQtPluginActivator.h" -#include "internal/berryQtStyleManager.h" +#include "berryQtStyleManager.h" #include "berryQtDnDTweaklet.h" #include "berryQtImageTweaklet.h" #include "berryQtMessageDialogTweaklet.h" #include "berryQtWorkbenchTweaklet.h" #include "berryQtWorkbenchPageTweaklet.h" #include "berryQtWidgetsTweaklet.h" #include "berryQtStylePreferencePage.h" #include "defaultpresentation/berryQtWorkbenchPresentationFactory.h" namespace berry { +QtPluginActivator::QtPluginActivator() +{ + +} + +QtPluginActivator::~QtPluginActivator() +{ + +} + void QtPluginActivator::start(ctkPluginContext* context) { AbstractUICTKPlugin::start(context); BERRY_REGISTER_EXTENSION_CLASS(QtDnDTweaklet, context) BERRY_REGISTER_EXTENSION_CLASS(QtImageTweaklet, context); BERRY_REGISTER_EXTENSION_CLASS(QtMessageDialogTweaklet, context); BERRY_REGISTER_EXTENSION_CLASS(QtWidgetsTweaklet, context) BERRY_REGISTER_EXTENSION_CLASS(QtWorkbenchTweaklet, context) BERRY_REGISTER_EXTENSION_CLASS(QtWorkbenchPageTweaklet, context) BERRY_REGISTER_EXTENSION_CLASS(QtWorkbenchPresentationFactory, context) BERRY_REGISTER_EXTENSION_CLASS(QtStylePreferencePage, context) QtStyleManager* manager = new QtStyleManager(); styleManager = IQtStyleManager::Pointer(manager); context->registerService(manager); + } void QtPluginActivator::stop(ctkPluginContext* context) { styleManager = 0; AbstractUICTKPlugin::stop(context); } } Q_EXPORT_PLUGIN2(org_blueberry_ui_qt, berry::QtPluginActivator) diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.h b/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.h index e3b4ad96f1..33812cf0a1 100644 --- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.h +++ b/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryQtPluginActivator.h @@ -1,45 +1,49 @@ /*========================================================================= Program: BlueBerry Platform Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef BERRYQTPLUGINACTIVATOR_H_ #define BERRYQTPLUGINACTIVATOR_H_ #include #include namespace berry { class QtPluginActivator : public QObject, public AbstractUICTKPlugin { Q_OBJECT Q_INTERFACES(ctkPluginActivator) public: + QtPluginActivator(); + ~QtPluginActivator(); + void start(ctkPluginContext* context); void stop(ctkPluginContext* context); private: IQtStyleManager::Pointer styleManager; + }; } #endif /* BERRYQTPLUGINACTIVATOR_H_ */