Diffstat (limited to 'core/multimedia/opieplayer/playlistselection.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistselection.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.h b/core/multimedia/opieplayer/playlistselection.h index 22d3c74..57e10f1 100644 --- a/core/multimedia/opieplayer/playlistselection.h +++ b/core/multimedia/opieplayer/playlistselection.h | |||
@@ -11,26 +11,24 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef PLAY_LIST_SELECTION_H | 20 | #ifndef PLAY_LIST_SELECTION_H |
21 | #define PLAY_LIST_SELECTION_H | 21 | #define PLAY_LIST_SELECTION_H |
22 | 22 | ||
23 | |||
24 | |||
25 | #include <qlist.h> | 23 | #include <qlist.h> |
26 | #include <qlistview.h> | 24 | #include <qlistview.h> |
27 | #include <qpe/applnk.h> | 25 | #include <qpe/applnk.h> |
28 | 26 | ||
29 | 27 | ||
30 | class PlayListSelection : public QListView { | 28 | class PlayListSelection : public QListView { |
31 | Q_OBJECT | 29 | Q_OBJECT |
32 | public: | 30 | public: |
33 | PlayListSelection( QWidget *parent, const char *name=0 ); | 31 | PlayListSelection( QWidget *parent, const char *name=0 ); |
34 | ~PlayListSelection(); | 32 | ~PlayListSelection(); |
35 | 33 | ||
36 | const DocLnk *current(); // retrieve the current playlist entry (media file link) | 34 | const DocLnk *current(); // retrieve the current playlist entry (media file link) |
@@ -38,26 +36,26 @@ public: | |||
38 | public slots: | 36 | public slots: |
39 | void addToSelection( const DocLnk & ); // Add a media file to the playlist | 37 | void addToSelection( const DocLnk & ); // Add a media file to the playlist |
40 | void removeSelected(); // Remove a media file from the playlist | 38 | void removeSelected(); // Remove a media file from the playlist |
41 | void moveSelectedUp(); // Move the media file up the playlist so it is played earlier | 39 | void moveSelectedUp(); // Move the media file up the playlist so it is played earlier |
42 | void moveSelectedDown(); // Move the media file down the playlist so it is played later | 40 | void moveSelectedDown(); // Move the media file down the playlist so it is played later |
43 | bool prev(); | 41 | bool prev(); |
44 | bool next(); | 42 | bool next(); |
45 | bool first(); | 43 | bool first(); |
46 | bool last(); | 44 | bool last(); |
47 | 45 | ||
48 | protected: | 46 | protected: |
49 | virtual void contentsMouseMoveEvent(QMouseEvent *); | 47 | virtual void contentsMouseMoveEvent(QMouseEvent *); |
50 | #ifdef USE_PLAYLIST_BACKGROUND | 48 | /* #ifdef USE_PLAYLIST_BACKGROUND */ |
51 | virtual void drawBackground( QPainter *p, const QRect &r ); | 49 | virtual void drawBackground( QPainter *p, const QRect &r ); |
52 | virtual void paintEmptyArea( QPainter *p, const QRect &r ) { drawBackground( p, r ); }; | 50 | virtual void paintEmptyArea( QPainter *p, const QRect &r ) { drawBackground( p, r ); }; |
53 | #endif | 51 | /* #endif */ |
54 | 52 | ||
55 | private: | 53 | private: |
56 | QList<DocLnk> selectedList; | 54 | QList<DocLnk> selectedList; |
57 | const DocLnk *lnk; | 55 | const DocLnk *lnk; |
58 | }; | 56 | }; |
59 | 57 | ||
60 | 58 | ||
61 | #endif // PLAY_LIST_SELECTION_H | 59 | #endif // PLAY_LIST_SELECTION_H |
62 | 60 | ||
63 | 61 | ||