defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 #ifndef DROPLOCATION_HPP 00012 #define DROPLOCATION_HPP 00013 00014 #include "ui_droplocation.h" 00015 00016 namespace Gui 00017 { 00018 class Tab; 00019 00026 class DropLocation : public QWidget, private Ui::DropLocation 00027 { 00028 Q_OBJECT 00029 public: 00030 explicit DropLocation(Tab *tab, 00031 QPoint targetPosition, 00032 bool newColumn, 00033 QWidget *parent = 0); 00034 void dragEnterEvent(QDragEnterEvent *event); 00035 void dragLeaveEvent(QDragLeaveEvent *event); 00036 void dropEvent(QDropEvent *event); 00037 00038 protected: 00039 void changeEvent(QEvent *e); 00040 Tab *tab; 00041 QPoint targetPosition; 00042 bool newColumn; 00043 }; 00044 } 00045 00046 #endif // DROPLOCATION_HPP