author | llornkcor <llornkcor> | 2002-11-03 23:41:56 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-03 23:41:56 (UTC) |
commit | 829eeff0374389891aa88b12fcafffb55f480797 (patch) (unidiff) | |
tree | bdef672d653e386535647ef82e291d95b520ef78 /core/multimedia/opieplayer/playlistwidget.h | |
parent | bf62b8f48d08f5a5e92681e1487a5f43d5c7a231 (diff) | |
download | opie-829eeff0374389891aa88b12fcafffb55f480797.zip opie-829eeff0374389891aa88b12fcafffb55f480797.tar.gz opie-829eeff0374389891aa88b12fcafffb55f480797.tar.bz2 |
finish audio skin
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.h b/core/multimedia/opieplayer/playlistwidget.h index 1be5a15..1118b76 100644 --- a/core/multimedia/opieplayer/playlistwidget.h +++ b/core/multimedia/opieplayer/playlistwidget.h | |||
@@ -16,98 +16,103 @@ | |||
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 <qpe/fileselector.h> | 26 | #include <qpe/fileselector.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | 28 | ||
29 | #include "om3u.h" | 29 | #include "om3u.h" |
30 | /* #include <qtimer.h> */ | 30 | /* #include <qtimer.h> */ |
31 | 31 | ||
32 | 32 | ||
33 | class PlayListWidgetPrivate; | 33 | class PlayListWidgetPrivate; |
34 | class Config; | 34 | class Config; |
35 | class QListViewItem; | 35 | class QListViewItem; |
36 | class QListView; | 36 | class QListView; |
37 | class QPoint; | 37 | class QPoint; |
38 | class QAction; | 38 | class QAction; |
39 | class QLabel; | 39 | class QLabel; |
40 | class QPopupMenu; | ||
40 | 41 | ||
41 | class PlayListWidget : public QMainWindow { | 42 | class PlayListWidget : public QMainWindow { |
42 | Q_OBJECT | 43 | Q_OBJECT |
43 | public: | 44 | public: |
44 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 45 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
45 | ~PlayListWidget(); | 46 | ~PlayListWidget(); |
46 | QTabWidget * tabWidget; | 47 | QTabWidget * tabWidget; |
47 | QAction *fullScreenButton, *scaleButton; | 48 | QAction *fullScreenButton, *scaleButton; |
48 | DocLnkSet files; | 49 | DocLnkSet files; |
49 | DocLnkSet vFiles; | 50 | DocLnkSet vFiles; |
50 | QListView *audioView, *videoView, *playlistView; | 51 | QListView *audioView, *videoView, *playlistView; |
51 | QLabel *libString; | 52 | QLabel *libString; |
52 | bool fromSetDocument; | 53 | bool fromSetDocument; |
53 | bool insanityBool; | 54 | bool insanityBool; |
54 | QString setDocFileRef, currentPlayList; | 55 | QString setDocFileRef, currentPlayList; |
55 | // retrieve the current playlist entry (media file link) | 56 | // retrieve the current playlist entry (media file link) |
56 | const DocLnk *current(); | 57 | const DocLnk *current(); |
57 | void useSelectedDocument(); | 58 | void useSelectedDocument(); |
58 | /* QTimer * menuTimer; */ | 59 | /* QTimer * menuTimer; */ |
59 | FileSelector* playLists; | 60 | FileSelector* playLists; |
60 | QPushButton *tbDeletePlaylist; | 61 | QPushButton *tbDeletePlaylist; |
61 | int fd, selected; | 62 | int fd, selected; |
62 | public slots: | 63 | public slots: |
63 | bool first(); | 64 | bool first(); |
64 | bool last(); | 65 | bool last(); |
65 | bool next(); | 66 | bool next(); |
66 | bool prev(); | 67 | bool prev(); |
67 | /* void setFullScreen(); */ | 68 | /* void setFullScreen(); */ |
68 | /* void setScaled(); */ | 69 | /* void setScaled(); */ |
69 | protected: | 70 | protected: |
71 | QPopupMenu *skinsMenu; | ||
70 | /* void contentsMousePressEvent( QMouseEvent * e ); */ | 72 | /* void contentsMousePressEvent( QMouseEvent * e ); */ |
71 | /* void contentsMouseReleaseEvent( QMouseEvent * e ); */ | 73 | /* void contentsMouseReleaseEvent( QMouseEvent * e ); */ |
72 | void keyReleaseEvent( QKeyEvent *e); | 74 | void keyReleaseEvent( QKeyEvent *e); |
73 | void keyPressEvent( QKeyEvent *e); | 75 | void keyPressEvent( QKeyEvent *e); |
74 | private: | 76 | private: |
77 | int defaultSkinIndex; | ||
75 | bool audioScan, videoScan; | 78 | bool audioScan, videoScan; |
76 | void doBlank(); | 79 | void doBlank(); |
77 | void doUnblank(); | 80 | void doUnblank(); |
78 | void readm3u(const QString &); | 81 | void readm3u(const QString &); |
79 | void readPls(const QString &); | 82 | void readPls(const QString &); |
80 | 83 | ||
81 | 84 | ||
82 | void initializeStates(); | 85 | void initializeStates(); |
83 | void readConfig( Config& cfg ); | 86 | void readConfig( Config& cfg ); |
84 | void writeConfig( Config& cfg ) const; | 87 | void writeConfig( Config& cfg ) const; |
85 | PlayListWidgetPrivate *d; // Private implementation data | 88 | PlayListWidgetPrivate *d; // Private implementation data |
86 | void populateAudioView(); | 89 | void populateAudioView(); |
87 | void populateVideoView(); | 90 | void populateVideoView(); |
88 | private slots: | 91 | private slots: |
89 | 92 | ||
93 | void populateSkinsMenu(); | ||
94 | void skinsMenuActivated(int); | ||
90 | void writem3u(); | 95 | void writem3u(); |
91 | void writeCurrentM3u(); | 96 | void writeCurrentM3u(); |
92 | void scanForAudio(); | 97 | void scanForAudio(); |
93 | void scanForVideo(); | 98 | void scanForVideo(); |
94 | void openFile(); | 99 | void openFile(); |
95 | void setDocument( const QString& fileref ); | 100 | void setDocument( const QString& fileref ); |
96 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 101 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
97 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 102 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
98 | void setActiveWindow(); // need to handle this to show the right view | 103 | void setActiveWindow(); // need to handle this to show the right view |
99 | void setPlaylist( bool ); // Show/Hide the playlist | 104 | void setPlaylist( bool ); // Show/Hide the playlist |
100 | void setView( char ); | 105 | void setView( char ); |
101 | void clearList(); | 106 | void clearList(); |
102 | void addAllToList(); | 107 | void addAllToList(); |
103 | void addAllMusicToList(); | 108 | void addAllMusicToList(); |
104 | void addAllVideoToList(); | 109 | void addAllVideoToList(); |
105 | void saveList(); // Save the playlist | 110 | void saveList(); // Save the playlist |
106 | void loadList( const DocLnk &); // Load a playlist | 111 | void loadList( const DocLnk &); // Load a playlist |
107 | void playIt( QListViewItem *); | 112 | void playIt( QListViewItem *); |
108 | 113 | ||
109 | void btnPlay(bool); | 114 | void btnPlay(bool); |
110 | void deletePlaylist(); | 115 | void deletePlaylist(); |
111 | void addSelected(); | 116 | void addSelected(); |
112 | void removeSelected(); | 117 | void removeSelected(); |
113 | void tabChanged(QWidget*); | 118 | void tabChanged(QWidget*); |