Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkDataStorageSelectionHistoryInspector.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 QmitkDataStorageSelectionHistoryInspector_h
14 #define QmitkDataStorageSelectionHistoryInspector_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
19 #include <QSortFilterProxyModel>
21 #include <memory>
22 
23 namespace Ui
24 {
26 }
27 
32 {
33  Q_OBJECT
34 
35 public:
36  QmitkDataStorageSelectionHistoryInspector(QWidget* parent = nullptr);
38 
39  QAbstractItemView* GetView() override;
40  const QAbstractItemView* GetView() const override;
41 
42  void SetSelectionMode(SelectionMode mode) override;
43  SelectionMode GetSelectionMode() const override;
44 
45  static void AddNodeToHistory(mitk::DataNode* node);
46  static void ResetHistory();
47 
48  constexpr static const char* INSPECTOR_ID()
49  {
50  return "org.mitk.QmitkDataStorageSelectionHistoryInspector";
51  };
52 
53 protected:
54  void Initialize() override;
55 
57  std::unique_ptr<Ui::QmitkDataStorageSelectionHistoryInspector> m_Controls;
59 };
60 
61 #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 the last selected nodes (in chronologic order) in a data ...
static void AddNodeToHistory(mitk::DataNode *node)
const QAbstractItemView * GetView() const override
Returns a pointer to the view used to display the data storage content.
QmitkDataStorageSelectionHistoryInspector(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::QmitkDataStorageSelectionHistoryInspector > m_Controls
SelectionMode GetSelectionMode() const override
Returns the current selection mode of the inspector's item view.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72