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