summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/playlistwidget.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.h71
1 files changed, 40 insertions, 31 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h
index 8710a99..2742252 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.h
+++ b/noncore/multimedia/opieplayer2/playlistwidget.h
@@ -1,2 +1,34 @@
1/*
2                This file is part of the Opie Project
3
4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org>
5 Copyright (c) 2002 L. Potter <ljp@llornkcor.com>
6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
7 =.
8 .=l.
9           .>+-=
10 _;:,     .>    :=|. This program is free software; you can
11.> <`_,   >  .   <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version.
16    .%`+i>       _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; Library General Public License for more
23++=   -.     .`     .: details.
24 :     =  ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU
26  -_. . .   )=.  = Library General Public License along with
27    --        :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA.
31
32*/
1 33
2#ifndef PLAY_LIST_WIDGET_H 34#ifndef PLAY_LIST_WIDGET_H
@@ -10,8 +42,8 @@
10#include <qpopupmenu.h> 42#include <qpopupmenu.h>
11 43
12/* #include <qtimer.h> */ 44#include "playlistwidgetgui.h"
13 45
14 46
15class PlayListWidgetPrivate; 47//class PlayListWidgetPrivate;
16class Config; 48class Config;
17class QListViewItem; 49class QListViewItem;
@@ -21,17 +53,11 @@ class QAction;
21class QLabel; 53class QLabel;
22 54
23class PlayListWidget : public QMainWindow { 55class PlayListWidget : public PlayListWidgetGui {
24 Q_OBJECT 56 Q_OBJECT
25public: 57public:
26 PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); 58 PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 );
27 ~PlayListWidget(); 59 ~PlayListWidget();
28 QTabWidget * tabWidget;
29// MenuItem *fullScreenButton, *scaleButton;
30// QAction *fullScreenButton, *scaleButton;
31 DocLnkSet files; 60 DocLnkSet files;
32 DocLnkSet vFiles; 61 DocLnkSet vFiles;
33 QListView *audioView, *videoView, *playlistView;
34 QLabel *libString;
35 QPopupMenu *pmView ;
36 bool fromSetDocument; 62 bool fromSetDocument;
37 bool insanityBool; 63 bool insanityBool;
@@ -40,8 +66,6 @@ public:
40 const DocLnk *current(); 66 const DocLnk *current();
41 void useSelectedDocument(); 67 void useSelectedDocument();
42/* QTimer * menuTimer; */
43 FileSelector* playLists;
44 QPushButton *tbDeletePlaylist;
45 int selected; 68 int selected;
69
46public slots: 70public slots:
47 bool first(); 71 bool first();
@@ -50,23 +74,18 @@ public slots:
50 bool prev(); 74 bool prev();
51 void writeConfig( Config& cfg ) const; 75 void writeConfig( Config& cfg ) const;
52/* void setFullScreen(); */ 76
53/* void setScaled(); */
54protected: 77protected:
55/* void contentsMousePressEvent( QMouseEvent * e ); */ 78 void keyReleaseEvent( QKeyEvent *e);
56/* void contentsMouseReleaseEvent( QMouseEvent * e ); */ 79
57void keyReleaseEvent( QKeyEvent *e);
58void keyPressEvent( QKeyEvent *e);
59private: 80private:
60 int defaultSkinIndex; 81 int defaultSkinIndex;
61 QPopupMenu *skinsMenu;
62 bool audioScan, videoScan; 82 bool audioScan, videoScan;
63 void readm3u(const QString &); 83 void readm3u(const QString &);
64 void readPls(const QString &); 84 void readPls(const QString &);
65
66 void initializeStates(); 85 void initializeStates();
67 void readConfig( Config& cfg ); 86 void readConfig( Config& cfg );
68 PlayListWidgetPrivate *d; // Private implementation data
69 void populateAudioView(); 87 void populateAudioView();
70 void populateVideoView(); 88 void populateVideoView();
89
71private slots: 90private slots:
72 void populateSkinsMenu(); 91 void populateSkinsMenu();
@@ -80,7 +99,5 @@ private slots:
80 void addToSelection( const DocLnk& ); // Add a media file to the playlist 99 void addToSelection( const DocLnk& ); // Add a media file to the playlist
81 void addToSelection( QListViewItem* ); // Add a media file to the playlist 100 void addToSelection( QListViewItem* ); // Add a media file to the playlist
82 void setActiveWindow(); // need to handle this to show the right view
83 void setPlaylist( bool ); // Show/Hide the playlist 101 void setPlaylist( bool ); // Show/Hide the playlist
84 void setView( char );
85 void clearList(); 102 void clearList();
86 void addAllToList(); 103 void addAllToList();
@@ -90,5 +107,4 @@ private slots:
90 void loadList( const DocLnk &); // Load a playlist 107 void loadList( const DocLnk &); // Load a playlist
91 void playIt( QListViewItem *); 108 void playIt( QListViewItem *);
92
93 void btnPlay(bool); 109 void btnPlay(bool);
94 void deletePlaylist(); 110 void deletePlaylist();
@@ -99,13 +115,6 @@ private slots:
99 void playlistViewPressed( int, QListViewItem *, const QPoint&, int); 115 void playlistViewPressed( int, QListViewItem *, const QPoint&, int);
100 void playSelected(); 116 void playSelected();
101
102protected slots:
103/* void cancelMenuTimer(); */
104/* void showFileMenu(); */
105
106
107}; 117};
108 118
109
110#endif // PLAY_LIST_WIDGET_H 119#endif // PLAY_LIST_WIDGET_H
111 120