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.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.h b/core/multimedia/opieplayer/playlistwidget.h
index e72551b..effc600 100644
--- a/core/multimedia/opieplayer/playlistwidget.h
+++ b/core/multimedia/opieplayer/playlistwidget.h
@@ -22,81 +22,86 @@
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 <qpe/fileselector.h> 26#include <qpe/fileselector.h>
27#include <qpushbutton.h> 27#include <qpushbutton.h>
28 28
29/* #include <qtimer.h> */ 29/* #include <qtimer.h> */
30 30
31 31
32class PlayListWidgetPrivate; 32class PlayListWidgetPrivate;
33class Config; 33class Config;
34class QListViewItem; 34class QListViewItem;
35class QListView; 35class QListView;
36class QPoint; 36class QPoint;
37class QAction; 37class QAction;
38class QLabel; 38class QLabel;
39 39
40class PlayListWidget : public QMainWindow { 40class PlayListWidget : public QMainWindow {
41 Q_OBJECT 41 Q_OBJECT
42public: 42public:
43 PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); 43 PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 );
44 ~PlayListWidget(); 44 ~PlayListWidget();
45 QTabWidget * tabWidget; 45 QTabWidget * tabWidget;
46 QAction *fullScreenButton, *scaleButton; 46 QAction *fullScreenButton, *scaleButton;
47 DocLnkSet files; 47 DocLnkSet files;
48 DocLnkSet vFiles; 48 DocLnkSet vFiles;
49 QListView *audioView, *videoView, *playlistView; 49 QListView *audioView, *videoView, *playlistView;
50 QLabel *libString; 50 QLabel *libString;
51 bool fromSetDocument;
52 QString setDocFileRef;
51 // retrieve the current playlist entry (media file link) 53 // retrieve the current playlist entry (media file link)
52 const DocLnk *current(); 54 const DocLnk *current();
53 void useSelectedDocument(); 55 void useSelectedDocument();
54/* QTimer * menuTimer; */ 56/* QTimer * menuTimer; */
55 FileSelector* playLists; 57 FileSelector* playLists;
56 QPushButton *tbDeletePlaylist; 58 QPushButton *tbDeletePlaylist;
57public slots: 59public slots:
58 void setDocument( const QString& fileref ); 60 void setDocument( const QString& fileref );
59 void addToSelection( const DocLnk& ); // Add a media file to the playlist 61 void addToSelection( const DocLnk& ); // Add a media file to the playlist
60 void addToSelection( QListViewItem* ); // Add a media file to the playlist 62 void addToSelection( QListViewItem* ); // Add a media file to the playlist
61 void setActiveWindow(); // need to handle this to show the right view 63 void setActiveWindow(); // need to handle this to show the right view
62 void setPlaylist( bool ); // Show/Hide the playlist 64 void setPlaylist( bool ); // Show/Hide the playlist
63 void setView( char ); 65 void setView( char );
64 void clearList(); 66 void clearList();
65 void addAllToList(); 67 void addAllToList();
66 void addAllMusicToList(); 68 void addAllMusicToList();
67 void addAllVideoToList(); 69 void addAllVideoToList();
68 void saveList(); // Save the playlist 70 void saveList(); // Save the playlist
69 void loadList( const DocLnk &); // Load a playlist 71 void loadList( const DocLnk &); // Load a playlist
70 void playIt( QListViewItem *); 72 void playIt( QListViewItem *);
71 void fauxPlay(QListViewItem *); 73
72 void btnPlay(bool); 74 void btnPlay(bool);
73 void deletePlaylist(); 75 void deletePlaylist();
74 bool first(); 76 bool first();
75 bool last(); 77 bool last();
76 bool next(); 78 bool next();
77 bool prev(); 79 bool prev();
78 void addSelected(); 80 void addSelected();
79 void removeSelected(); 81 void removeSelected();
80 void tabChanged(QWidget*); 82 void tabChanged(QWidget*);
83 void viewPressed( int, QListViewItem *, const QPoint&, int);
84 void playlistViewPressed( int, QListViewItem *, const QPoint&, int);
85 void playSelected();
81/* void setFullScreen(); */ 86/* void setFullScreen(); */
82/* void setScaled(); */ 87/* void setScaled(); */
83protected: 88protected:
84/* void contentsMousePressEvent( QMouseEvent * e ); */ 89/* void contentsMousePressEvent( QMouseEvent * e ); */
85/* void contentsMouseReleaseEvent( QMouseEvent * e ); */ 90/* void contentsMouseReleaseEvent( QMouseEvent * e ); */
86 91
87private: 92private:
88 void initializeStates(); 93 void initializeStates();
89 void readConfig( Config& cfg ); 94 void readConfig( Config& cfg );
90 void writeConfig( Config& cfg ) const; 95 void writeConfig( Config& cfg ) const;
91 PlayListWidgetPrivate *d; // Private implementation data 96 PlayListWidgetPrivate *d; // Private implementation data
92 97
93protected slots: 98protected slots:
94/* void cancelMenuTimer(); */ 99/* void cancelMenuTimer(); */
95/* void showFileMenu(); */ 100/* void showFileMenu(); */
96 101
97 102
98}; 103};
99 104
100 105
101#endif // PLAY_LIST_WIDGET_H 106#endif // PLAY_LIST_WIDGET_H
102 107