author | zecke <zecke> | 2004-03-14 18:05:28 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 18:05:28 (UTC) |
commit | 9e54b8bd8343af7c301da17d82596d6027e53309 (patch) (unidiff) | |
tree | 693613ff9f1a0f3415e0623e636d47ac4798da2d /core/multimedia/opieplayer/audiowidget.cpp | |
parent | 98bbe5561e8e1a862e19a3d0a0d49ed90ef15b54 (diff) | |
download | opie-9e54b8bd8343af7c301da17d82596d6027e53309.zip opie-9e54b8bd8343af7c301da17d82596d6027e53309.tar.gz opie-9e54b8bd8343af7c301da17d82596d6027e53309.tar.bz2 |
OpiePlayer -> ODP
Diffstat (limited to 'core/multimedia/opieplayer/audiowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/audiowidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/audiowidget.cpp b/core/multimedia/opieplayer/audiowidget.cpp index 8bcc567..7da2d54 100644 --- a/core/multimedia/opieplayer/audiowidget.cpp +++ b/core/multimedia/opieplayer/audiowidget.cpp | |||
@@ -13,48 +13,49 @@ | |||
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 <qdir.h> | 24 | #include <qdir.h> |
25 | #include "audiowidget.h" | 25 | #include "audiowidget.h" |
26 | #include "mediaplayerstate.h" | 26 | #include "mediaplayerstate.h" |
27 | 27 | ||
28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | 30 | ||
31 | extern MediaPlayerState *mediaPlayerState; | 31 | extern MediaPlayerState *mediaPlayerState; |
32 | 32 | ||
33 | 33 | ||
34 | static const int xo = -2; // movable x offset | 34 | static const int xo = -2; // movable x offset |
35 | static const int yo = 22; // movable y offset | 35 | static const int yo = 22; // movable y offset |
36 | 36 | ||
37 | using namespace Opie::Ui; | ||
37 | struct MediaButton { | 38 | struct MediaButton { |
38 | bool isToggle, isHeld, isDown; | 39 | bool isToggle, isHeld, isDown; |
39 | }; | 40 | }; |
40 | 41 | ||
41 | //Layout information for the audioButtons (and if it is a toggle button or not) | 42 | //Layout information for the audioButtons (and if it is a toggle button or not) |
42 | MediaButton audioButtons[] = { | 43 | MediaButton audioButtons[] = { |
43 | { TRUE, FALSE, FALSE }, // play | 44 | { TRUE, FALSE, FALSE }, // play |
44 | { FALSE, FALSE, FALSE }, // stop | 45 | { FALSE, FALSE, FALSE }, // stop |
45 | { FALSE, FALSE, FALSE }, // next | 46 | { FALSE, FALSE, FALSE }, // next |
46 | { FALSE, FALSE, FALSE }, // previous | 47 | { FALSE, FALSE, FALSE }, // previous |
47 | { FALSE, FALSE, FALSE }, // volume up | 48 | { FALSE, FALSE, FALSE }, // volume up |
48 | { FALSE, FALSE, FALSE }, // volume down | 49 | { FALSE, FALSE, FALSE }, // volume down |
49 | { TRUE, FALSE, FALSE }, // repeat/loop | 50 | { TRUE, FALSE, FALSE }, // repeat/loop |
50 | { FALSE, FALSE, FALSE }, // playlist | 51 | { FALSE, FALSE, FALSE }, // playlist |
51 | { FALSE, FALSE, FALSE }, // forward | 52 | { FALSE, FALSE, FALSE }, // forward |
52 | { FALSE, FALSE, FALSE } // back | 53 | { FALSE, FALSE, FALSE } // back |
53 | }; | 54 | }; |
54 | 55 | ||
55 | const char *skin_mask_file_names[10] = { | 56 | const char *skin_mask_file_names[10] = { |
56 | "play", "stop", "next", "prev", "up", | 57 | "play", "stop", "next", "prev", "up", |
57 | "down", "loop", "playlist", "forward", "back" | 58 | "down", "loop", "playlist", "forward", "back" |
58 | }; | 59 | }; |
59 | 60 | ||
60 | static void changeTextColor( QWidget *w ) { | 61 | static void changeTextColor( QWidget *w ) { |