Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkDnDDataNodeWidget.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 QMITKDNDDATANODEWIDGET_H
14 #define QMITKDNDDATANODEWIDGET_H
15 
16 #include "MitkQtWidgetsExports.h"
17 
18 // mitk core module
19 #include <mitkDataNode.h>
20 
21 // qt
22 #include <QFrame>
23 
24 class QDragEnterEvent;
25 class QDropEvent;
26 
36 {
37  Q_OBJECT
38 
39 public:
40 
41  QmitkDnDDataNodeWidget(QWidget* parent = nullptr);
42  ~QmitkDnDDataNodeWidget() override;
43 
44 Q_SIGNALS:
45 
50  void NodesDropped(std::vector<mitk::DataNode*> nodes);
51 
52 private:
53 
54  void dragEnterEvent(QDragEnterEvent* event) override;
55  void dragMoveEvent(QDragMoveEvent* event) override;
56  void dropEvent(QDropEvent* event) override;
57 
58 };
59 
60 #endif // QMITKDNDDATANODEWIDGET_H
#define MITKQTWIDGETS_EXPORT
A drag &#39;n&#39; drop widget (QFrame) that checks the mime data of the incoming event. If the drag event is...