diff --git a/CMake/QBundleTemplate/BundleDefaults.cmake b/CMake/QBundleTemplate/BundleDefaults.cmake deleted file mode 100644 index 56972e38d5..0000000000 --- a/CMake/QBundleTemplate/BundleDefaults.cmake +++ /dev/null @@ -1,29 +0,0 @@ -set(BUNDLE_NAMESPACE "") -set(DEFAULT_REQUIRED_BUNDLES "org.mitk.core.services") -set(DEFAULT_REQUIRED_BUNDLES_FOR_GUI "org.mitk.gui.qt.common") -set(DEFAULT_PLUGIN_VERSION "0.1") -set(DEFAULT_PLUGIN_VENDOR "DKFZ, Medical and Biological Informatics") -set(DEFAULT_VIEW_BASEID "org.mitk.views.") -set(DEFAULT_VIEW_CLASS_BEGIN "Qmitk") -set(DEFAULT_VIEW_BASE_CLASS "QmitkFunctionality") -set(DEFAULT_VIEW_BASE_CLASS_H "QmitkFunctionality.h") -set(PROJECT_STATIC_VAR "MITK_STATIC") -set(DOXYGEN_INGROUP "MITKPlugins") -set(DEFAULT_CREATE_PLUGIN_MACRO "MACRO_CREATE_MITK_PLUGIN()") -set(DEFAULT_CREATE_GUI_PLUGIN_MACRO "MACRO_CREATE_MITK_PLUGIN(QmitkExt)") -set(PLUGIN_COPYRIGHT "/*=================================================================== - -The Medical Imaging Interaction Toolkit (MITK) - -Copyright (c) German Cancer Research Center, -Division of Medical and Biological Informatics. -All rights reserved. - -This software is distributed WITHOUT ANY WARRANTY; without -even the implied warranty of MERCHANTABILITY or FITNESS FOR -A PARTICULAR PURPOSE. - -See LICENSE.txt or http://www.mitk.org for details. - -===================================================================*/") - diff --git a/CMake/QBundleTemplate/BundleTemplate.cpp b/CMake/QBundleTemplate/BundleTemplate.cpp deleted file mode 100644 index f87d6887e8..0000000000 --- a/CMake/QBundleTemplate/BundleTemplate.cpp +++ /dev/null @@ -1,22 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#include "@GENERATE_VIEW_CLASS@.h" - -#include "berryPlatform.h" -#include "service/berryIExtensionPointService.h" -#include "event/berryPlatformEvents.h" - -#include "Poco/Delegate.h" - -#include - -namespace berry { - -const std::string RuntimePlugin::@PLUGIN_ID@ = "org.blueberry.core.runtime"; - -void -RuntimePlugin::Start(IBundleContext::Pointer /*context*/) -{ -} - -} diff --git a/CMake/QBundleTemplate/BundleTemplate.h b/CMake/QBundleTemplate/BundleTemplate.h deleted file mode 100644 index 0067609ee5..0000000000 --- a/CMake/QBundleTemplate/BundleTemplate.h +++ /dev/null @@ -1,26 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#ifndef (@GENERATE_VIEW_CLASS@_H_INCLUDED) -#define @GENERATE_VIEW_CLASS@_H_INCLUDED - -#include -#include -#include - -#include "berryRuntimeDll.h" - -namespace berry { - -class BERRY_RUNTIME @GENERATE_VIEW_CLASS@ : public Plugin -{ -public: - - static const std::string @PLUGIN_ID@; - - void Start(IBundleContext::Pointer context); - -}; - -} - -#endif /*@GENERATE_VIEW_CLASS@_H_INCLUDED*/ diff --git a/CMake/QBundleTemplate/CMakeListsTemplate.txt b/CMake/QBundleTemplate/CMakeListsTemplate.txt deleted file mode 100644 index 43071944bb..0000000000 --- a/CMake/QBundleTemplate/CMakeListsTemplate.txt +++ /dev/null @@ -1,2 +0,0 @@ - -@CREATE_PLUGIN_MACRO@ diff --git a/CMake/QBundleTemplate/META-INF/MANIFEST_TEMPLATE.MF b/CMake/QBundleTemplate/META-INF/MANIFEST_TEMPLATE.MF deleted file mode 100644 index 4401d1da6d..0000000000 --- a/CMake/QBundleTemplate/META-INF/MANIFEST_TEMPLATE.MF +++ /dev/null @@ -1,7 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: @PLUGIN_NAME@ -Bundle-SymbolicName: @PLUGIN_ID@ -Bundle-Version: @PLUGIN_VERSION@ -Bundle-Vendor: @PLUGIN_VENDOR@ -Require-Bundle: @REQUIRED_PLUGINS_MF@ -Bundle-Activator: @FULLY_QUALIFIED_ACTIVATOR@ \ No newline at end of file diff --git a/CMake/QBundleTemplate/documentation/Manual/Manual.dox b/CMake/QBundleTemplate/documentation/Manual/Manual.dox deleted file mode 100755 index 21d82fb187..0000000000 --- a/CMake/QBundleTemplate/documentation/Manual/Manual.dox +++ /dev/null @@ -1,12 +0,0 @@ -/** -\page @PLUGIN_ID@ The @PLUGIN_NAME@ - -\imageMacro{icon.png,"Icon of @PLUGIN_NAME@",2.00} - -\tableofcontents - -\section @PLUGIN_ID@Overview Overview -This is the description for the @PLUGIN_NAME@. - -*/ - diff --git a/CMake/QBundleTemplate/documentation/Manual/icon.png b/CMake/QBundleTemplate/documentation/Manual/icon.png deleted file mode 100644 index 408a165f12..0000000000 Binary files a/CMake/QBundleTemplate/documentation/Manual/icon.png and /dev/null differ diff --git a/CMake/QBundleTemplate/documentation/doxygen/modulesTemplate.dox b/CMake/QBundleTemplate/documentation/doxygen/modulesTemplate.dox deleted file mode 100644 index 40ff4b9720..0000000000 --- a/CMake/QBundleTemplate/documentation/doxygen/modulesTemplate.dox +++ /dev/null @@ -1,16 +0,0 @@ -/** - \defgroup @NormalizedPluginID@ @PLUGIN_ID@ Plugin - @DOXYGEN_INGROUP_CMD@ - - \brief Describe your plugin here. - -*/ - -/** - \defgroup @NormalizedPluginID@_internal Internal - \ingroup @NormalizedPluginID@ - - \brief This subcategory includes the internal classes of the @PLUGIN_ID@ plugin. Other - plugins must not rely on these classes. They contain implementation details and their interface - may change at any time. We mean it. -*/ \ No newline at end of file diff --git a/CMake/QBundleTemplate/filesTemplate.cmake b/CMake/QBundleTemplate/filesTemplate.cmake deleted file mode 100644 index 026c965f61..0000000000 --- a/CMake/QBundleTemplate/filesTemplate.cmake +++ /dev/null @@ -1,34 +0,0 @@ -set(SRC_CPP_FILES - @PLUGIN_SOURCES@ -) - -set(INTERNAL_CPP_FILES - @PLUGIN_INTERNAL_SOURCES@ -) - -set(UI_FILES - @PLUGIN_UI_FILES@ -) - -set(MOC_H_FILES - @PLUGIN_MOC_H_FILES@ -) - -set(RESOURCE_FILES - @PLUGIN_RESOURCE_FILES@ -) - -set(RES_FILES - @PLUGIN_RES_FILES@ -) - -@SET_MANIFEST_SRC@ - -foreach(file ${SRC_CPP_FILES}) - set(CPP_FILES ${CPP_FILES} src/${file}) -endforeach(file ${SRC_CPP_FILES}) - -foreach(file ${INTERNAL_CPP_FILES}) - set(CPP_FILES ${CPP_FILES} src/internal/${file}) -endforeach(file ${INTERNAL_CPP_FILES}) - diff --git a/CMake/QBundleTemplate/manifestTemplate.cpp b/CMake/QBundleTemplate/manifestTemplate.cpp deleted file mode 100644 index a4998d5b44..0000000000 --- a/CMake/QBundleTemplate/manifestTemplate.cpp +++ /dev/null @@ -1,7 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#include - -@MANIFEST_ACTIVATOR_ENTRY@ - -@MANIFEST_VIEW_ENTRY@ diff --git a/CMake/QBundleTemplate/pluginTemplate.xml b/CMake/QBundleTemplate/pluginTemplate.xml deleted file mode 100644 index 73704913d0..0000000000 --- a/CMake/QBundleTemplate/pluginTemplate.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - -@XP_VIEW@ - - diff --git a/CMake/QBundleTemplate/project/AppTemplate.cpp b/CMake/QBundleTemplate/project/AppTemplate.cpp deleted file mode 100755 index aa6e9b8cb2..0000000000 --- a/CMake/QBundleTemplate/project/AppTemplate.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include - -#include - -int main(int argc, char** argv) -{ - // Create a QApplication instance first - QApplication myApp(argc, argv); - myApp.setApplicationName("@CUSTOM_PROJECT_NAME@"); - myApp.setOrganizationName("@PLUGIN_VENDOR@"); - - return berry::Starter::Run(argc, argv); -} diff --git a/CMake/QBundleTemplate/project/AppTemplate.ini b/CMake/QBundleTemplate/project/AppTemplate.ini deleted file mode 100755 index f6bad1ccef..0000000000 --- a/CMake/QBundleTemplate/project/AppTemplate.ini +++ /dev/null @@ -1,4 +0,0 @@ -BlueBerry.home=@BLUEBERRY_BINARY_DIR@ -BlueBerry.plugin_dirs=@BLUEBERRY_PLUGINS_OUTPUT_DIR@;@MITK_PLUGIN_OUTPUT_DIRS@;@PLUGIN_OUTPUT_DIRS@ -BlueBerry.application=org.mitk.qt.extapplication -BlueBerry.provisioning=@MITK_PLUGIN_PROVISIONING_FILE@ diff --git a/CMake/QBundleTemplate/project/Bundles/CMakeListsTemplate.txt b/CMake/QBundleTemplate/project/Bundles/CMakeListsTemplate.txt deleted file mode 100755 index 858607e0ee..0000000000 --- a/CMake/QBundleTemplate/project/Bundles/CMakeListsTemplate.txt +++ /dev/null @@ -1,7 +0,0 @@ -# Go through all directories in the current directory -# and if it contains a plug-in configure it -MACRO_COLLECT_PLUGINS(OUTPUT_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/Bundles - CACHE_PLUGIN_OUTPUT_DIRS @CUSTOM_PROJECT_NAME@_PLUGIN_OUTPUT_DIRS - CACHE_PLUGIN_TARGETS @CUSTOM_PROJECT_NAME@_ENABLED_PLUGINS - DEFAULT_BUILD_ON - ) diff --git a/CMake/QBundleTemplate/project/CMakeListsTemplate.txt b/CMake/QBundleTemplate/project/CMakeListsTemplate.txt deleted file mode 100755 index a7fbe8f4f1..0000000000 --- a/CMake/QBundleTemplate/project/CMakeListsTemplate.txt +++ /dev/null @@ -1,62 +0,0 @@ -project(@CUSTOM_PROJECT_NAME@) -cmake_minimum_required(VERSION 2.6) - -set(BUILD_SHARED_LIBS 1) - -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin" CACHE INTERNAL "Single output directory for building all libraries.") -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin" CACHE INTERNAL "Single output directory for building all executables.") - -# This variable will contain a list of directories -# which contain your binary plug-ins -set(@CUSTOM_PROJECT_NAME@_PLUGIN_OUTPUT_DIRS "" CACHE INTERNAL "@CUSTOM_PROJECT_NAME@ base plugin directories." FORCE) - -@FIND_PACKAGE_QT4@ -include(${QT_USE_FILE}) - -set(MITK_USE_BLUEBERRY 1) -# Set the variable below to 0 if you do not want to -# use the extended MITK functionality -set(MITK_USE_EXT 1) -find_package(MITK REQUIRED) - -add_subdirectory(Bundles) - -# Now build a custom executable to start the -# BlueBerry Workbench with our plug-ins -include_directories( - ${org_blueberry_osgi_INCLUDE_DIRS} - ${Poco_INCLUDE_DIRS} - ${mbilog_INCLUDE_DIRS} -) - -link_directories("${org.blueberry.osgi_OUT_DIR}/bin" ${Poco_LIBRARY_DIR}) -add_executable(@CUSTOM_PROJECT_EXECUTABLE@ @CUSTOM_PROJECT_EXECUTABLE@.cpp) -target_link_libraries(@CUSTOM_PROJECT_EXECUTABLE@ org_blueberry_osgi) - -if(@CUSTOM_PROJECT_NAME@_ENABLED_PLUGINS) - add_dependencies(@CUSTOM_PROJECT_EXECUTABLE@ ${@CUSTOM_PROJECT_NAME@_ENABLED_PLUGINS}) -endif() - -# Configure the application's .ini file -set(PLUGIN_CACHE_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plugin_cache") -set(PLUGIN_OUTPUT_DIRS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/Bundles") -configure_file("${CMAKE_CURRENT_SOURCE_DIR}/@CUSTOM_PROJECT_EXECUTABLE@.ini" - "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/@CUSTOM_PROJECT_EXECUTABLE@.ini" @ONLY) - - -# If we are under Windows, create two batch files which correctly -# set up the environment for the application and for VS 2008 -if(WIN32) - include(mitkFunctionCreateWindowsBatchScript) - - foreach(APP_BUILD_TYPE debug release) - mitkFunctionCreateWindowsBatchScript(start@CUSTOM_PROJECT_EXECUTABLE@.bat.in - ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/start@CUSTOM_PROJECT_EXECUTABLE@_${APP_BUILD_TYPE}.bat - ${APP_BUILD_TYPE}) - - # Configure VS batch file - mitkFunctionCreateWindowsBatchScript("${CMAKE_CURRENT_SOURCE_DIR}/startVS2008.bat.in" - "${PROJECT_BINARY_DIR}/startVS2008_${APP_BUILD_TYPE}.bat" - ${APP_BUILD_TYPE}) - endforeach() -endif(WIN32) diff --git a/CMake/QBundleTemplate/project/startAppTemplate.bat b/CMake/QBundleTemplate/project/startAppTemplate.bat deleted file mode 100755 index a4320b488e..0000000000 --- a/CMake/QBundleTemplate/project/startAppTemplate.bat +++ /dev/null @@ -1,3 +0,0 @@ -PATH=@BATCH_FILE_PATH@;%PATH% -@BATCH_FILE_EXEC_CMD@ - diff --git a/CMake/QBundleTemplate/project/startVS2008Template.bat b/CMake/QBundleTemplate/project/startVS2008Template.bat deleted file mode 100755 index 08667947d3..0000000000 --- a/CMake/QBundleTemplate/project/startVS2008Template.bat +++ /dev/null @@ -1,6 +0,0 @@ -@set CL=/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -@set LINK=/LARGEADDRESSAWARE - -PATH=@BATCH_FILE_VS_PATH@;%PATH% -"@BATCH_FILE_VS_EXEC_CMD@" - diff --git a/CMake/QBundleTemplate/resources/icon.png b/CMake/QBundleTemplate/resources/icon.png deleted file mode 100644 index 0fba7b1e5f..0000000000 Binary files a/CMake/QBundleTemplate/resources/icon.png and /dev/null differ diff --git a/CMake/QBundleTemplate/resources/icon.xpm b/CMake/QBundleTemplate/resources/icon.xpm deleted file mode 100644 index 9057c20bc6..0000000000 --- a/CMake/QBundleTemplate/resources/icon.xpm +++ /dev/null @@ -1,21 +0,0 @@ -/* XPM */ -static const char * icon_xpm[] = { -"16 16 2 1", -" c #FF0000", -". c #000000", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" ", -" "}; diff --git a/CMake/QBundleTemplate/resources/qtresources.qrc b/CMake/QBundleTemplate/resources/qtresources.qrc deleted file mode 100644 index 80ffdc75b2..0000000000 --- a/CMake/QBundleTemplate/resources/qtresources.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - icon.xpm - - diff --git a/CMake/QBundleTemplate/src/BundleDllTemplate.h b/CMake/QBundleTemplate/src/BundleDllTemplate.h deleted file mode 100644 index 10e997317f..0000000000 --- a/CMake/QBundleTemplate/src/BundleDllTemplate.h +++ /dev/null @@ -1,28 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#ifndef _@DLL_DEFINE@_DLL_H_ -#define _@DLL_DEFINE@_DLL_H_ - - -// -// The following block is the standard way of creating macros which make exporting -// from a DLL simpler. All files within this DLL are compiled with the @NormalizedPluginID@_EXPORTS -// symbol defined on the command line. this symbol should not be defined on any project -// that uses this DLL. This way any other project whose source files include this file see -// @NormalizedPluginID@_EXPORTS functions as being imported from a DLL, wheras this DLL sees symbols -// defined with this macro as being exported. -// -#if defined(_WIN32) && !defined(@PROJECT_STATIC_VAR@) - #if defined(@NormalizedPluginID@_EXPORTS) - #define @DLL_DEFINE@ __declspec(dllexport) - #else - #define @DLL_DEFINE@ __declspec(dllimport) - #endif -#endif - - -#if !defined(@DLL_DEFINE@) - #define @DLL_DEFINE@ -#endif - -#endif /*_@DLL_DEFINE@_DLL_H_*/ diff --git a/CMake/QBundleTemplate/src/internal/ActivatorTemplate.cpp b/CMake/QBundleTemplate/src/internal/ActivatorTemplate.cpp deleted file mode 100644 index d70569e882..0000000000 --- a/CMake/QBundleTemplate/src/internal/ActivatorTemplate.cpp +++ /dev/null @@ -1,17 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#include "@ACTIVATOR_CLASS_H@" - -@BEGIN_NAMESPACE@ - -void @ACTIVATOR_CLASS@::Start(berry::IBundleContext::Pointer context) -{ - -} - -void @ACTIVATOR_CLASS@::Stop(berry::IBundleContext::Pointer context) -{ - -} - -@END_NAMESPACE@ diff --git a/CMake/QBundleTemplate/src/internal/ActivatorTemplate.h b/CMake/QBundleTemplate/src/internal/ActivatorTemplate.h deleted file mode 100644 index 43819de4d1..0000000000 --- a/CMake/QBundleTemplate/src/internal/ActivatorTemplate.h +++ /dev/null @@ -1,32 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#ifndef @UBUNDLE_NAMESPACE@_@UACTIVATOR_CLASS@_H_INCLUDED -#define @UBUNDLE_NAMESPACE@_@UACTIVATOR_CLASS@_H_INCLUDED - -#include <@ACTIVATOR_BASE_CLASS_H@> - -@BEGIN_NAMESPACE@ - -/*! - * \ingroup @NormalizedPluginID@_internal - * - * \brief @ACTIVATOR_CLASS@ - * - * Document your class here. - * - * \sa @ACTIVATOR_BASE_CLASS@ - */ -class @ACTIVATOR_CLASS@ : public @ACTIVATOR_BASE_CLASS@ -{ - - public: - - void Start(berry::IBundleContext::Pointer context); - void Stop(berry::IBundleContext::Pointer context); - -}; - - -@END_NAMESPACE@ - -#endif // @UBUNDLE_NAMESPACE@_@UACTIVATOR_CLASS@_H_INCLUDED diff --git a/CMake/QBundleTemplate/src/internal/ControlsTemplate.ui b/CMake/QBundleTemplate/src/internal/ControlsTemplate.ui deleted file mode 100644 index c3205929dc..0000000000 --- a/CMake/QBundleTemplate/src/internal/ControlsTemplate.ui +++ /dev/null @@ -1,63 +0,0 @@ - - @VIEW_CONTROLS_CLASS@ - - - - 0 - 0 - 222 - 161 - - - - - 0 - 0 - - - - QmitkTemplate - - - - - - QLabel { color: rgb(255, 0, 0) } - - - Please select an image! - - - - - - - Do image processing - - - Do something - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 220 - - - - - - - - - - diff --git a/CMake/QBundleTemplate/src/internal/ViewTemplate.cpp b/CMake/QBundleTemplate/src/internal/ViewTemplate.cpp deleted file mode 100644 index 2f6c74345b..0000000000 --- a/CMake/QBundleTemplate/src/internal/ViewTemplate.cpp +++ /dev/null @@ -1,117 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -// Blueberry -#include -#include - -// Qmitk -#include "@VIEW_CLASS_H@" -#include "QmitkStdMultiWidget.h" - -// Qt -#include - -@BEGIN_NAMESPACE@ - -const std::string @VIEW_CLASS@::VIEW_ID = "@VIEW_ID@"; - -@VIEW_CLASS@::@VIEW_CLASS@() -: @VIEW_BASE_CLASS@() -, m_Controls( 0 ) -, m_MultiWidget( NULL ) -{ -} - -@VIEW_CLASS@::~@VIEW_CLASS@() -{ -} - - -void @VIEW_CLASS@::CreateQtPartControl( QWidget *parent ) -{ - // build up qt view, unless already done - if ( !m_Controls ) - { - // create GUI widgets from the Qt Designer's .ui file - m_Controls = new Ui::@VIEW_CONTROLS_CLASS@; - m_Controls->setupUi( parent ); - - connect( m_Controls->btnPerformImageProcessing, SIGNAL(clicked()), this, SLOT(DoImageProcessing()) ); - } -} - - -void @VIEW_CLASS@::StdMultiWidgetAvailable (QmitkStdMultiWidget &stdMultiWidget) -{ - m_MultiWidget = &stdMultiWidget; -} - - -void @VIEW_CLASS@::StdMultiWidgetNotAvailable() -{ - m_MultiWidget = NULL; -} - - -void @VIEW_CLASS@::OnSelectionChanged( std::vector nodes ) -{ - // iterate all selected objects, adjust warning visibility - for( std::vector::iterator it = nodes.begin(); - it != nodes.end(); - ++it ) - { - mitk::DataNode::Pointer node = *it; - - if( node.IsNotNull() && dynamic_cast(node->GetData()) ) - { - m_Controls->lblWarning->setVisible( false ); - return; - } - } - - m_Controls->lblWarning->setVisible( true ); -} - - -void @VIEW_CLASS@::DoImageProcessing() -{ - std::vector nodes = this->GetDataManagerSelection(); - if (nodes.empty()) return; - - mitk::DataNode* node = nodes.front(); - - if (!node) - { - // Nothing selected. Inform the user and return - QMessageBox::information( NULL, "Template", "Please load and select an image before starting image processing."); - return; - } - - // here we have a valid mitk::DataNode - - // a node itself is not very useful, we need its data item (the image) - mitk::BaseData* data = node->GetData(); - if (data) - { - // test if this data item is an image or not (could also be a surface or something totally different) - mitk::Image* image = dynamic_cast( data ); - if (image) - { - std::stringstream message; - std::string name; - message << "Performing image processing for image "; - if (node->GetName(name)) - { - // a property called "name" was found for this DataNode - message << "'" << name << "'"; - } - message << "."; - MITK_INFO << message.str(); - - // TODO actually do something here... - } - } -} - -@END_NAMESPACE@ - diff --git a/CMake/QBundleTemplate/src/internal/ViewTemplate.h b/CMake/QBundleTemplate/src/internal/ViewTemplate.h deleted file mode 100644 index 545f7eb50f..0000000000 --- a/CMake/QBundleTemplate/src/internal/ViewTemplate.h +++ /dev/null @@ -1,58 +0,0 @@ -@PLUGIN_COPYRIGHT@ - -#ifndef @VIEW_CLASS@_h -#define @VIEW_CLASS@_h - -#include - -#include <@VIEW_BASE_CLASS_H@> - -#include "@VIEW_CONTROLS_FILE@" - -@BEGIN_NAMESPACE@ - -/*! - \brief @VIEW_CLASS@ - - \warning This application module is not yet documented. Use "svn blame/praise/annotate" and ask the author to provide basic documentation. - - \sa QmitkFunctionality - \ingroup Functionalities -*/ -class @VIEW_CLASS@ : public QmitkFunctionality -{ - // this is needed for all Qt objects that should have a Qt meta-object - // (everything that derives from QObject and wants to have signal/slots) - Q_OBJECT - - public: - - static const std::string VIEW_ID; - - @VIEW_CLASS@(); - virtual ~@VIEW_CLASS@(); - - virtual void CreateQtPartControl(QWidget *parent); - - virtual void StdMultiWidgetAvailable (QmitkStdMultiWidget &stdMultiWidget); - virtual void StdMultiWidgetNotAvailable(); - - protected slots: - - /// \brief Called when the user clicks the GUI button - void DoImageProcessing(); - - protected: - - /// \brief called by QmitkFunctionality when DataManager's selection has changed - virtual void OnSelectionChanged( std::vector nodes ); - - Ui::@VIEW_CONTROLS_CLASS@* m_Controls; - - QmitkStdMultiWidget* m_MultiWidget; -}; - -@END_NAMESPACE@ - -#endif // @UBUNDLE_NAMESPACE@_@UVIEW_CLASS@_H_INCLUDED -