From c8fe44f84a33b5c8e62d330b8fea708849e3a2b7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Tue, 13 Apr 2010 01:21:35 +0200 Subject: [PATCH] Qt: network open, fix caching and add more examples Unfortunately, modules names are access_http access_mms but rtp and live555 --- modules/gui/qt4/components/open_panels.cpp | 2 +- modules/gui/qt4/ui/open_net.ui | 68 ++++++++++++++-------- 2 files changed, 46 insertions(+), 24 deletions(-) diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index 7593a84e2a..148a7b1102 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -565,7 +565,7 @@ void NetOpenPanel::updateMRL() const struct caching_map *r = (const struct caching_map *) bsearch( qtu(proto), schemes, sizeof(schemes) / sizeof(schemes[0]), sizeof(schemes[0]), strcmp_void ); - if( r != NULL && module_exists( r->caching ) ) + if( r ) emit methodChanged( qfu( r->caching ) + qfu( "-caching" ) ); QStringList qsl; diff --git a/modules/gui/qt4/ui/open_net.ui b/modules/gui/qt4/ui/open_net.ui index a7de63b064..cabba5eed0 100644 --- a/modules/gui/qt4/ui/open_net.ui +++ b/modules/gui/qt4/ui/open_net.ui @@ -1,60 +1,82 @@ - + + Jean-Baptiste Kempf OpenNetwork - - + + 0 0 - 409 - 137 + 487 + 273 - + Form - + - - + + Network Protocol - - - - - + + + + + 0 0 - - URL + + Please enter a network URL: - + urlText - - - + + + Enter the URL of the network stream here. + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Sans'; font-size:8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#838383;">http://www.example.com/stream.avi</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#838383;">rtp://@1234</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#838383;">mms://mms.examples.com/stream.asx</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#838383;">rtsp://server.example.org:8080/test.sdp</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#838383;">http://www.yourtube.com/watch?v=gg64x</span></p></body></html> + + + 5 + + + 10 + + + - + Qt::Vertical - + QSizePolicy::MinimumExpanding - + 20 10 -- 2.39.2