SVN commit 494185 by mkretz: support fullscreen API M +20 -0 videowidget.cpp M +3 -0 videowidget.h --- branches/work/kdemm/backends/arts/videowidget.cpp #494184:494185 @@ -56,12 +56,28 @@ VideoWidget::~VideoWidget() { + kdDebug( 630 ) << k_funcinfo << endl; delete d; d = 0; } +bool VideoWidget::isFullscreen() const +{ + return KVideoWidget::isFullscreen(); +} + +bool VideoWidget::setFullscreen( bool fs ) +{ + if( fs ) + KVideoWidget::setFullscreen(); + else + KVideoWidget::setWindowed(); + return KVideoWidget::isFullscreen(); +} + void VideoWidget::connectPlayObject( KDE::PlayObject* po ) { + kdDebug( 630 ) << k_funcinfo << endl; if( po->isNull() ) return; @@ -69,11 +85,15 @@ if( vpo.isNull() ) return; + kdDebug( 630 ) << "embed" << endl; embed( vpo ); + kdDebug( 630 ) << "embed done" << endl; } void VideoWidget::disconnectPlayObject( KDE::PlayObject* po ) { + kdDebug( 630 ) << k_funcinfo << endl; + embed( ::Arts::VideoPlayObject::null() ); } void VideoWidget::recreateServerObjects() --- branches/work/kdemm/backends/arts/videowidget.h #494184:494185 @@ -40,6 +40,9 @@ VideoWidget( KArtsServer* s, QWidget* parent ); virtual ~VideoWidget(); + bool isFullscreen() const; + bool setFullscreen( bool ); + void connectPlayObject( KDE::PlayObject* po ); void disconnectPlayObject( KDE::PlayObject* po );