summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/audiowidget.cpp
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/audiowidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/multimedia/opieplayer/audiowidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/multimedia/opieplayer/audiowidget.cpp b/core/multimedia/opieplayer/audiowidget.cpp
index fbc5072..8bcc567 100644
--- a/core/multimedia/opieplayer/audiowidget.cpp
+++ b/core/multimedia/opieplayer/audiowidget.cpp
@@ -1,53 +1,47 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of 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
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
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#include <qpe/qpeapplication.h> 20#include <qpe/qpeapplication.h>
21#include <qpe/resource.h> 21#include <qpe/resource.h>
22#include <qpe/config.h> 22#include <qpe/config.h>
23 23
24#include <qwidget.h>
25#include <qpixmap.h>
26#include <qbutton.h>
27#include <qpainter.h>
28#include <qframe.h>
29#include <qlayout.h>
30#include <qdir.h> 24#include <qdir.h>
31#include "audiowidget.h" 25#include "audiowidget.h"
32#include "mediaplayerstate.h" 26#include "mediaplayerstate.h"
33 27
34#include <stdlib.h> 28#include <stdlib.h>
35#include <stdio.h> 29#include <stdio.h>
36 30
37extern MediaPlayerState *mediaPlayerState; 31extern MediaPlayerState *mediaPlayerState;
38 32
39 33
40static const int xo = -2; // movable x offset 34static const int xo = -2; // movable x offset
41static const int yo = 22; // movable y offset 35static const int yo = 22; // movable y offset
42 36
43struct MediaButton { 37struct MediaButton {
44 bool isToggle, isHeld, isDown; 38 bool isToggle, isHeld, isDown;
45}; 39};
46 40
47//Layout information for the audioButtons (and if it is a toggle button or not) 41//Layout information for the audioButtons (and if it is a toggle button or not)
48MediaButton audioButtons[] = { 42MediaButton audioButtons[] = {
49 { TRUE, FALSE, FALSE }, // play 43 { TRUE, FALSE, FALSE }, // play
50 { FALSE, FALSE, FALSE }, // stop 44 { FALSE, FALSE, FALSE }, // stop
51 { FALSE, FALSE, FALSE }, // next 45 { FALSE, FALSE, FALSE }, // next
52 { FALSE, FALSE, FALSE }, // previous 46 { FALSE, FALSE, FALSE }, // previous
53 { FALSE, FALSE, FALSE }, // volume up 47 { FALSE, FALSE, FALSE }, // volume up