diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/CMakeLists.txt b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/CMakeLists.txt new file mode 100644 index 0000000000..617e1dfcab --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/CMakeLists.txt @@ -0,0 +1,2 @@ + +MACRO_CREATE_MITK_PLUGIN(QmitkExt MitkIGT MitkIGTUI) diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/META-INF/MANIFEST.MF b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..e54c9b9dc6 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/META-INF/MANIFEST.MF @@ -0,0 +1,7 @@ +Manifest-Version: 1.0 +Bundle-Name: MITK-IGT Navigation Tool Manager +Bundle-SymbolicName: org.mitk.gui.qt.igtnavigationtoolmanager +Bundle-Version: 0.1 +Bundle-Vendor: DKFZ, Medical and Biological Informatics +Require-Bundle: org.mitk.gui.qt.common +Bundle-Activator: diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/Manual/Manual.dox b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/Manual/Manual.dox new file mode 100644 index 0000000000..fc21427c36 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/Manual/Manual.dox @@ -0,0 +1,13 @@ +/** +\bundlemainpage{org.mitk.gui.qt.igtnavigationtoolmanager} MITK-IGT Navigation Tool Manager + +\image html icon.png "Icon of MITK-IGT Navigation Tool Manager" + +Available sections: + - \ref org.mitk.gui.qt.igtnavigationtoolmanagerOverview + +\section org.mitk.gui.qt.igtnavigationtoolmanagerOverview +This is the description for the MITK-IGT Navigation Tool Manager. + +*/ + diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/Manual/icon.png b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/Manual/icon.png new file mode 100644 index 0000000000..f1ad7558e4 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/Manual/icon.png @@ -0,0 +1 @@ +‰PNG diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/doxygen/modules.dox b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/doxygen/modules.dox new file mode 100644 index 0000000000..d9f0d67102 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/documentation/doxygen/modules.dox @@ -0,0 +1,16 @@ +/** + \defgroup org_mitk_gui_qt_igtnavigationtoolmanager org.mitk.gui.qt.igtnavigationtoolmanager Plugin + \ingroup MITKPlugins + + \brief Describe your plugin here. + +*/ + +/** + \defgroup org_mitk_gui_qt_igtnavigationtoolmanager_internal Internal + \ingroup org_mitk_gui_qt_igtnavigationtoolmanager + + \brief This subcategory includes the internal classes of the org.mitk.gui.qt.igtnavigationtoolmanager plugin. Other + plugins must not rely on these classes. They contain implementation details and their interface + may change at any time. We mean it. +*/ diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/files.cmake b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/files.cmake new file mode 100644 index 0000000000..fa0b7db0ec --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/files.cmake @@ -0,0 +1,35 @@ +SET(SRC_CPP_FILES + +) + +SET(INTERNAL_CPP_FILES + QmitkMITKIGTNavigationToolManagerView.cpp + +) + +SET(UI_FILES + src/internal/QmitkMITKIGTNavigationToolManagerViewControls.ui +) + +SET(MOC_H_FILES + src/internal/QmitkMITKIGTNavigationToolManagerView.h +) + +SET(RESOURCE_FILES + resources/icon.xpm +) + +SET(RES_FILES + resources/QmitkMITKIGTNavigationToolManagerView.qrc +) + +SET(CPP_FILES manifest.cpp) + +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/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/manifest.cpp b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/manifest.cpp new file mode 100644 index 0000000000..a3a46eed72 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/manifest.cpp @@ -0,0 +1,26 @@ +/*========================================================================= + +Program: Medical Imaging & Interaction Toolkit +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 + + + +#include "src/internal/QmitkMITKIGTNavigationToolManagerView.h" + +POCO_BEGIN_NAMED_MANIFEST(berryIViewPart, berry::IViewPart) + POCO_EXPORT_CLASS(::QmitkMITKIGTNavigationToolManagerView) +POCO_END_MANIFEST diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/plugin.xml b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/plugin.xml new file mode 100644 index 0000000000..e286a35dd6 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/plugin.xml @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/resources/QmitkMITKIGTNavigationToolManagerView.qrc b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/resources/QmitkMITKIGTNavigationToolManagerView.qrc new file mode 100644 index 0000000000..f728accafe --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/resources/QmitkMITKIGTNavigationToolManagerView.qrc @@ -0,0 +1,5 @@ + + + icon.xpm + + diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/resources/icon.xpm b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/resources/icon.xpm new file mode 100644 index 0000000000..9057c20bc6 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/resources/icon.xpm @@ -0,0 +1,21 @@ +/* XPM */ +static const char * icon_xpm[] = { +"16 16 2 1", +" c #FF0000", +". c #000000", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/IgtnavigationtoolmanagerDll.h b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/IgtnavigationtoolmanagerDll.h new file mode 100644 index 0000000000..24a5563f5a --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/IgtnavigationtoolmanagerDll.h @@ -0,0 +1,43 @@ +/*========================================================================= + +Program: Medical Imaging & Interaction Toolkit +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 _IGTNAVIGATIONTOOLMANAGER_EXPORT_DLL_H_ +#define _IGTNAVIGATIONTOOLMANAGER_EXPORT_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 org_mitk_gui_qt_igtnavigationtoolmanager_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 +// org_mitk_gui_qt_igtnavigationtoolmanager_EXPORTS functions as being imported from a DLL, wheras this DLL sees symbols +// defined with this macro as being exported. +// +#if defined(_WIN32) && !defined(MITK_STATIC) + #if defined(org_mitk_gui_qt_igtnavigationtoolmanager_EXPORTS) + #define IGTNAVIGATIONTOOLMANAGER_EXPORT __declspec(dllexport) + #else + #define IGTNAVIGATIONTOOLMANAGER_EXPORT __declspec(dllimport) + #endif +#endif + + +#if !defined(IGTNAVIGATIONTOOLMANAGER_EXPORT) + #define IGTNAVIGATIONTOOLMANAGER_EXPORT +#endif + +#endif /*_IGTNAVIGATIONTOOLMANAGER_EXPORT_DLL_H_*/ diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerView.cpp b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerView.cpp new file mode 100644 index 0000000000..f2a2347712 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerView.cpp @@ -0,0 +1,69 @@ +/*========================================================================= + +Program: Medical Imaging & Interaction Toolkit +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. + +=========================================================================*/ + +// Blueberry +#include +#include + +// Qmitk +#include "QmitkMITKIGTNavigationToolManagerView.h" +#include "QmitkStdMultiWidget.h" + +// Qt +#include + + + +const std::string QmitkMITKIGTNavigationToolManagerView::VIEW_ID = "org.mitk.views.mitkigtnavigationtoolmanager"; + +QmitkMITKIGTNavigationToolManagerView::QmitkMITKIGTNavigationToolManagerView() +: QmitkFunctionality() +, m_Controls( 0 ) +, m_MultiWidget( NULL ) +{ +} + +QmitkMITKIGTNavigationToolManagerView::~QmitkMITKIGTNavigationToolManagerView() +{ +} + + +void QmitkMITKIGTNavigationToolManagerView::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::QmitkMITKIGTNavigationToolManagerViewControls; + m_Controls->setupUi( parent ); + } +} + + +void QmitkMITKIGTNavigationToolManagerView::StdMultiWidgetAvailable (QmitkStdMultiWidget &stdMultiWidget) +{ + m_MultiWidget = &stdMultiWidget; +} + + +void QmitkMITKIGTNavigationToolManagerView::StdMultiWidgetNotAvailable() +{ + m_MultiWidget = NULL; +} + + + diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerView.h b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerView.h new file mode 100644 index 0000000000..a335a50931 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerView.h @@ -0,0 +1,67 @@ +/*========================================================================= + +Program: Medical Imaging & Interaction Toolkit +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 QmitkMITKIGTNavigationToolManagerView_h +#define QmitkMITKIGTNavigationToolManagerView_h + +#include + +#include + +#include "ui_QmitkMITKIGTNavigationToolManagerViewControls.h" + + + +/*! + \brief QmitkMITKIGTNavigationToolManagerView + + \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 QmitkMITKIGTNavigationToolManagerView : public QObject, 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; + + QmitkMITKIGTNavigationToolManagerView(); + virtual ~QmitkMITKIGTNavigationToolManagerView(); + + virtual void CreateQtPartControl(QWidget *parent); + + virtual void StdMultiWidgetAvailable (QmitkStdMultiWidget &stdMultiWidget); + virtual void StdMultiWidgetNotAvailable(); + + protected slots: + + protected: + + Ui::QmitkMITKIGTNavigationToolManagerViewControls* m_Controls; + + QmitkStdMultiWidget* m_MultiWidget; +}; + + + +#endif // _QMITKMITKIGTNAVIGATIONTOOLMANAGERVIEW_H_INCLUDED + diff --git a/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerViewControls.ui b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerViewControls.ui new file mode 100644 index 0000000000..a88609f3c4 --- /dev/null +++ b/Modules/Bundles/org.mitk.gui.qt.igtnavigationtoolmanager/src/internal/QmitkMITKIGTNavigationToolManagerViewControls.ui @@ -0,0 +1,55 @@ + + + QmitkMITKIGTNavigationToolManagerViewControls + + + + 0 + 0 + 222 + 161 + + + + + 0 + 0 + + + + QmitkTemplate + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 220 + + + + + + + + + + QmitkNavigationToolManagementWidget + QWidget +
QmitkNavigationToolManagementWidget.h
+ 1 +
+
+ + +