Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 4172da0..7fb3781 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -53,46 +53,24 @@ | |||
53 | namespace | 53 | namespace |
54 | { | 54 | { |
55 | 55 | ||
56 | const int xo = -2; // movable x offset | 56 | const int xo = -2; // movable x offset |
57 | const int yo = 22; // movable y offset | 57 | const int yo = 22; // movable y offset |
58 | 58 | ||
59 | struct MediaButton { | ||
60 | bool isToggle, isHeld, isDown; | ||
61 | }; | ||
62 | |||
63 | //Layout information for the audioButtons (and if it is a toggle button or not) | ||
64 | /* | ||
65 | MediaWidget::Button audioButtons[] = { | ||
66 | { TRUE, FALSE, FALSE }, // play | ||
67 | { FALSE, FALSE, FALSE }, // stop | ||
68 | { FALSE, FALSE, FALSE }, // next | ||
69 | { FALSE, FALSE, FALSE }, // previous | ||
70 | { FALSE, FALSE, FALSE }, // volume up | ||
71 | { FALSE, FALSE, FALSE }, // volume down | ||
72 | { TRUE, FALSE, FALSE }, // repeat/loop | ||
73 | { FALSE, FALSE, FALSE }, // playlist | ||
74 | { FALSE, FALSE, FALSE }, // forward | ||
75 | { FALSE, FALSE, FALSE } // back | ||
76 | }; | ||
77 | */ | ||
78 | |||
79 | const char * const skin_mask_file_names[10] = { | 59 | const char * const skin_mask_file_names[10] = { |
80 | "play", "stop", "next", "prev", "up", | 60 | "play", "stop", "next", "prev", "up", |
81 | "down", "loop", "playlist", "forward", "back" | 61 | "down", "loop", "playlist", "forward", "back" |
82 | }; | 62 | }; |
83 | 63 | ||
84 | void changeTextColor( QWidget * w) { | 64 | void changeTextColor( QWidget * w) { |
85 | QPalette p = w->palette(); | 65 | QPalette p = w->palette(); |
86 | p.setBrush( QColorGroup::Background, QColor( 167, 212, 167 ) ); | 66 | p.setBrush( QColorGroup::Background, QColor( 167, 212, 167 ) ); |
87 | p.setBrush( QColorGroup::Base, QColor( 167, 212, 167 ) ); | 67 | p.setBrush( QColorGroup::Base, QColor( 167, 212, 167 ) ); |
88 | w->setPalette( p ); | 68 | w->setPalette( p ); |
89 | } | 69 | } |
90 | 70 | ||
91 | //const int numButtons = (sizeof(audioButtons)/sizeof(MediaWidget::Button)); | ||
92 | |||
93 | } | 71 | } |
94 | 72 | ||
95 | AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name) : | 73 | AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name) : |
96 | 74 | ||
97 | MediaWidget( playList, mediaPlayerState, parent, name ), songInfo( this ), slider( Qt::Horizontal, this ), time( this ) { | 75 | MediaWidget( playList, mediaPlayerState, parent, name ), songInfo( this ), slider( Qt::Horizontal, this ), time( this ) { |
98 | 76 | ||