summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-11 17:16:17 (UTC)
committer simon <simon>2002-12-11 17:16:17 (UTC)
commit94461696cfdcf8cdbaabec1400300e546edc447e (patch) (side-by-side diff)
treebacef808031edb254214d04489d4a8e4df53cdb9
parent9f5e007f4859027eaeb989c620ec62fc698b44cc (diff)
downloadopie-94461696cfdcf8cdbaabec1400300e546edc447e.zip
opie-94461696cfdcf8cdbaabec1400300e546edc447e.tar.gz
opie-94461696cfdcf8cdbaabec1400300e546edc447e.tar.bz2
- expose information about the buttons
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp12
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.h4
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp12
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.h2
4 files changed, 28 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index 78079dd..4db444a 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -111,6 +111,16 @@ AudioWidget::~AudioWidget() {
// mediaPlayerState->setPlaying(false);
}
+const MediaWidget::SkinButtonInfo *AudioWidget::skinInfo()
+{
+ return ::skinInfo;
+}
+
+const uint AudioWidget::buttonCount()
+{
+ return ::buttonCount;
+}
+
void AudioWidget::resizeEvent( QResizeEvent *e ) {
int h = height();
int w = width();
@@ -164,7 +174,7 @@ void AudioWidget::setDisplayType( MediaPlayerState::DisplayType mediaType ) {
void AudioWidget::loadSkin()
{
- loadDefaultSkin( skinInfo, buttonCount );
+ loadDefaultSkin( ::skinInfo, ::buttonCount );
setBackgroundPixmap( backgroundPixmap );
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h
index 670fb45..75d4857 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.h
+++ b/noncore/multimedia/opieplayer2/audiowidget.h
@@ -55,6 +55,10 @@ public:
AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 );
~AudioWidget();
void setTickerText( const QString &text ) { songInfo.setText( text ); }
+
+ static const MediaWidget::SkinButtonInfo *skinInfo();
+ static const uint buttonCount();
+
public slots:
void updateSlider( long, long );
void sliderPressed( );
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index a8ff540..058730f 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -99,6 +99,16 @@ VideoWidget::~VideoWidget()
{
}
+const MediaWidget::SkinButtonInfo *VideoWidget::skinInfo()
+{
+ return ::skinInfo;
+}
+
+const uint VideoWidget::buttonCount()
+{
+ return ::buttonCount;
+}
+
void VideoWidget::resizeEvent( QResizeEvent *e ) {
int h = height();
int w = width();
@@ -157,7 +167,7 @@ void VideoWidget::setDisplayType( MediaPlayerState::DisplayType displayType )
void VideoWidget::loadSkin()
{
- loadDefaultSkin( skinInfo, buttonCount, "V" );
+ loadDefaultSkin( ::skinInfo, ::buttonCount, "V" );
setBackgroundPixmap( backgroundPixmap );
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h
index f434945..80e9356 100644
--- a/noncore/multimedia/opieplayer2/videowidget.h
+++ b/noncore/multimedia/opieplayer2/videowidget.h
@@ -50,6 +50,8 @@ public:
VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 );
~VideoWidget();
+ static const MediaWidget::SkinButtonInfo *skinInfo();
+ static const uint buttonCount();
XineVideoWidget* vidWidget();
public slots: