From a879bc5863922320e459e3fc3f3ccb179cef62b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> Date: Thu, 24 Mar 2011 16:48:52 +0200 Subject: [PATCH] Qt4: update DVB dialog for the new plugin --- modules/gui/qt4/components/open_panels.cpp | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index ec723db270b8..7b230754e915 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -68,7 +68,7 @@ .replaceInStrings( QRegExp("^"), "/dev/" ) \ ); -static const char *psz_devModule[] = { "v4l2", "pvr", "dvb", "bda", +static const char psz_devModule[][8] = { "v4l2", "pvr", "dtv", "bda", "dshow", "screen", "jack" }; /************************************************************************** @@ -1004,8 +1004,8 @@ void CaptureOpenPanel::initialize() /************** * DVB Stuffs * **************/ - if( module_exists( "dvb" ) ){ - addModuleAndLayouts( DVB_DEVICE, dvb, "DVB", QGridLayout ); + if( module_exists( "dtv" ) ){ + addModuleAndLayouts( DVB_DEVICE, dvb, N_("TV (digital)"), QGridLayout ); /* DVB Main */ QLabel *dvbDeviceLabel = new QLabel( qtr( "Adapter card to tune" ) ); @@ -1068,14 +1068,7 @@ void CaptureOpenPanel::initialize() dvbPropLayout->addWidget( dvbBandLabel, 2, 0 ); dvbBandBox = new QComboBox; - /* This doesn't work since dvb-bandwidth doesn't seem to be a - list of Integers - setfillVLCConfigCombo( "dvb-bandwidth", p_intf, bdaBandBox ); - */ - dvbBandBox->addItem( qtr( "Auto" ), 0 ); - dvbBandBox->addItem( qtr( "6 MHz" ), 6 ); - dvbBandBox->addItem( qtr( "7 MHz" ), 7 ); - dvbBandBox->addItem( qtr( "8 MHz" ), 8 ); + setfillVLCConfigCombo( "dvb-bandwidth", p_intf, dvbBandBox ); dvbPropLayout->addWidget( dvbBandBox, 2, 1 ); dvbBandLabel->hide(); @@ -1226,15 +1219,16 @@ void CaptureOpenPanel::updateMRL() if( dvbt->isChecked() ) mrl = "dvb-t://"; mrl += "frequency=" + QString::number( dvbFreq->value() ); - if( dvbc->isChecked() || dvbt->isChecked() ) - mrl += "000"; if( dvbc->isChecked() ) { unsigned qam = dvbModBox->itemData( dvbModBox->currentIndex() ).toInt(); if( qam != 0 ) + { mrl += ":modulation=" + QString::number( qam ); + mrl += "QAM"; + } mrl += ":srate=" + QString::number( dvbSrate->value() ); } else if( dvbs->isChecked() ) -- GitLab