Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkDnDFrameWidget.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkDndFrameWidget_h
18 #define QmitkDndFrameWidget_h
19 
20 #ifdef __MINGW32__
21 // We need to inlclude winbase.h here in order to declare
22 // atomic intrinsics like InterlockedIncrement correctly.
23 // Otherwhise, they would be declared wrong within qatomic_windows.h .
24 #include <windows.h>
25 #endif
26 
27 #include <QWidget>
29 //drag&drop
30 class QDragEnterEvent;
31 class QDropEvent;
32 class QMouseEvent;
33 
34 class QmitkDnDFrameWidgetPrivate;
35 
44 class MITK_QT_COMMON QmitkDnDFrameWidget : public QWidget
45 {
46  Q_OBJECT
47 
48 public:
49  QmitkDnDFrameWidget(QWidget *parent);
50  virtual ~QmitkDnDFrameWidget();
51 
52 private:
53  void dragEnterEvent( QDragEnterEvent *event ) override;
54  void dropEvent( QDropEvent * event ) override;
55 
56  const QScopedPointer<QmitkDnDFrameWidgetPrivate> d;
57 
58 };
59 
60 
61 #endif
Enables loading data into a MITK application via Drag'n Drop.
#define MITK_QT_COMMON