summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-05 12:34:07 (UTC)
committer llornkcor <llornkcor>2002-09-05 12:34:07 (UTC)
commit4daacd5aa7494e02df2afd245f22fbb59f8e19d9 (patch) (side-by-side diff)
treef832d2156302fc53d63c647a55193808f89d0912
parente2186a49cb5cbdf01b56f57818a15a760ff25b2e (diff)
downloadopie-4daacd5aa7494e02df2afd245f22fbb59f8e19d9.zip
opie-4daacd5aa7494e02df2afd245f22fbb59f8e19d9.tar.gz
opie-4daacd5aa7494e02df2afd245f22fbb59f8e19d9.tar.bz2
ignore next and prev buttons when playing from filelist, for now
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp7
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp6
2 files changed, 9 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index 446fa45..7c49733 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -46,10 +46,12 @@
#include <stdio.h>
#include "audiowidget.h"
#include "mediaplayerstate.h"
+#include "playlistwidget.h"
extern MediaPlayerState *mediaPlayerState;
+extern PlayListWidget *playList;
static const int xo = -2; // movable x offset
static const int yo = 22; // movable y offset
@@ -224,8 +226,9 @@ AudioWidget::~AudioWidget() {
delete imgButtonMask;
for ( int i = 0; i < 10; i++ ) {
delete masks[i];
}
+// mediaPlayerState->setPlaying(false);
}
namespace {
@@ -468,10 +471,10 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
// setToggleButton( i, TRUE );
// mediaPlayerState->setPlaying( videoButtons[i].isDown );
}
case AudioStop: mediaPlayerState->setPlaying(FALSE); return;
- case AudioNext: mediaPlayerState->setNext(); return;
- case AudioPrevious: mediaPlayerState->setPrev(); return;
+ case AudioNext: if(playList->whichList() ==0) mediaPlayerState->setNext(); return;
+ case AudioPrevious: if(playList->whichList() ==0) mediaPlayerState->setPrev(); return;
case AudioLoop: mediaPlayerState->setLooping(audioButtons[i].isDown); return;
case AudioVolumeUp: emit moreReleased(); return;
case AudioVolumeDown: emit lessReleased(); return;
case AudioPlayList: mediaPlayerState->setList(); return;
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index ffda2e4..8e3a365 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -43,8 +43,9 @@
#include <qslider.h>
#include <qdrawutil.h>
#include "videowidget.h"
#include "mediaplayerstate.h"
+#include "playlistwidget.h"
#ifdef Q_WS_QWS
# define USE_DIRECT_PAINTER
@@ -53,8 +54,9 @@
#endif
extern MediaPlayerState *mediaPlayerState;
+extern PlayListWidget *playList;
static const int xo = 2; // movable x offset
static const int yo = 0; // movable y offset
@@ -337,10 +339,10 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) {
}
}
case VideoStop: mediaPlayerState->setPlaying( FALSE ); return;
- case VideoNext: mediaPlayerState->setNext(); return;
- case VideoPrevious: mediaPlayerState->setPrev(); return;
+ case VideoNext: if(playList->whichList() ==0) mediaPlayerState->setNext(); return;
+ case VideoPrevious: if(playList->whichList() ==0) mediaPlayerState->setPrev(); return;
case VideoVolUp: emit moreReleased(); return;
case VideoVolDown: emit lessReleased(); return;
case VideoFullscreen: mediaPlayerState->setFullscreen( TRUE ); makeVisible(); return;
}