defuze.me  Client
playliststreeview.hpp
00001 #ifndef PLAYLISTSTREEVIEW_HPP
00002 #define PLAYLISTSTREEVIEW_HPP
00003 
00004 #include <qtreeview.h>
00005 #include "ui_playliststreeview.h"
00006 #include "playlistitem.hpp"
00007 
00008 namespace Playlists
00009 {
00010 class PlaylistsTreeView : public QTreeView, private Ui::PlaylistsTreeView
00011 {
00012     Q_OBJECT
00013 
00014 public:
00015     explicit PlaylistsTreeView(QWidget *parent = 0);
00016     void    dragEnterEvent(QDragEnterEvent *event);
00017     void    dragMoveEvent(QDragMoveEvent *event);
00018     void    dropEvent(QDropEvent *);
00019 
00020 protected:
00021     void changeEvent(QEvent *e);
00022 
00023 private:
00024     int     idToDelete;
00025     int     trackIndexToDelete;
00026 
00027 private slots:
00028     void deletePlaylist();
00029     void deleteTrack();
00030     void contextMenuEvent(QContextMenuEvent *);
00031 };
00032 }
00033 
00034 #endif // PLAYLISTSTREEVIEW_HPP