summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-08 21:22:34 (UTC)
committer simon <simon>2002-12-08 21:22:34 (UTC)
commit10cf937a493866cfa0df9569f67c8cad25c62a5b (patch) (side-by-side diff)
tree95719a27fb96ecb6c115f7816265a0377787db64
parenta78a8d830d81adc8c6e9b2131329d72aa0c18b55 (diff)
downloadopie-10cf937a493866cfa0df9569f67c8cad25c62a5b.zip
opie-10cf937a493866cfa0df9569f67c8cad25c62a5b.tar.gz
opie-10cf937a493866cfa0df9569f67c8cad25c62a5b.tar.bz2
- unused variables removed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp22
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.h4
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp14
3 files changed, 1 insertions, 39 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 @@
namespace
{
const int xo = -2; // movable x offset
const int yo = 22; // movable y offset
-struct MediaButton {
- bool isToggle, isHeld, isDown;
-};
-
-//Layout information for the audioButtons (and if it is a toggle button or not)
-/*
-MediaWidget::Button audioButtons[] = {
- { TRUE, FALSE, FALSE }, // play
- { FALSE, FALSE, FALSE }, // stop
- { FALSE, FALSE, FALSE }, // next
- { FALSE, FALSE, FALSE }, // previous
- { FALSE, FALSE, FALSE }, // volume up
- { FALSE, FALSE, FALSE }, // volume down
- { TRUE, FALSE, FALSE }, // repeat/loop
- { FALSE, FALSE, FALSE }, // playlist
- { FALSE, FALSE, FALSE }, // forward
- { FALSE, FALSE, FALSE } // back
-};
-*/
-
const char * const skin_mask_file_names[10] = {
"play", "stop", "next", "prev", "up",
"down", "loop", "playlist", "forward", "back"
};
void changeTextColor( QWidget * w) {
QPalette p = w->palette();
p.setBrush( QColorGroup::Background, QColor( 167, 212, 167 ) );
p.setBrush( QColorGroup::Base, QColor( 167, 212, 167 ) );
w->setPalette( p );
}
-//const int numButtons = (sizeof(audioButtons)/sizeof(MediaWidget::Button));
-
}
AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name) :
MediaWidget( playList, mediaPlayerState, parent, name ), songInfo( this ), slider( Qt::Horizontal, this ), time( this ) {
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h
index 9cb75ae..8b0d48c 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.h
+++ b/noncore/multimedia/opieplayer2/mediawidget.h
@@ -32,15 +32,13 @@ class MediaWidget : public QWidget
Q_OBJECT
public:
enum Command { Play = 0, Stop, Next, Previous, VolumeUp, VolumeDown, Loop, PlayList, Forward, Back };
struct Button
{
- //Button() : isToggle( false ), isHeld( false ), isDown( false ) {}
-// Button( bool toggle, bool held, bool down )
-// : isToggle( toggle ), isHeld( held ), isDown( down ) {}
+ Button() : isToggle( false ), isHeld( false ), isDown( false ) {}
bool isToggle : 1;
bool isHeld : 1;
bool isDown : 1;
};
typedef std::vector<Button> ButtonVector;
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index efd756c..6e2e03e 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -56,30 +56,16 @@
namespace
{
const int xo = 2; // movable x offset
const int yo = 0; // movable y offset
-/*
-MediaWidget::Button videoButtons[] = {
- { FALSE, FALSE, FALSE }, // stop
- { TRUE, FALSE, FALSE }, // play
- { FALSE, FALSE, FALSE }, // previous
- { FALSE, FALSE, FALSE }, // next
- { FALSE, FALSE, FALSE }, // volUp
- { FALSE, FALSE, FALSE }, // volDown
- { TRUE, FALSE, FALSE } // fullscreen
-};
-*/
-
const char * const skinV_mask_file_names[7] = {
"stop","play","back","fwd","up","down","full"
};
-//const int numVButtons = (sizeof(videoButtons)/sizeof(MediaWidget::Button));
-
}
VideoWidget::VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name )
: MediaWidget( playList, mediaPlayerState, parent, name ), scaledWidth( 0 ), scaledHeight( 0 )
{
setCaption( tr("OpiePlayer - Video") );