summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-08 22:25:56 (UTC)
committer simon <simon>2002-12-08 22:25:56 (UTC)
commit5d3f3d429bb6247741a30c00a344302a2c9a20c0 (patch) (unidiff)
treee33d2bfc6d5c19eba28a2ef454ec0d492e340ea9
parent00252c667bf6c6af3f2a1d2519bf23e448e8f174 (diff)
downloadopie-5d3f3d429bb6247741a30c00a344302a2c9a20c0.zip
opie-5d3f3d429bb6247741a30c00a344302a2c9a20c0.tar.gz
opie-5d3f3d429bb6247741a30c00a344302a2c9a20c0.tar.bz2
- no need to include audio and videowidget.h here
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidgetgui.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
index 7f851bd..5886458 100644
--- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
@@ -27,66 +27,64 @@
27    --        :-=` this library; see the file COPYING.LIB. 27    --        :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
31 31
32*/ 32*/
33 33
34#include <qpe/qpemenubar.h> 34#include <qpe/qpemenubar.h>
35#include <qpe/qpetoolbar.h> 35#include <qpe/qpetoolbar.h>
36#include <qpe/fileselector.h> 36#include <qpe/fileselector.h>
37#include <qpe/qpeapplication.h> 37#include <qpe/qpeapplication.h>
38#include <qpe/storage.h> 38#include <qpe/storage.h>
39#include <qpe/mimetype.h> 39#include <qpe/mimetype.h>
40#include <qpe/config.h> 40#include <qpe/config.h>
41#include <qpe/global.h> 41#include <qpe/global.h>
42#include <qpe/resource.h> 42#include <qpe/resource.h>
43 43
44#include <qpopupmenu.h> 44#include <qpopupmenu.h>
45#include <qaction.h> 45#include <qaction.h>
46#include <qcursor.h> 46#include <qcursor.h>
47#include <qdir.h> 47#include <qdir.h>
48#include <qlayout.h> 48#include <qlayout.h>
49 49
50#include "playlistselection.h" 50#include "playlistselection.h"
51#include "playlistwidget.h" 51#include "playlistwidget.h"
52#include "mediaplayerstate.h" 52#include "mediaplayerstate.h"
53#include "inputDialog.h" 53#include "inputDialog.h"
54#include "playlistfileview.h" 54#include "playlistfileview.h"
55 55
56//only needed for the random play 56//only needed for the random play
57#include <stdlib.h> 57#include <stdlib.h>
58 58
59#include "audiowidget.h"
60#include "videowidget.h"
61#include "mediaplayerstate.h" 59#include "mediaplayerstate.h"
62 60
63PlayListWidgetGui::PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidget* parent, const char* name ) 61PlayListWidgetGui::PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidget* parent, const char* name )
64 : QMainWindow( parent, name ), mediaPlayerState( _mediaPlayerState ) { 62 : QMainWindow( parent, name ), mediaPlayerState( _mediaPlayerState ) {
65 63
66 d = new PlayListWidgetPrivate; 64 d = new PlayListWidgetPrivate;
67 d->setDocumentUsed = FALSE; 65 d->setDocumentUsed = FALSE;
68 66
69 setBackgroundMode( PaletteButton ); 67 setBackgroundMode( PaletteButton );
70 setToolBarsMovable( FALSE ); 68 setToolBarsMovable( FALSE );
71 69
72 // Create Toolbar 70 // Create Toolbar
73 QPEToolBar *toolbar = new QPEToolBar( this ); 71 QPEToolBar *toolbar = new QPEToolBar( this );
74 toolbar->setHorizontalStretchable( TRUE ); 72 toolbar->setHorizontalStretchable( TRUE );
75 73
76 // Create Menubar 74 // Create Menubar
77 QPEMenuBar *menu = new QPEMenuBar( toolbar ); 75 QPEMenuBar *menu = new QPEMenuBar( toolbar );
78 menu->setMargin( 0 ); 76 menu->setMargin( 0 );
79 77
80 bar = new QPEToolBar( this ); 78 bar = new QPEToolBar( this );
81 bar->setLabel( tr( "Play Operations" ) ); 79 bar->setLabel( tr( "Play Operations" ) );
82 80
83 tbDeletePlaylist = new QPushButton( Resource::loadIconSet( "trash" ), "", bar, "close" ); 81 tbDeletePlaylist = new QPushButton( Resource::loadIconSet( "trash" ), "", bar, "close" );
84 tbDeletePlaylist->setFlat( TRUE ); 82 tbDeletePlaylist->setFlat( TRUE );
85 tbDeletePlaylist->setFixedSize( 20, 20 ); 83 tbDeletePlaylist->setFixedSize( 20, 20 );
86 84
87 tbDeletePlaylist->hide(); 85 tbDeletePlaylist->hide();
88 86
89 pmPlayList = new QPopupMenu( this ); 87 pmPlayList = new QPopupMenu( this );
90 menu->insertItem( tr( "File" ), pmPlayList ); 88 menu->insertItem( tr( "File" ), pmPlayList );
91 89
92 pmView = new QPopupMenu( this ); 90 pmView = new QPopupMenu( this );