diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index 957751fe99..e14eb0f581 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -1,53 +1,52 @@ set(MITK_DEFAULT_SUBPROJECTS MITK-Examples) #----------------------------------------------------------------------------- # Set-up example plugins #----------------------------------------------------------------------------- if(MITK_USE_BLUEBERRY) # Specify which plug-ins belong to this project macro(GetMyTargetLibraries all_target_libraries varname) set(re_ctkplugin_mitk "^org_mitk_example_[a-zA-Z0-9_]+$") set(_tmp_list) list(APPEND _tmp_list ${all_target_libraries}) ctkMacroListFilter(_tmp_list re_ctkplugin_mitk OUTPUT_VARIABLE ${varname}) endmacro() set(MITK_EXAMPLE_PLUGIN_TARGETS ) foreach(mitk_example_plugin ${MITK_EXAMPLE_PLUGINS}) ctkFunctionExtractOptionNameAndValue(${mitk_example_plugin} plugin_name plugin_value) string(REPLACE "." "_" _plugin_target ${plugin_name}) list(APPEND MITK_EXAMPLE_PLUGIN_TARGETS ${_plugin_target}) mark_as_advanced(${${_plugin_target}_option_name}) endforeach() endif() #----------------------------------------------------------------------------- # Add example executables #----------------------------------------------------------------------------- set(MITK_DIR ${PROJECT_BINARY_DIR}) set(MITK_EXPORTS_FILE_INCLUDED 1) set(_example_dirs Dump MbiLog QtFreeRender Tutorial FirstSteps - QuickRender Annotation ) if(MITK_USE_BLUEBERRY) list(APPEND _example_dirs BlueBerryExampleLauncher ) endif() foreach(_example_dir ${_example_dirs}) add_subdirectory(${_example_dir}) endforeach() diff --git a/Examples/Plugins/PluginList.cmake b/Examples/Plugins/PluginList.cmake index 5cc18b92e2..b9d0c5d492 100644 --- a/Examples/Plugins/PluginList.cmake +++ b/Examples/Plugins/PluginList.cmake @@ -1,26 +1,25 @@ # Plug-ins must be ordered according to their dependencies set(MITK_EXAMPLE_PLUGINS org.mitk.example.gui.minimalapplication:ON org.mitk.example.gui.customviewer:ON org.mitk.example.gui.customviewer.views:ON org.mitk.example.gui.multipleperspectives:ON org.mitk.example.gui.selectionserviceqt:ON org.mitk.example.gui.selectionservicemitk:ON org.mitk.example.gui.selectionservicemitk.views:ON org.mitk.example.gui.extensionpointdefinition:ON org.mitk.example.gui.extensionpointcontribution:ON org.mitk.example.gui.regiongrowing:ON - org.mitk.example.gui.qmlapplication:ON org.mitk.example.gui.pcaexample:ON org.mitk.example.gui.imaging:ON ) if(MITK_USE_OpenCV) list(APPEND MITK_EXAMPLE_PLUGINS org.mitk.example.gui.opencv:ON) else() list(APPEND MITK_EXAMPLE_PLUGINS org.mitk.example.gui.opencv:OFF) endif() diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/CMakeLists.txt b/Examples/Plugins/org.mitk.example.gui.qmlapplication/CMakeLists.txt deleted file mode 100644 index 44450e2acb..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ -project(org_mitk_example_gui_qmlapplication) - -mitk_create_plugin( - EXPORT_DIRECTIVE ORG_MITK_EXAMPLE_GUI_QMLAPPLICATION - EXPORTED_INCLUDE_SUFFIXES src - MODULE_DEPENDS MitkQmlItems - PACKAGE_DEPENDS Qt5|Core+Quick - ) diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/documentation/doxygen/modules.dox b/Examples/Plugins/org.mitk.example.gui.qmlapplication/documentation/doxygen/modules.dox deleted file mode 100644 index 679738dc11..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/documentation/doxygen/modules.dox +++ /dev/null @@ -1,15 +0,0 @@ -/** - \defgroup org_mitk_gui_qt_stdmultiwidgeteditor org.mitk.gui.qt.stdmultiwidgeteditor - \ingroup MITKPlugins - - \brief Contributes a QmitkStdMultiWidget based render window editor to the MITK Workbench. -*/ - -/** - \defgroup org_mitk_gui_qt_stdmultiwidgeteditor_internal Internal - \ingroup org_mitk_gui_qt_stdmultiwidgeteditor - - \brief This subcategory includes the internal classes of the org.mitk.gui.qt.stdmultiwidgeteditor 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/Examples/Plugins/org.mitk.example.gui.qmlapplication/files.cmake b/Examples/Plugins/org.mitk.example.gui.qmlapplication/files.cmake deleted file mode 100644 index 4a847d016c..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/files.cmake +++ /dev/null @@ -1,37 +0,0 @@ -SET(SRC_CPP_FILES -) - -SET(INTERNAL_CPP_FILES - mitkQmlAppPluginActivator.cpp - QmitkQmlApplication.cpp - QmitkQmlWorkbench.cpp -) - -SET(MOC_H_FILES - src/internal/QmitkQmlApplication.h - src/internal/mitkQmlAppPluginActivator.h - src/internal/QmitkQmlWorkbench.h -) - -SET(CACHED_RESOURCE_FILES -# list of resource files which can be used by the plug-in -# system without loading the plug-ins shared library, -# for example the icon used in the menu and tabs for the -# plug-in views in the workbench - plugin.xml -) - -SET(QRC_FILES -# uncomment the following line if you want to use Qt resources - resources/org_mitk_example_gui_qmlapplication.qrc -) - -SET(CPP_FILES ) - -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/Examples/Plugins/org.mitk.example.gui.qmlapplication/manifest_headers.cmake b/Examples/Plugins/org.mitk.example.gui.qmlapplication/manifest_headers.cmake deleted file mode 100644 index 06b61a9b66..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/manifest_headers.cmake +++ /dev/null @@ -1,5 +0,0 @@ -set(Plugin-Name "MITK QML APPLICATION") -set(Plugin-Version "1.0.0") -set(Plugin-Vendor "DKFZ, Medical and Biological Informatics") -set(Plugin-ContactAddress "http://www.mitk.org") -set(Require-Plugin org.mitk.gui.qt.ext) diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/plugin.xml b/Examples/Plugins/org.mitk.example.gui.qmlapplication/plugin.xml deleted file mode 100644 index 577531b98b..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/plugin.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/MitkQuickRender.qml b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/MitkQuickRender.qml deleted file mode 100644 index 1cee6c0d8c..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/MitkQuickRender.qml +++ /dev/null @@ -1,99 +0,0 @@ -import QtQuick 2.4 -import QtQuick.Window 2.2 -import QtGraphicalEffects 1.0 -import Mitk.Views 1.0 -import "./views" as Mitk - -Window -{ - id: window; - - visible: true - width: 1000 - height: 600 - - minimumWidth: 800 - minimumHeight: 600 - - color: "#333333" - - Workbench - { - id: workbench - - anchors.fill: parent - - Mitk.Toolbar - { - id: toolbar - - anchors.left: parent.left - anchors.top: parent.top - anchors.right: parent.right - - color: "#333333" - height: 50 - - workbench: workbench - tooltipArea: footer - } - - MitkDataManager - { - id: dataManager - - anchors.left: parent.left - anchors.top: toolbar.bottom - anchors.bottom: sliderNavigator.top - tooltipArea: footer - - width: 240 - } - - MitkImageNavigator - { - id: sliderNavigator - - anchors.left: parent.left - anchors.bottom: footer.top - width: 240 - height: 120 - } - - MitkProperties - { - id: mitkproperties - - anchors.right: parent.right - anchors.top: toolbar.bottom - anchors.bottom: footer.top - tooltipArea: footer - - width: 0 - } - - MitkStdMultiItem - { - id: multiItem - - anchors.left: dataManager.right - anchors.top: toolbar.bottom - anchors.right: mitkproperties.left - anchors.bottom: footer.top - tooltipArea: footer - - color: "#222222" - } - - Mitk.Footer - { - id: footer - - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - - height: 20 - } - } -} diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/components/Button.qml b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/components/Button.qml deleted file mode 100644 index 3ce009b71e..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/components/Button.qml +++ /dev/null @@ -1,167 +0,0 @@ -import QtQuick 2.4 - -Item -{ - id: root - - property string source: "-"; - property string tooltip: "-"; - property color activeColor: "#282828"; - property color buttonColor: mouseArea.pressed||toggle ? activeColor : "#454545"; - property color topHighlightColor: mouseArea.pressed||toggle ? activeColor : "#515151"; - property color bottomHighlightColor: mouseArea.pressed||toggle ? activeColor : "#2C2C2C"; - property int radius: 3; - property bool rightEdges: false; - property bool leftEdges: false; - property bool isToggle: false; - property bool toggle: false; - property var tooltipArea; - - clip: true - - signal clicked() - - Rectangle - { - id: topHighlight - - color: root.topHighlightColor - x: button.x - y: button.y-1 - - width: parent.width - height: parent.height - - radius: root.radius - } - - Rectangle - { - id: bottomHighlight - - color: root.bottomHighlightColor - x: button.x - y: button.y+1 - - width: parent.width - height: parent.height - - radius: root.radius - } - - Rectangle - { - id: button - - height: root.height-2 - width: root.width - radius: root.radius - y: 1 - - Image - { - anchors.fill: parent - anchors.margins: 3 - - smooth: true - fillMode: Image.PreserveAspectFit - source: root.source - } - - color: root.buttonColor - - MouseArea - { - id: mouseArea - - anchors.fill: parent - hoverEnabled: true - - onClicked: - { - if (root.isToggle) - { - root.toggle = !root.toggle; - } - root.clicked() - } - - onEntered: - { - root.tooltipArea.text = root.tooltip - } - - onExited: - { - root.tooltipArea.text = "" - } - } - } - - Rectangle - { - id: rightEdge - - height: root.height - width: 4 - x: root.width - width - color: root.rightEdges ? root.buttonColor : "transparent" - - Rectangle - { - id: innerRightEdge1 - - anchors.top: parent.top - anchors.right: parent.right - anchors.left: parent.left - height: 1 - - color: root.rightEdges ? root.topHighlightColor : "transparent" - } - - Rectangle - { - id: innerRightEdge2 - - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.left: parent.left - height: 1 - - color: root.rightEdges ? root.bottomHighlightColor : "transparent" - } - } - - Rectangle - { - id: leftEdge - - height: root.height - width: 4 - color: root.leftEdges ? root.buttonColor : "transparent" - - Rectangle - { - id: innerLeftEdge1 - - anchors.top: parent.top - anchors.right: parent.right - anchors.left: parent.left - height: 1 - - color: root.leftEdges ? root.topHighlightColor : "transparent" - } - - Rectangle - { - id: innerLeftEdge2 - - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.left: parent.left - height: 1 - - color: root.leftEdges ? root.bottomHighlightColor : "transparent" - } - } -} \ No newline at end of file diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/components/Tooltip.qml b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/components/Tooltip.qml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/fonts/font-awesome/fontawesome-webfont.ttf b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/fonts/font-awesome/fontawesome-webfont.ttf deleted file mode 100644 index ed9372f8ea..0000000000 Binary files a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/fonts/font-awesome/fontawesome-webfont.ttf and /dev/null differ diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/datamanager.png b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/datamanager.png deleted file mode 100644 index fd5e0e63c0..0000000000 Binary files a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/datamanager.png and /dev/null differ diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-open.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-open.svg deleted file mode 100644 index 55e6177d2a..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-open.svg +++ /dev/null @@ -1,535 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Folder Icon Accept - 2005-01-31 - - - Jakub Steiner - - - - http://jimmac.musichall.cz - Active state - when files are being dragged to. - - - Novell, Inc. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-print.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-print.svg deleted file mode 100644 index 0b8837ba1d..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-print.svg +++ /dev/null @@ -1,532 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Print Document - - - Jakub Steiner - - - - http://jimmac.musichall.cz - - - document - lpr - print - local - laser - bubblejet - inkjet - print - output - cups - lpd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-save.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-save.svg deleted file mode 100644 index 2922c4331a..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/document-save.svg +++ /dev/null @@ -1,619 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Save - - - Jakub Steiner - - - - - hdd - hard drive - save - io - store - - - - - http://jimmac.musichall.cz - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-delete.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-delete.svg deleted file mode 100644 index 69281e4239..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-delete.svg +++ /dev/null @@ -1,896 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Delete - - - - Jakub Steiner - - - - - edit - delete - shredder - - - - - Novell, Inc. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-redo.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-redo.svg deleted file mode 100644 index bc4d52af7c..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-redo.svg +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Edit Redo - - - edit - redo - again - reapply - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-undo.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-undo.svg deleted file mode 100644 index d3cce96f1b..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/edit-undo.svg +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Edit Undo - - - edit - undo - revert - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-bottom.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-bottom.svg deleted file mode 100644 index 6cd7c7c71b..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-bottom.svg +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go to Bottom - - - go - bottom - - - - - Andreas Nilsson - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-down.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-down.svg deleted file mode 100644 index 95b82afd11..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-down.svg +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Down - - - go - lower - down - arrow - pointer - > - - - - - Andreas Nilsson - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-first.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-first.svg deleted file mode 100644 index 4e0b668f90..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-first.svg +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Previous - - - go - previous - left - arrow - pointer - < - - - - - Andreas Nilsson - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-home.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-home.svg deleted file mode 100644 index 4f16958844..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-home.svg +++ /dev/null @@ -1,445 +0,0 @@ - -image/svg+xmlGo HomeJakub Steinerhttp://jimmac.musichall.czhomereturngodefaultuserdirectoryTuomas Kuosmanen - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-last.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-last.svg deleted file mode 100644 index 00af499db7..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-last.svg +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Next - - - go - next - right - arrow - pointer - > - - - - - Andreas Nilsson - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-next.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-next.svg deleted file mode 100644 index 41e5990b8f..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-next.svg +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Next - - - go - next - right - arrow - pointer - > - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-previous.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-previous.svg deleted file mode 100644 index d5381de3a5..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-previous.svg +++ /dev/null @@ -1,854 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Previous - - - go - previous - left - arrow - pointer - < - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-top.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-top.svg deleted file mode 100644 index 4ee94d3c8f..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-top.svg +++ /dev/null @@ -1,974 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Top - - - go - highest - top - arrow - pointer - > - - - - - Andreas Nilsson - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-up.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-up.svg deleted file mode 100644 index 54263df3e5..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/go-up.svg +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - Go Up - - - go - higher - up - arrow - pointer - > - - - - - Andreas Nilsson - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/list-add.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/list-add.svg deleted file mode 100644 index 6eaed44811..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/list-add.svg +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Add - 2006-01-04 - - - Andreas Nilsson - - - http://tango-project.org - - - add - plus - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/list-remove.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/list-remove.svg deleted file mode 100644 index 5f109a05c3..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/list-remove.svg +++ /dev/null @@ -1,424 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Remove - 2006-01-04 - - - Andreas Nilsson - - - http://tango-project.org - - - remove - delete - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-pause.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-pause.svg deleted file mode 100644 index 8a434cabb1..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-pause.svg +++ /dev/null @@ -1,641 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Playback Pause - - - Lapo Calamandrei - - - - - - media - pause - playback - video - music - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-start.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-start.svg deleted file mode 100644 index 75616de46f..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-start.svg +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Playback Start - - - Lapo Calamandrei - - - - - - play - media - music - video - player - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-stop.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-stop.svg deleted file mode 100644 index 24bbfb52e5..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-playback-stop.svg +++ /dev/null @@ -1,651 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Playback Pause - - - Lapo Calamandrei - - - - - - media - stop - playback - video - music - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-record.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-record.svg deleted file mode 100644 index 85bbb98f6e..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-record.svg +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Record - - - Lapo Calamandrei - - - - - - media - player - record - music - sound - video - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-seek-backward.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-seek-backward.svg deleted file mode 100644 index 75f49f1a82..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-seek-backward.svg +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Seek Backward - - - Lapo Calamandrei - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-seek-forward.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-seek-forward.svg deleted file mode 100644 index b1b9fe950b..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-seek-forward.svg +++ /dev/null @@ -1,383 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Seek Forward - - - Lapo Calamandrei - - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-skip-backward.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-skip-backward.svg deleted file mode 100644 index fccd7762cd..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-skip-backward.svg +++ /dev/null @@ -1,1025 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Skip Backward - - - Lapo Calamandrei - - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-skip-forward.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-skip-forward.svg deleted file mode 100644 index 7c4d40054b..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/media-skip-forward.svg +++ /dev/null @@ -1,1013 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Media Skip Forward - - - Lapo Calamandrei - - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/properties.png b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/properties.png deleted file mode 100644 index 0a55fbdd74..0000000000 Binary files a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/properties.png and /dev/null differ diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/system-log-out.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/system-log-out.svg deleted file mode 100644 index adb9521340..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/system-log-out.svg +++ /dev/null @@ -1,457 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - System Log Out - - - log out - logout - exit - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-list-details.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-list-details.svg deleted file mode 100644 index 0adc28c5e9..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-list-details.svg +++ /dev/null @@ -1,767 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-list-icons.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-list-icons.svg deleted file mode 100644 index 48aa9bf139..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-list-icons.svg +++ /dev/null @@ -1,767 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-refresh.svg b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-refresh.svg deleted file mode 100644 index 565f6dadec..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/icons/view-refresh.svg +++ /dev/null @@ -1,393 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Jakub Steiner - - - http://jimmac.musichall.cz - - View Refresh - - - reload - refresh - view - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/org_mitk_example_gui_qmlapplication.qrc b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/org_mitk_example_gui_qmlapplication.qrc deleted file mode 100644 index 9cc557d542..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/org_mitk_example_gui_qmlapplication.qrc +++ /dev/null @@ -1,41 +0,0 @@ - - - icons/document-open.svg - icons/document-print.svg - icons/document-save.svg - icons/edit-delete.svg - icons/edit-redo.svg - icons/edit-undo.svg - icons/go-bottom.svg - icons/go-down.svg - icons/go-first.svg - icons/go-home.svg - icons/go-last.svg - icons/go-next.svg - icons/go-previous.svg - icons/go-top.svg - icons/go-up.svg - icons/list-add.svg - icons/list-remove.svg - icons/media-playback-pause.svg - icons/media-playback-start.svg - icons/media-playback-stop.svg - icons/media-record.svg - icons/media-seek-backward.svg - icons/media-seek-forward.svg - icons/media-skip-backward.svg - icons/media-skip-forward.svg - icons/system-log-out.svg - icons/view-list-details.svg - icons/view-list-icons.svg - icons/view-refresh.svg - icons/datamanager.png - icons/properties.png - MitkQuickRender.qml - components/Button.qml - components/Tooltip.qml - views/Footer.qml - views/Toolbar.qml - fonts/font-awesome/fontawesome-webfont.ttf - - diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/views/Footer.qml b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/views/Footer.qml deleted file mode 100644 index cbc90624ac..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/views/Footer.qml +++ /dev/null @@ -1,25 +0,0 @@ -import QtQuick 2.4 - -Item -{ - id: root - property alias text: label.text - - Rectangle - { - anchors.fill: parent - color: "#2E2E2E" - - Text - { - id: label - - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: 10 - color: "#ffffff" - font.pointSize: 10 - font.weight: Font.DemiBold - } - } -} \ No newline at end of file diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/views/Toolbar.qml b/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/views/Toolbar.qml deleted file mode 100644 index e0ebcd04c3..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/resources/views/Toolbar.qml +++ /dev/null @@ -1,128 +0,0 @@ -import QtQuick 2.4 -import "../components" as Mitk - -Rectangle -{ - id: windowbar - - property var workbench; - property var tooltipArea; - - Row - { - anchors.left: parent.left - anchors.leftMargin: 30 - anchors.verticalCenter: parent.verticalCenter - spacing: 1 - - Mitk.Button - { - width: 35 - height: 25 - rightEdges: true - - tooltip: "Open File" - tooltipArea: windowbar.tooltipArea - - source: "../icons/document-open.svg" - - onClicked: workbench.loadFiles() - } - - Mitk.Button - { - width: 35 - height: 25 - radius: 0 - - tooltip: "Save Project - not implemented" - tooltipArea: windowbar.tooltipArea - - source: "../icons/document-save.svg" - } - - Mitk.Button - { - width: 35 - height: 25 - leftEdges: true - - tooltip: "Close Project - not implemented" - tooltipArea: windowbar.tooltipArea - - source: "../icons/edit-delete.svg" - } - } - - Row - { - anchors.right: parent.right - anchors.rightMargin: 30 - anchors.verticalCenter: parent.verticalCenter - spacing: 1 - - Mitk.Button - { - width: 35 - height: 25 - rightEdges: true - - tooltip: "Toogle Data Manager" - tooltipArea: windowbar.tooltipArea - - source: "../icons/datamanager.png" - - isToggle: true - toggle: true - - onToggleChanged: - { - if(toggle) - { - dataManager.width = 240 - } - else - { - dataManager.width = 0 - } - } - } - - Mitk.Button - { - width: 35 - height: 25 - leftEdges: true - - tooltip: "Toogle Properties" - tooltipArea: windowbar.tooltipArea - - source: "../icons/properties.png" - - isToggle: true - toggle: false - - onToggleChanged: - { - if(toggle) - { - mitkproperties.width = 320 - } - else - { - mitkproperties.width = 0 - } - } - } - } - - Rectangle - { - color: "#242424" - anchors.left: parent.left - anchors.bottom: parent.bottom - anchors.right: parent.right - - height: 1 - } -} \ No newline at end of file diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlApplication.cpp b/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlApplication.cpp deleted file mode 100644 index aa3282342d..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlApplication.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/*=================================================================== - -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. - -===================================================================*/ - -#include "QmitkQmlApplication.h" - -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "QmitkQmlWorkbench.h" - -QmitkQmlApplication::QmitkQmlApplication() -{ -} - -QmitkQmlApplication::QmitkQmlApplication(const QmitkQmlApplication &other) : QObject(other.parent()) -{ - Q_UNUSED(other) - throw std::runtime_error("Copy constructor not implemented"); -} - -QVariant QmitkQmlApplication::Start(berry::IApplicationContext * /*context*/) -{ - QScopedPointer display(berry::PlatformUI::CreateDisplay()); - - QQmlApplicationEngine engine; - - QmlMitkWorkbench::initialize(engine); - engine.load(QmlMitkWorkbench::workbench); - - display->RunEventLoop(); - - return EXIT_OK; -} - -void QmitkQmlApplication::Stop() -{ -} diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlApplication.h b/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlApplication.h deleted file mode 100644 index 478ac7ea04..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlApplication.h +++ /dev/null @@ -1,36 +0,0 @@ -/*=================================================================== - -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. - -===================================================================*/ - -#ifndef QMITKQMLAPPLICATION_H -#define QMITKQMLAPPLICATION_H - -#include -#include - -class QmitkQmlApplication : public QObject, public berry::IApplication -{ - Q_OBJECT - Q_INTERFACES(berry::IApplication) - -public: - QmitkQmlApplication(); - QmitkQmlApplication(const QmitkQmlApplication &other); - - QVariant Start(berry::IApplicationContext *context); - void Stop(); -}; - -#endif diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlWorkbench.cpp b/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlWorkbench.cpp deleted file mode 100644 index d5a41e7e50..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlWorkbench.cpp +++ /dev/null @@ -1,83 +0,0 @@ -/*=================================================================== - - 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. - - ===================================================================*/ - -#include "QmitkQmlWorkbench.h" - -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include - -QmlMitkWorkbench *QmlMitkWorkbench::instance = nullptr; -mitk::DataStorage::Pointer QmlMitkWorkbench::storage = nullptr; -QUrl QmlMitkWorkbench::workbench = QUrl(QStringLiteral("qrc:/MitkQuickRender.qml")); - -QmlMitkWorkbench::QmlMitkWorkbench() -{ - instance = this; -} - -QmlMitkWorkbench::~QmlMitkWorkbench() -{ -} - -void QmlMitkWorkbench::loadFiles() -{ - QStringList fileNames = QFileDialog::getOpenFileNames(nullptr, "Load data", 0, QmitkIOUtil::GetFileOpenFilterString()); - - try - { - QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); - QmitkIOUtil::Load(fileNames, *QmlMitkWorkbench::storage); - mitk::RenderingManager::GetInstance()->InitializeViewsByBoundingObjects(QmlMitkWorkbench::storage); - } - catch (itk::ExceptionObject &ex) - { - MITK_ERROR << "Exception during file open: " << ex; - } - - QApplication::restoreOverrideCursor(); -} - -void QmlMitkWorkbench::initialize(QQmlEngine &engine) -{ - QmlMitkWorkbench::storage = mitk::StandaloneDataStorage::New().GetPointer(); - - QmlMitkSliderLevelWindowItem::create(engine, storage); - QmlMitkStdMultiItem::create(engine, storage); - QmlMitkDatamanager::create(engine, storage); - - QmlMitkTransferFunctionItem::create(); - QmlMitkProperties::create(engine); - QmlMitkImageNavigator::create(engine); - - qmlRegisterType("Mitk.Views", 1, 0, "Workbench"); -} diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlWorkbench.h b/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlWorkbench.h deleted file mode 100644 index 9fdbe6d088..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/QmitkQmlWorkbench.h +++ /dev/null @@ -1,46 +0,0 @@ -/*=================================================================== - - 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. - - ===================================================================*/ - -#ifndef QmlMitkWorkbench_h -#define QmlMitkWorkbench_h - -#include - -#include -#include -#include -#include -#include - -class QmlMitkWorkbench : public QQuickItem -{ - Q_OBJECT - -public: - static QmlMitkWorkbench *instance; - static mitk::DataStorage::Pointer storage; - static QUrl workbench; - - QmlMitkWorkbench(); - ~QmlMitkWorkbench(); - - static void initialize(QQmlEngine &engine); - -public slots: - void loadFiles(); -}; - -#endif diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/mitkQmlAppPluginActivator.cpp b/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/mitkQmlAppPluginActivator.cpp deleted file mode 100644 index e4ceeb9f21..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/mitkQmlAppPluginActivator.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/*=================================================================== - -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. - -===================================================================*/ - -#include "mitkQmlAppPluginActivator.h" -#include "QmitkQmlApplication.h" - -#include -#include - -#include - -#include -#include - -namespace mitk -{ - QmlAppPluginActivator *QmlAppPluginActivator::inst = 0; - - QmlAppPluginActivator::QmlAppPluginActivator() { inst = this; } - QmlAppPluginActivator::~QmlAppPluginActivator() {} - QmlAppPluginActivator *QmlAppPluginActivator::GetDefault() { return inst; } - void QmlAppPluginActivator::start(ctkPluginContext *context) - { - berry::AbstractUICTKPlugin::start(context); - - this->context = context; - - BERRY_REGISTER_EXTENSION_CLASS(QmitkQmlApplication, context); - } - - ctkPluginContext *QmlAppPluginActivator::GetPluginContext() const { return context; } -} - -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) -#include -Q_EXPORT_PLUGIN2(my_awesomeproject_exampleapp, mitk::QmlAppPluginActivator) -#endif diff --git a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/mitkQmlAppPluginActivator.h b/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/mitkQmlAppPluginActivator.h deleted file mode 100644 index 1bca8855c7..0000000000 --- a/Examples/Plugins/org.mitk.example.gui.qmlapplication/src/internal/mitkQmlAppPluginActivator.h +++ /dev/null @@ -1,50 +0,0 @@ -/*=================================================================== - -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. - -===================================================================*/ - -#ifndef MITK_EXAMPLEAPP_PLUGIN_ACTIVATOR_H_ -#define MITK_EXAMPLEAPP_PLUGIN_ACTIVATOR_H_ - -#include -#include - -namespace mitk -{ - class QmlAppPluginActivator : public berry::AbstractUICTKPlugin - { - Q_OBJECT -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) - Q_PLUGIN_METADATA(IID "org_mitk_example_gui_qmlapplication") -#endif - Q_INTERFACES(ctkPluginActivator) - - public: - QmlAppPluginActivator(); - ~QmlAppPluginActivator(); - - static QmlAppPluginActivator *GetDefault(); - - ctkPluginContext *GetPluginContext() const; - - void start(ctkPluginContext *); - - private: - static QmlAppPluginActivator *inst; - - ctkPluginContext *context; - }; -} - -#endif /* MITK_EXAMPLEAPP_PLUGIN_ACTIVATOR_H_ */ diff --git a/Examples/QuickRender/CMakeLists.txt b/Examples/QuickRender/CMakeLists.txt deleted file mode 100644 index 1b2d0a0699..0000000000 --- a/Examples/QuickRender/CMakeLists.txt +++ /dev/null @@ -1,63 +0,0 @@ -project(QuickRender) - -set(PROJECT_NAME QuickRender) -set(APP_NAME MitkQuickRender) - -# Plug-ins listed below will not be -# - added as a build-time dependency to the executable -# - listed in the provisioning file for the executable -# - installed if they are external plug-ins - -set(_exclude_plugins - org.mitk.diffusionimaging - org.mitk.simulation - org.mitk.gui.qt.cmdlinemodules - org.mitk.gui.qt.diffusionimagingapp - org.mitk.gui.qt.datamanager - org.mitk.gui.qt.datamanagerlight - org.mitk.gui.qt.properties - org.mitk.gui.qt.basicimageprocessing - org.mitk.gui.qt.dicom - org.mitk.gui.qt.diffusionimaging - org.mitk.gui.qt.dosevisualization - org.mitk.gui.qt.geometrytools - org.mitk.gui.qt.igtexamples - org.mitk.gui.qt.igttracking - org.mitk.gui.qt.igtlplugin - org.mitk.gui.qt.imagecropper - org.mitk.gui.qt.imagenavigator - org.mitk.gui.qt.viewnavigator - org.mitk.gui.qt.materialeditor - org.mitk.gui.qt.measurementtoolbox - org.mitk.gui.qt.moviemaker - org.mitk.gui.qt.pointsetinteraction - org.mitk.gui.qt.pointsetinteractionmultispectrum - org.mitk.gui.qt.python - org.mitk.gui.qt.registration - org.mitk.gui.qt.remeshing - org.mitk.gui.qt.segmentation - org.mitk.gui.qt.simulation - org.mitk.gui.qt.aicpregistration - org.mitk.gui.qt.toftutorial - org.mitk.gui.qt.tofutil - org.mitk.gui.qt.tubegraph - org.mitk.gui.qt.ugvisualization - org.mitk.gui.qt.ultrasound - org.mitk.gui.qt.volumevisualization - org.mitk.gui.qt.eventrecorder - org.mitk.gui.qt.xnat - org.mitk.gui.qt.spectrocamrecorder - org.mitk.gui.qt.classificationsegmentation -) - -mitkFunctionCreateBlueBerryApplication( - NAME ${APP_NAME} - DESCRIPTION "MITK - ${APP_NAME} Application" - EXCLUDE_PLUGINS ${_exclude_plugins} - NO_INSTALL -) - -mitk_use_modules(TARGET ${APP_NAME} - MODULES MitkAppUtil MitkQmlItems - PACKAGES Qt5|Core+Quick -) diff --git a/Examples/QuickRender/MitkQuickRender.cpp b/Examples/QuickRender/MitkQuickRender.cpp deleted file mode 100644 index b8e934ad9c..0000000000 --- a/Examples/QuickRender/MitkQuickRender.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/*=================================================================== - -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. - -===================================================================*/ - -#include -#include -#include -#include - -int main(int argc, char **argv) -{ - mitk::BaseApplication myApp(argc, argv); - myApp.setApplicationName("MITK QuickRender"); - myApp.setOrganizationName("DKFZ"); - - QStringList preloadLibs; - preloadLibs << "liborg_mitk_example_gui_qmlapplication"; - myApp.setPreloadLibraries(preloadLibs); - myApp.setProperty(mitk::BaseApplication::PROP_APPLICATION, "org.mitk.example.gui.qmlapplication"); - - QByteArray on("1"); - - qputenv("QML_BAD_GUI_RENDER_LOOP", on); - - return myApp.run(); -} diff --git a/Examples/QuickRender/MitkQuickRender.ini b/Examples/QuickRender/MitkQuickRender.ini deleted file mode 100644 index b73d1ab9b2..0000000000 --- a/Examples/QuickRender/MitkQuickRender.ini +++ /dev/null @@ -1,4 +0,0 @@ -BlueBerry.home=@BLUEBERRY_BINARY_DIR@ -BlueBerry.plugin_dirs=@MITK_MODULES_PLUGIN_OUTPUT_DIRS@ -BlueBerry.provisioning=@MITK_EXTAPP_PROVISIONING_FILE@ -BlueBerry.qtplugin_path=@BLUEBERRY_QTPLUGIN_PATH@ diff --git a/Examples/QuickRender/README.md b/Examples/QuickRender/README.md deleted file mode 100644 index 194010ce0b..0000000000 --- a/Examples/QuickRender/README.md +++ /dev/null @@ -1,51 +0,0 @@ -MITK Rendering with QML prototype -================================================= - -Summary ------------------- - -This mini-application "QuickRender" demonstrates how to build a Qt5 QML based -application that integrates MITK render windows. - -The `QuickRender` application is located in `Examples/QuickRender. -The following plugins are showcased in a QtQuick environment: - - DataManager - - Level/Window - - Transfer Function - - Image Navigator - -Interaction: - - mouse clicks place the cross-hair - - mouse scroll wheel moves to neighboring slice - - holding the right mouse button and moving up/down changes the zoom level - - holding the middle mouse button and mosing pans the scene (only when zoomed in) - - ![Screenshot](Screenshot.png=640x) - -Code Changes ------------------- - -- added class `QmlMitkStdMultiItem`, which replaces the `QmlMitkFourRenderWindowWidget` - - different approach to register QmlMitkRenderWindowItems - - resembles more the QmitkStdMultiWidget (e.g. storing planes...) - - added the respective qml file: MitkStdMultiItem.qml -- update class `QmlMitkRenderWindowItem`: - - removed interaction legacy - - updated interactions -- `QVTKQuickItem` now uses framebuffer objects to render external OpenGL context - -Build Instructions ------------------- - - - - install Qt 5.6 or 5.7.1 - - build MITK superbuild with - - `MITK_BUILD_EXAMPLES` variable switched to `ON` - - `MITK_USE_Qt5` switched to `ON` - - `MITK_USE_CTK` switched to `ON` - - `MITK_USE_BLUEBERRY` switched to `ON` - -Open Issues ------------------- - - - threading issue, since QtQuick's scene graph rendering will happen on a dedicated render thread - - cleaner, fuller interfaces for the two new widgets diff --git a/Examples/QuickRender/Screenshot.png b/Examples/QuickRender/Screenshot.png deleted file mode 100644 index 7b65b1596d..0000000000 Binary files a/Examples/QuickRender/Screenshot.png and /dev/null differ diff --git a/Examples/QuickRender/icons/icon.icns b/Examples/QuickRender/icons/icon.icns deleted file mode 100644 index 5afc942282..0000000000 Binary files a/Examples/QuickRender/icons/icon.icns and /dev/null differ diff --git a/Examples/QuickRender/icons/icon.ico b/Examples/QuickRender/icons/icon.ico deleted file mode 100644 index 27d4c9d1b9..0000000000 Binary files a/Examples/QuickRender/icons/icon.ico and /dev/null differ diff --git a/Examples/QuickRender/icons/icon.png b/Examples/QuickRender/icons/icon.png deleted file mode 100644 index 857e61aef3..0000000000 Binary files a/Examples/QuickRender/icons/icon.png and /dev/null differ diff --git a/Examples/QuickRender/icons/mitkWorkbench.rc b/Examples/QuickRender/icons/mitkWorkbench.rc deleted file mode 100644 index bb10963fb3..0000000000 --- a/Examples/QuickRender/icons/mitkWorkbench.rc +++ /dev/null @@ -1 +0,0 @@ -IDI_ICON1 ICON DISCARDABLE "icon.ico" \ No newline at end of file diff --git a/Examples/QuickRender/startMitkQuickRender.bat.in b/Examples/QuickRender/startMitkQuickRender.bat.in deleted file mode 100644 index d99fd1615f..0000000000 --- a/Examples/QuickRender/startMitkQuickRender.bat.in +++ /dev/null @@ -1,2 +0,0 @@ -PATH=@MITK_RUNTIME_PATH@;%PATH% -@VS_BUILD_TYPE@\MitkQuickRender.exe diff --git a/Examples/QuickRender/target_libraries.cmake b/Examples/QuickRender/target_libraries.cmake deleted file mode 100644 index b46eb8d577..0000000000 --- a/Examples/QuickRender/target_libraries.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# A list of plug-in targets which should be automatically enabled -# (or be available in external projects) for this application. - -set(target_libraries - org_mitk_gui_qml_extapplication -)