00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-02-10 14:14:32 +0100 (Di, 10 Feb 2009) $ 00006 Version: $Revision: 16224 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QmitkExtDndFrameWidget_h 00019 #define QmitkExtDndFrameWidget_h 00020 00021 #ifdef __MINGW32__ 00022 // We need to inlclude winbase.h here in order to declare 00023 // atomic intrinsics like InterlockedIncrement correctly. 00024 // Otherwhise, they would be declared wrong within qatomic_windows.h . 00025 #include <windows.h> 00026 #endif 00027 00028 #include <QWidget> 00029 #include "mitkQtCommonExtDll.h" 00030 //drag&drop 00031 class QDragEnterEvent; 00032 class QDropEvent; 00033 class QMouseEvent; 00034 00035 class MITK_QT_COMMON_EXT_EXPORT QmitkExtDnDFrameWidget : public QWidget 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 QmitkExtDnDFrameWidget(QWidget *parent); 00041 00042 00043 private: 00044 void dragEnterEvent( QDragEnterEvent *event ); 00045 void dropEvent( QDropEvent * event ); 00046 00047 00048 }; 00049 00050 00051 #endif