Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkNodeSelectionListItemWidget.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 
14 #ifndef QmitkNodeSelectionListItemWidget_h
15 #define QmitkNodeSelectionListItemWidget_h
16 
17 #include <MitkQtWidgetsExports.h>
18 
19 #include <ui_QmitkNodeSelectionListItemWidget.h>
20 
21 #include <QWidget>
22 
23 #include <mitkDataNode.h>
24 
26 {
27  Q_OBJECT
28 
29 public:
30  explicit QmitkNodeSelectionListItemWidget(QWidget* parent = nullptr);
32 
33  const mitk::DataNode* GetSelectedNode() const;
34 
35 public Q_SLOTS :
36  virtual void SetSelectedNode(const mitk::DataNode* node);
37  virtual void SetClearAllowed(bool allowed);
38 
39 signals:
40  void ClearSelection(const mitk::DataNode* node);
41 
42 protected Q_SLOTS:
43  void OnClearSelection();
44 
45 protected:
46  bool eventFilter(QObject *obj, QEvent *ev) override;
47 
48  Ui_QmitkNodeSelectionListItemWidget m_Controls;
49 };
50 
51 
52 #endif
QmitkNodeSelectionListItemWidget::m_Controls
Ui_QmitkNodeSelectionListItemWidget m_Controls
Definition: QmitkNodeSelectionListItemWidget.h:48
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkNodeSelectionListItemWidget
Definition: QmitkNodeSelectionListItemWidget.h:25
MitkQtWidgetsExports.h
mitkDataNode.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63