defuze.me  Client
liststreeview.hpp
00001 /**************************************************************************
00002 ** defuze.me Epitech Innovative Project
00003 **
00004 ** Copyright 2010-2012
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 LISTSTREEVIEW_HPP
00012 #define LISTSTREEVIEW_HPP
00013 
00014 #include <QTreeView>
00015 #include <QDragMoveEvent>
00016 
00017 namespace Lists
00018 {
00019     class ListsPlugin;
00020 
00021     class ListsTreeView : public QTreeView
00022     {
00023         Q_OBJECT
00024     public:
00025         explicit ListsTreeView(QWidget *parent = 0);
00026         void    dragEnterEvent(QDragEnterEvent *event);
00027         void    dragMoveEvent(QDragMoveEvent *event);
00028         void dropEvent(QDropEvent *event);
00029         void keyReleaseEvent(QKeyEvent *event);
00030         void setListsPlugin(ListsPlugin *lists);
00031 
00032     signals:
00033         void deleteElements();
00034 
00035     public slots:
00036     private:
00037         ListsPlugin *lists;
00038 
00039     };
00040 
00041 }
00042 
00043 #endif // LISTSTREEVIEW_HPP