[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kdemm/backends/arts
From:       Matthias Kretz <kretz () kde ! org>
Date:       2006-01-04 8:53:58
Message-ID: 1136364838.312832.23222.nullmailer () svn ! kde ! org
[Download RAW message or body]

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 );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic