Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.h b/core/multimedia/opieplayer/playlistwidget.h index 5b05f11..46272a0 100644 --- a/core/multimedia/opieplayer/playlistwidget.h +++ b/core/multimedia/opieplayer/playlistwidget.h | |||
@@ -14,24 +14,27 @@ | |||
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_WIDGET_H | 20 | #ifndef PLAY_LIST_WIDGET_H |
21 | #define PLAY_LIST_WIDGET_H | 21 | #define PLAY_LIST_WIDGET_H |
22 | 22 | ||
23 | #include <qmainwindow.h> | 23 | #include <qmainwindow.h> |
24 | #include <qpe/applnk.h> | 24 | #include <qpe/applnk.h> |
25 | #include <qtabwidget.h> | 25 | #include <qtabwidget.h> |
26 | #include <fileselector.h> | ||
27 | #include <qpushbutton.h> | ||
28 | |||
26 | /* #include <qtimer.h> */ | 29 | /* #include <qtimer.h> */ |
27 | 30 | ||
28 | 31 | ||
29 | class PlayListWidgetPrivate; | 32 | class PlayListWidgetPrivate; |
30 | class Config; | 33 | class Config; |
31 | class QListViewItem; | 34 | class QListViewItem; |
32 | class QListView; | 35 | class QListView; |
33 | class QPoint; | 36 | class QPoint; |
34 | class QAction; | 37 | class QAction; |
35 | class QLabel; | 38 | class QLabel; |
36 | 39 | ||
37 | class PlayListWidget : public QMainWindow { | 40 | class PlayListWidget : public QMainWindow { |
@@ -40,40 +43,43 @@ public: | |||
40 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 43 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
41 | ~PlayListWidget(); | 44 | ~PlayListWidget(); |
42 | QTabWidget * tabWidget; | 45 | QTabWidget * tabWidget; |
43 | QAction *fullScreenButton, *scaleButton; | 46 | QAction *fullScreenButton, *scaleButton; |
44 | DocLnkSet files; | 47 | DocLnkSet files; |
45 | DocLnkSet vFiles; | 48 | DocLnkSet vFiles; |
46 | QListView *audioView, *videoView, *playlistView; | 49 | QListView *audioView, *videoView, *playlistView; |
47 | QLabel *libString; | 50 | QLabel *libString; |
48 | // retrieve the current playlist entry (media file link) | 51 | // retrieve the current playlist entry (media file link) |
49 | const DocLnk *current(); | 52 | const DocLnk *current(); |
50 | void useSelectedDocument(); | 53 | void useSelectedDocument(); |
51 | /* QTimer * menuTimer; */ | 54 | /* QTimer * menuTimer; */ |
52 | 55 | FileSelector* playLists; | |
56 | QPushButton *tbDeletePlaylist; | ||
53 | public slots: | 57 | public slots: |
54 | void setDocument( const QString& fileref ); | 58 | void setDocument( const QString& fileref ); |
55 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 59 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
56 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 60 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
57 | void addToSelection( QListViewItem*, const QPoint&,int ); // Add a media file to the playlist | ||
58 | void setActiveWindow(); // need to handle this to show the right view | 61 | void setActiveWindow(); // need to handle this to show the right view |
59 | void setPlaylist( bool ); // Show/Hide the playlist | 62 | void setPlaylist( bool ); // Show/Hide the playlist |
60 | void setView( char ); | 63 | void setView( char ); |
61 | void clearList(); | 64 | void clearList(); |
62 | void addAllToList(); | 65 | void addAllToList(); |
63 | void addAllMusicToList(); | 66 | void addAllMusicToList(); |
64 | void addAllVideoToList(); | 67 | void addAllVideoToList(); |
65 | void saveList(); // Save the playlist | 68 | void saveList(); // Save the playlist |
66 | void loadList(); // Load a playlist | 69 | void loadList( const DocLnk &); // Load a playlist |
67 | void playIt( QListViewItem *); | 70 | void playIt( QListViewItem *); |
71 | void fauxPlay(QListViewItem *); | ||
72 | void btnPlay(bool); | ||
73 | void deletePlaylist(); | ||
68 | bool first(); | 74 | bool first(); |
69 | bool last(); | 75 | bool last(); |
70 | bool next(); | 76 | bool next(); |
71 | bool prev(); | 77 | bool prev(); |
72 | void addSelected(); | 78 | void addSelected(); |
73 | void removeSelected(); | 79 | void removeSelected(); |
74 | void tabChanged(QWidget*); | 80 | void tabChanged(QWidget*); |
75 | /* void setFullScreen(); */ | 81 | /* void setFullScreen(); */ |
76 | /* void setScaled(); */ | 82 | /* void setScaled(); */ |
77 | protected: | 83 | protected: |
78 | /* void contentsMousePressEvent( QMouseEvent * e ); */ | 84 | /* void contentsMousePressEvent( QMouseEvent * e ); */ |
79 | /* void contentsMouseReleaseEvent( QMouseEvent * e ); */ | 85 | /* void contentsMouseReleaseEvent( QMouseEvent * e ); */ |