[vlc-devel] commit: Add ATSC option to GUI (kenself )
git version control
git at videolan.org
Mon Dec 15 17:51:05 CET 2008
vlc | branch: master | kenself <kenself at optusnet.com.au> | Sun Dec 14 22:04:25 2008 +1100| [36ff2a5f1e6daa167fb9a8ab35bd16c9fe578011] | committer: Jean-Baptiste Kempf
Add ATSC option to GUI
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36ff2a5f1e6daa167fb9a8ab35bd16c9fe578011
---
modules/gui/qt4/components/open_panels.cpp | 9 +++++++--
modules/gui/qt4/components/open_panels.hpp | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index cb1ca1c..c5cd2cb 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -672,11 +672,13 @@ void CaptureOpenPanel::initialize()
bdas->setChecked( true );
bdac = new QRadioButton( "DVB-C" );
bdat = new QRadioButton( "DVB-T" );
+ bdaa = new QRadioButton( "ATSC" );
bdaDevLayout->addWidget( bdaTypeLabel, 0, 0 );
bdaDevLayout->addWidget( bdas, 0, 1 );
bdaDevLayout->addWidget( bdac, 0, 2 );
bdaDevLayout->addWidget( bdat, 0, 3 );
+ bdaDevLayout->addWidget( bdaa, 0, 4 );
/* bda Props */
QLabel *bdaFreqLabel =
@@ -718,9 +720,11 @@ void CaptureOpenPanel::initialize()
BUTTONACT( bdas, updateButtons() );
BUTTONACT( bdat, updateButtons() );
BUTTONACT( bdac, updateButtons() );
+ BUTTONACT( bdaa, updateButtons() );
BUTTONACT( bdas, updateMRL() );
BUTTONACT( bdat, updateMRL() );
BUTTONACT( bdac, updateMRL() );
+ BUTTONACT( bdaa, updateMRL() );
}
#else /* WIN32 */
@@ -1026,11 +1030,12 @@ void CaptureOpenPanel::updateMRL()
if( bdas->isChecked() ) mrl = "dvb-s://";
else if( bdat->isChecked() ) mrl = "dvb-t://";
else if( bdac->isChecked() ) mrl = "dvb-c://";
+ else if( bdaa->isChecked() ) mrl = "atsc://";
else return;
mrl += " :dvb-frequency=" + QString("%1").arg( bdaFreq->value() );
if( bdas->isChecked() || bdac->isChecked() )
mrl += " :dvb-srate=" + QString("%1").arg( bdaSrate->value() );
- else
+ else if( bdat->isChecked() )
mrl += " :dvb-bandwidth=" +
QString("%1").arg( bdaBandBox->itemData(
bdaBandBox->currentIndex() ).toInt() );
@@ -1123,7 +1128,7 @@ void CaptureOpenPanel::updateButtons()
bdaBandBox->hide();
bdaBandLabel->hide();
}
- else
+ else if( bdat->isChecked() )
{
bdaSrate->hide();
bdaSrateLabel->hide();
diff --git a/modules/gui/qt4/components/open_panels.hpp b/modules/gui/qt4/components/open_panels.hpp
index 95a9b93..3a97af8 100644
--- a/modules/gui/qt4/components/open_panels.hpp
+++ b/modules/gui/qt4/components/open_panels.hpp
@@ -187,7 +187,7 @@ private:
QString advMRL;
QDialog *adv;
#ifdef WIN32
- QRadioButton *bdas, *bdat, *bdac;
+ QRadioButton *bdas, *bdat, *bdac, *bdaa;
QSpinBox *bdaCard, *bdaFreq, *bdaSrate;
QLabel *bdaSrateLabel, *bdaBandLabel;
QComboBox *bdaBandBox;
More information about the vlc-devel
mailing list