Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkDataStorageListInspector.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 QmitkDataStorageListInspector_h
14 #define QmitkDataStorageListInspector_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
20 #include <memory>
21 
22 namespace Ui
23 {
25 }
26 
31 {
32  Q_OBJECT
33 
34 public:
35  QmitkDataStorageListInspector(QWidget* parent = nullptr);
37 
38  QAbstractItemView* GetView() override;
39  const QAbstractItemView* GetView() const override;
40 
41  void SetSelectionMode(SelectionMode mode) override;
42  SelectionMode GetSelectionMode() const override;
43 
44 protected:
45  void Initialize() override;
46  void OnModelReset();
47 
49  std::unique_ptr<Ui::QmitkDataStorageListInspector> m_Controls;
51 };
52 
53 #endif
#define MITKQTWIDGETS_EXPORT
Abstract base class for widgets that inspect the contents of a DataStorage.
QAbstractItemView::SelectionMode SelectionMode
Convenience type alias for the Qt selection mode.
Abstract base class extending QAbstractItemModel for DataStorage-backed models.
Inspector that offers a simple list view on a data storage.
QmitkAbstractDataStorageModel * m_StorageModel
const QAbstractItemView * GetView() const override
Returns a pointer to the view used to display the data storage content.
~QmitkDataStorageListInspector() override
SelectionMode GetSelectionMode() const override
Returns the current selection mode of the inspector's item view.
QmitkDataStorageListInspector(QWidget *parent=nullptr)
QAbstractItemView * GetView() override
Returns a pointer to the view used to display the data storage content.
void SetSelectionMode(SelectionMode mode) override
Sets the selection mode of the inspector's item view.
std::unique_ptr< Ui::QmitkDataStorageListInspector > m_Controls
QmitkSimpleTextOverlayWidget * m_Overlay