]> git.sesse.net Git - vlc/blob - modules/gui/qt4/components/epg/EPGChannels.hpp
Qt: EPG: use connect() macros
[vlc] / modules / gui / qt4 / components / epg / EPGChannels.hpp
1 /*****************************************************************************
2  * EPGChannels.hpp : EPGChannels
3  ****************************************************************************
4  * Copyright © 2009-2010 VideoLAN
5  *
6  * Authors: Adrien Maglo <magsoft@videolan.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22
23 #ifndef EPGCHANNELS_HPP
24 #define EPGCHANNELS_HPP
25
26 #include <QWidget>
27
28 class EPGView;
29
30 class EPGChannels : public QWidget
31 {
32     Q_OBJECT
33 public:
34     EPGChannels( QWidget *parent, EPGView *m_epgView );
35
36 public slots:
37     void setOffset( int offset );
38     void addChannel( QString );
39     void removeChannel( QString );
40
41 protected:
42     virtual void paintEvent( QPaintEvent *event );
43
44 private:
45     EPGView *m_epgView;
46     int m_offset;
47     QStringList channelList;
48 };
49
50 #endif // EPGCHANNELS_HPP