summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/playlistwidget.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.h12
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
29class PlayListWidgetPrivate; 32class PlayListWidgetPrivate;
30class Config; 33class Config;
31class QListViewItem; 34class QListViewItem;
32class QListView; 35class QListView;
33class QPoint; 36class QPoint;
34class QAction; 37class QAction;
35class QLabel; 38class QLabel;
36 39
37class PlayListWidget : public QMainWindow { 40class 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;
53public slots: 57public 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(); */
77protected: 83protected:
78/* void contentsMousePressEvent( QMouseEvent * e ); */ 84/* void contentsMousePressEvent( QMouseEvent * e ); */
79/* void contentsMouseReleaseEvent( QMouseEvent * e ); */ 85/* void contentsMouseReleaseEvent( QMouseEvent * e ); */