author | llornkcor <llornkcor> | 2002-02-25 05:10:32 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-25 05:10:32 (UTC) |
commit | 1bebd27631a6c9d1ab967cbb32dd4e796b3b0402 (patch) (unidiff) | |
tree | 8ce49800cba26f6f2c33de74a71d4efe0338843f /core/multimedia/opieplayer/playlistwidget.h | |
parent | d948361c1b475fab4660b28fbf5ec21fd34d923f (diff) | |
download | opie-1bebd27631a6c9d1ab967cbb32dd4e796b3b0402.zip opie-1bebd27631a6c9d1ab967cbb32dd4e796b3b0402.tar.gz opie-1bebd27631a6c9d1ab967cbb32dd4e796b3b0402.tar.bz2 |
fixed 2
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (ignore 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,6 +1,6 @@ | |||
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 |
@@ -23,9 +23,15 @@ | |||
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 { |
@@ -34,12 +40,20 @@ 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 |
@@ -51,8 +65,17 @@ public slots: | |||
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: |
@@ -61,4 +84,10 @@ private: | |||
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 | ||