Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkDataStorageTreeInspector.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QMITKDATASTORAGETREEINSPECTOR_H
14 #define QMITKDATASTORAGETREEINSPECTOR_H
15 
16 #include <MitkQtWidgetsExports.h>
17 
20 #include <QSortFilterProxyModel>
21 
22 #include "ui_QmitkDataStorageTreeInspector.h"
23 
24 /*
25 * @brief This is an inspector that offers a simple tree view on a data storage.
26 * Something like the "data manager plugin", but in simple/light (with less functionality)
27 * It uses the QmitkDataStorageSimpleTreeModel.
28 */
30 {
31  Q_OBJECT
32 
33 public:
34  QmitkDataStorageTreeInspector(QWidget* parent = nullptr);
35 
36  QAbstractItemView* GetView() override;
37  const QAbstractItemView* GetView() const override;
38 
39  void SetSelectionMode(SelectionMode mode) override;
40  SelectionMode GetSelectionMode() const override;
41 
42 protected:
43  void Initialize() override;
44  void OnModelReset();
45 
47  Ui_QmitkDataStorageTreeInspector m_Controls;
49 };
50 
51 #endif // QMITKDATASTORAGETREEINSPECTOR_H
virtual QAbstractItemView * GetView()=0
virtual SelectionMode GetSelectionMode() const =0
#define MITKQTWIDGETS_EXPORT
Ui_QmitkDataStorageTreeInspector m_Controls
virtual void SetSelectionMode(SelectionMode mode)=0
QAbstractItemView::SelectionMode SelectionMode
This abstract class is a convenient base class for easy implementation of widgets that offer a specif...
QmitkSimpleTextOverlayWidget * m_Overlay
QmitkAbstractDataStorageModel * m_StorageModel