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
@@ -11,98 +11,96 @@
11.> <`_,   >  .   <= redistribute it and/or modify it under 11.> <`_,   >  .   <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public 12:`=1 )Y*s>-.--   : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software 13.="- .-=="i,     .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License, 14 - .   .-<_>     .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version. 15     ._= =}       : or (at your option) any later version.
16    .%`+i>       _;_. 16    .%`+i>       _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that 17    .i_,=:_.      -<s. This program is distributed in the hope that
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of 19    : ..    .:,     . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; General Public License for more 22..}^=.=       =       ; General Public License for more
23++=   -.     .`     .: details. 23++=   -.     .`     .: details.
24 :     =  ...= . :.=- 24 :     =  ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU 25 -.   .:....=;==+<; You should have received a copy of the GNU
26  -_. . .   )=.  = General Public License along with 26  -_. . .   )=.  = General Public License along with
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 );
93 menu->insertItem( tr( "View" ), pmView ); 91 menu->insertItem( tr( "View" ), pmView );
94 pmView->isCheckable(); 92 pmView->isCheckable();
95 93
96 skinsMenu = new QPopupMenu( this ); 94 skinsMenu = new QPopupMenu( this );
97 pmView->insertItem( tr( "Skins" ), skinsMenu ); 95 pmView->insertItem( tr( "Skins" ), skinsMenu );
98 skinsMenu->isCheckable(); 96 skinsMenu->isCheckable();
99 97
100 gammaMenu = new QPopupMenu( this ); 98 gammaMenu = new QPopupMenu( this );
101 pmView->insertItem( tr( "Gamma (Video)" ), gammaMenu ); 99 pmView->insertItem( tr( "Gamma (Video)" ), gammaMenu );
102 100
103 gammaSlider = new QSlider( QSlider::Vertical, gammaMenu ); 101 gammaSlider = new QSlider( QSlider::Vertical, gammaMenu );
104 gammaSlider->setRange( -40, 40 ); 102 gammaSlider->setRange( -40, 40 );
105 gammaSlider->setTickmarks( QSlider::Left ); 103 gammaSlider->setTickmarks( QSlider::Left );
106 gammaSlider->setTickInterval( 20 ); 104 gammaSlider->setTickInterval( 20 );
107 gammaSlider->setFocusPolicy( QWidget::StrongFocus ); 105 gammaSlider->setFocusPolicy( QWidget::StrongFocus );
108 gammaSlider->setValue( 0 ); 106 gammaSlider->setValue( 0 );