diff --git a/Plugins/org.mitk.gui.qt.datamanagerlight/plugin.xml b/Plugins/org.mitk.gui.qt.datamanagerlight/plugin.xml index 1bcd4dc843..0e7ca74a82 100644 --- a/Plugins/org.mitk.gui.qt.datamanagerlight/plugin.xml +++ b/Plugins/org.mitk.gui.qt.datamanagerlight/plugin.xml @@ -1,16 +1,16 @@ - - + - + diff --git a/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.cpp b/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.cpp index 415e08b299..80780d18c4 100644 --- a/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.cpp +++ b/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.cpp @@ -1,35 +1,56 @@ /*=================================================================== 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 "QmitkDataManagerLightView.h" +#include const std::string QmitkDataManagerLightView::VIEW_ID = "org.mitk.views.datamanagerlight"; +struct QmitkDataManagerLightViewData +{ + +}; + QmitkDataManagerLightView::QmitkDataManagerLightView() + : d( new QmitkDataManagerLightViewData ) { } QmitkDataManagerLightView::~QmitkDataManagerLightView() { + delete d; } void QmitkDataManagerLightView::CreateQtPartControl(QWidget* parent) { + + QPushButton* loadButton = new QPushButton("Load image"); + + QListWidget* listWidget = new QListWidget; + + QLabel* imageInfoLabel = new QLabel("Unknown name"); + + QGridLayout* layout = new QGridLayout; + layout->addWidget( loadButton, 0,0 ); + layout->addWidget( listWidget, 1,0 ); + layout->addWidget( imageInfoLabel, 2,0 ); + + parent->setLayout(layout); } void QmitkDataManagerLightView::SetFocus() { } diff --git a/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.h b/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.h index 3eb7fe7431..2abc06b9f2 100644 --- a/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.h +++ b/Plugins/org.mitk.gui.qt.datamanagerlight/src/internal/QmitkDataManagerLightView.h @@ -1,59 +1,61 @@ /*=================================================================== 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 QmitkDataManagerLightView_H_ #define QmitkDataManagerLightView_H_ /// Qmitk #include -#include + +struct QmitkDataManagerLightViewData; /// -/// \ingroup org_mitk_gui_qt_datamanager_internal -/// -/// \brief A View class that can show all data tree nodes of a certain DataStorage +/// \brief Data management view with reduced functions ("light") /// -class MITK_QT_DATAMANAGER QmitkDataManagerLightView : public QmitkAbstractView +class QmitkDataManagerLightView : public QmitkAbstractView { Q_OBJECT public: static const std::string VIEW_ID; // = "org.mitk.extapp.defaultperspective" /// /// \brief Standard ctor. /// QmitkDataManagerLightView(); /// /// \brief Standard dtor. /// virtual ~QmitkDataManagerLightView(); protected: /// /// \brief Create the view here. /// virtual void CreateQtPartControl(QWidget* parent); /// /// /// void SetFocus(); + +private: + QmitkDataManagerLightViewData* d; }; #endif /*QmitkDataManagerLightView_H_*/