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