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