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 | |||
@@ -1,96 +1,102 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
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 { |
38 | Q_OBJECT | 41 | Q_OBJECT |
39 | public: | 42 | 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 ); */ |
80 | 86 | ||
81 | private: | 87 | private: |
82 | void initializeStates(); | 88 | void initializeStates(); |
83 | void readConfig( Config& cfg ); | 89 | void readConfig( Config& cfg ); |
84 | void writeConfig( Config& cfg ) const; | 90 | void writeConfig( Config& cfg ) const; |
85 | PlayListWidgetPrivate *d; // Private implementation data | 91 | PlayListWidgetPrivate *d; // Private implementation data |
86 | 92 | ||
87 | protected slots: | 93 | protected slots: |
88 | /* void cancelMenuTimer(); */ | 94 | /* void cancelMenuTimer(); */ |
89 | /* void showFileMenu(); */ | 95 | /* void showFileMenu(); */ |
90 | 96 | ||
91 | 97 | ||
92 | }; | 98 | }; |
93 | 99 | ||
94 | 100 | ||
95 | #endif // PLAY_LIST_WIDGET_H | 101 | #endif // PLAY_LIST_WIDGET_H |
96 | 102 | ||