Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index e44096b..fdfa666 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -1,44 +1,47 @@ | |||
1 | 1 | ||
2 | #ifndef PLAY_LIST_WIDGET_H | 2 | #ifndef PLAY_LIST_WIDGET_H |
3 | #define PLAY_LIST_WIDGET_H | 3 | #define PLAY_LIST_WIDGET_H |
4 | 4 | ||
5 | #include <qmainwindow.h> | 5 | #include <qmainwindow.h> |
6 | #include <qpe/applnk.h> | 6 | #include <qpe/applnk.h> |
7 | #include <qtabwidget.h> | 7 | #include <qtabwidget.h> |
8 | #include <qpe/fileselector.h> | 8 | #include <qpe/fileselector.h> |
9 | #include <qpushbutton.h> | 9 | #include <qpushbutton.h> |
10 | #include <qpopupmenu.h> | ||
10 | 11 | ||
11 | /* #include <qtimer.h> */ | 12 | /* #include <qtimer.h> */ |
12 | 13 | ||
13 | 14 | ||
14 | class PlayListWidgetPrivate; | 15 | class PlayListWidgetPrivate; |
15 | class Config; | 16 | class Config; |
16 | class QListViewItem; | 17 | class QListViewItem; |
17 | class QListView; | 18 | class QListView; |
18 | class QPoint; | 19 | class QPoint; |
19 | class QAction; | 20 | class QAction; |
20 | class QLabel; | 21 | class QLabel; |
21 | 22 | ||
22 | class PlayListWidget : public QMainWindow { | 23 | class PlayListWidget : public QMainWindow { |
23 | Q_OBJECT | 24 | Q_OBJECT |
24 | public: | 25 | public: |
25 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 26 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
26 | ~PlayListWidget(); | 27 | ~PlayListWidget(); |
27 | QTabWidget * tabWidget; | 28 | QTabWidget * tabWidget; |
28 | QAction *fullScreenButton, *scaleButton; | 29 | // MenuItem *fullScreenButton, *scaleButton; |
30 | // QAction *fullScreenButton, *scaleButton; | ||
29 | DocLnkSet files; | 31 | DocLnkSet files; |
30 | DocLnkSet vFiles; | 32 | DocLnkSet vFiles; |
31 | QListView *audioView, *videoView, *playlistView; | 33 | QListView *audioView, *videoView, *playlistView; |
32 | QLabel *libString; | 34 | QLabel *libString; |
35 | QPopupMenu *pmView ; | ||
33 | bool fromSetDocument; | 36 | bool fromSetDocument; |
34 | bool insanityBool; | 37 | bool insanityBool; |
35 | QString setDocFileRef; | 38 | QString setDocFileRef; |
36 | // retrieve the current playlist entry (media file link) | 39 | // retrieve the current playlist entry (media file link) |
37 | const DocLnk *current(); | 40 | const DocLnk *current(); |
38 | void useSelectedDocument(); | 41 | void useSelectedDocument(); |
39 | /* QTimer * menuTimer; */ | 42 | /* QTimer * menuTimer; */ |
40 | FileSelector* playLists; | 43 | FileSelector* playLists; |
41 | QPushButton *tbDeletePlaylist; | 44 | QPushButton *tbDeletePlaylist; |
42 | int fd, selected; | 45 | int fd, selected; |
43 | public slots: | 46 | public slots: |
44 | bool first(); | 47 | bool first(); |
@@ -58,24 +61,25 @@ private: | |||
58 | void doUnblank(); | 61 | void doUnblank(); |
59 | void readm3u(const QString &); | 62 | void readm3u(const QString &); |
60 | void readPls(const QString &); | 63 | void readPls(const QString &); |
61 | 64 | ||
62 | 65 | ||
63 | void initializeStates(); | 66 | void initializeStates(); |
64 | void readConfig( Config& cfg ); | 67 | void readConfig( Config& cfg ); |
65 | void writeConfig( Config& cfg ) const; | 68 | void writeConfig( Config& cfg ) const; |
66 | PlayListWidgetPrivate *d; // Private implementation data | 69 | PlayListWidgetPrivate *d; // Private implementation data |
67 | void populateAudioView(); | 70 | void populateAudioView(); |
68 | void populateVideoView(); | 71 | void populateVideoView(); |
69 | private slots: | 72 | private slots: |
73 | void pmViewActivated(int); | ||
70 | void writem3u(); | 74 | void writem3u(); |
71 | void scanForAudio(); | 75 | void scanForAudio(); |
72 | void scanForVideo(); | 76 | void scanForVideo(); |
73 | void openFile(); | 77 | void openFile(); |
74 | void setDocument( const QString& fileref ); | 78 | void setDocument( const QString& fileref ); |
75 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 79 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
76 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 80 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
77 | void setActiveWindow(); // need to handle this to show the right view | 81 | void setActiveWindow(); // need to handle this to show the right view |
78 | void setPlaylist( bool ); // Show/Hide the playlist | 82 | void setPlaylist( bool ); // Show/Hide the playlist |
79 | void setView( char ); | 83 | void setView( char ); |
80 | void clearList(); | 84 | void clearList(); |
81 | void addAllToList(); | 85 | void addAllToList(); |