defuze.me  Client
playqueuedelegate.hpp
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 PLAYQUEUEDELEGATE_HPP
00012 #define PLAYQUEUEDELEGATE_HPP
00013 
00014 #include <QStyledItemDelegate>
00015 #include "plugins.hpp"
00016 #include "playqueue.hpp"
00017 
00018 namespace Queue
00019 {
00022     class PlayQueueDelegate : public QStyledItemDelegate
00023     {
00024         Q_OBJECT
00025     public:
00026         explicit    PlayQueueDelegate(PlayQueue *queue);
00027         void        paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
00028         QSize       sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
00029 
00030     signals:
00031 
00032     public slots:
00033     private:
00034         QPolygon    positionPolygon, timePolygon;
00035         PlayQueue   *queue;
00036     };
00037 }
00038 
00039 #endif // PLAYQUEUEDELEGATE_HPP