Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
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
18
#include "
QmitkAbstractDataStorageInspector.h
"
19
#include <QSortFilterProxyModel>
20
#include "
QmitkSimpleTextOverlayWidget.h
"
21
22
#include "ui_QmitkDataStorageSelectionHistoryInspector.h"
23
24
/*
25
* @brief This is an inspector that offers a simple list view on the last selected nodes (in chronologic order) in a data storage.
26
*/
27
class
MITKQTWIDGETS_EXPORT
QmitkDataStorageSelectionHistoryInspector
:
public
QmitkAbstractDataStorageInspector
28
{
29
Q_OBJECT
30
31
public
:
32
QmitkDataStorageSelectionHistoryInspector
(QWidget* parent =
nullptr
);
33
34
QAbstractItemView*
GetView
()
override
;
35
const
QAbstractItemView*
GetView
()
const override
;
36
37
void
SetSelectionMode
(
SelectionMode
mode)
override
;
38
SelectionMode
GetSelectionMode
()
const override
;
39
40
static
void
AddNodeToHistory(
mitk::DataNode
* node);
41
static
void
ResetHistory();
42
43
constexpr
static
const
char
*
INSPECTOR_ID
()
44
{
45
return
"org.mitk.QmitkDataStorageSelectionHistoryInspector"
;
46
};
47
48
protected
:
49
void
Initialize
()
override
;
50
51
QmitkAbstractDataStorageModel
*
m_StorageModel
;
52
Ui_QmitkDataStorageSelectionHistoryInspector
m_Controls
;
53
QmitkSimpleTextOverlayWidget
*
m_Overlay
;
54
};
55
56
#endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition:
MitkQtWidgetsExports.h:15
QmitkDataStorageSelectionHistoryInspector::m_StorageModel
QmitkAbstractDataStorageModel * m_StorageModel
Definition:
QmitkDataStorageSelectionHistoryInspector.h:51
QmitkSimpleTextOverlayWidget
Definition:
QmitkSimpleTextOverlayWidget.h:22
QmitkDataStorageSelectionHistoryInspector::INSPECTOR_ID
constexpr static const char * INSPECTOR_ID()
Definition:
QmitkDataStorageSelectionHistoryInspector.h:43
QmitkAbstractDataStorageInspector::SelectionMode
QAbstractItemView::SelectionMode SelectionMode
Definition:
QmitkAbstractDataStorageInspector.h:68
QmitkDataStorageSelectionHistoryInspector::m_Overlay
QmitkSimpleTextOverlayWidget * m_Overlay
Definition:
QmitkDataStorageSelectionHistoryInspector.h:53
QmitkSimpleTextOverlayWidget.h
QmitkAbstractDataStorageInspector::Initialize
virtual void Initialize()=0
MitkQtWidgetsExports.h
QmitkAbstractDataStorageInspector
This abstract class is a convenient base class for easy implementation of widgets that offer a specif...
Definition:
QmitkAbstractDataStorageInspector.h:32
QmitkAbstractDataStorageInspector.h
QmitkAbstractDataStorageInspector::GetView
virtual QAbstractItemView * GetView()=0
QmitkAbstractDataStorageInspector::GetSelectionMode
virtual SelectionMode GetSelectionMode() const =0
QmitkDataStorageSelectionHistoryInspector
Definition:
QmitkDataStorageSelectionHistoryInspector.h:27
QmitkAbstractDataStorageModel
Definition:
QmitkAbstractDataStorageModel.h:40
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
QmitkAbstractDataStorageInspector::SetSelectionMode
virtual void SetSelectionMode(SelectionMode mode)=0
QmitkDataStorageSelectionHistoryInspector::m_Controls
Ui_QmitkDataStorageSelectionHistoryInspector m_Controls
Definition:
QmitkDataStorageSelectionHistoryInspector.h:52
src
MITK
Modules
QtWidgets
include
QmitkDataStorageSelectionHistoryInspector.h
Generated on Mon Dec 23 2024 02:13:23 for Medical Imaging Interaction Toolkit by
1.8.17