Commit 422238b7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: DVB-T2 in open dialog

parent 407007d7
...@@ -942,17 +942,19 @@ void CaptureOpenPanel::initialize() ...@@ -942,17 +942,19 @@ void CaptureOpenPanel::initialize()
dvbs = new QRadioButton( "DVB-S" ); dvbs = new QRadioButton( "DVB-S" );
dvbs2 = new QRadioButton( "DVB-S2" ); dvbs2 = new QRadioButton( "DVB-S2" );
dvbt = new QRadioButton( "DVB-T" ); dvbt = new QRadioButton( "DVB-T" );
dvbt2 = new QRadioButton( "DVB-T2" );
atsc = new QRadioButton( "ATSC" ); atsc = new QRadioButton( "ATSC" );
cqam = new QRadioButton( "Clear QAM" ); cqam = new QRadioButton( "Clear QAM" );
dvbt->setChecked( true ); dvbt->setChecked( true );
dvbDevLayout->addWidget( dvbTypeLabel, 1, 0, 2, 1 ); dvbDevLayout->addWidget( dvbTypeLabel, 1, 0, 2, 1 );
dvbDevLayout->addWidget( dvbc, 1, 1 ); dvbDevLayout->addWidget( dvbc, 1, 1 );
dvbDevLayout->addWidget( dvbs, 1, 2 ); dvbDevLayout->addWidget( dvbs, 1, 2 );
dvbDevLayout->addWidget( dvbs2, 2, 2 ); dvbDevLayout->addWidget( dvbs2, 2, 2 );
dvbDevLayout->addWidget( dvbt, 1, 3 ); dvbDevLayout->addWidget( dvbt, 1, 3 );
dvbDevLayout->addWidget( atsc, 1, 4 ); dvbDevLayout->addWidget( dvbt2, 2, 3 );
dvbDevLayout->addWidget( cqam, 2, 4 ); dvbDevLayout->addWidget( atsc, 1, 4 );
dvbDevLayout->addWidget( cqam, 2, 4 );
/* DVB Props panel */ /* DVB Props panel */
QLabel *dvbFreqLabel = QLabel *dvbFreqLabel =
...@@ -1027,10 +1029,12 @@ void CaptureOpenPanel::initialize() ...@@ -1027,10 +1029,12 @@ void CaptureOpenPanel::initialize()
BUTTONACT( dvbs, updateButtons() ); BUTTONACT( dvbs, updateButtons() );
BUTTONACT( dvbs2, updateButtons() ); BUTTONACT( dvbs2, updateButtons() );
BUTTONACT( dvbt, updateButtons() ); BUTTONACT( dvbt, updateButtons() );
BUTTONACT( dvbt2, updateButtons() );
BUTTONACT( atsc, updateButtons() ); BUTTONACT( atsc, updateButtons() );
BUTTONACT( cqam, updateButtons() ); BUTTONACT( cqam, updateButtons() );
BUTTONACT( dvbc, updateMRL() ); BUTTONACT( dvbc, updateMRL() );
BUTTONACT( dvbt, updateMRL() ); BUTTONACT( dvbt, updateMRL() );
BUTTONACT( dvbt2, updateMRL() );
BUTTONACT( dvbs, updateMRL() ); BUTTONACT( dvbs, updateMRL() );
BUTTONACT( dvbs2, updateMRL() ); BUTTONACT( dvbs2, updateMRL() );
BUTTONACT( atsc, updateMRL() ); BUTTONACT( atsc, updateMRL() );
...@@ -1143,6 +1147,8 @@ void CaptureOpenPanel::updateMRL() ...@@ -1143,6 +1147,8 @@ void CaptureOpenPanel::updateMRL()
else else
if( dvbt->isChecked() ) mrl = "dvb-t://"; if( dvbt->isChecked() ) mrl = "dvb-t://";
else else
if( dvbt2->isChecked() ) mrl = "dvb-t2://";
else
if( atsc->isChecked() ) mrl = "atsc://"; if( atsc->isChecked() ) mrl = "atsc://";
else else
if( cqam->isChecked() ) mrl = "cqam://"; if( cqam->isChecked() ) mrl = "cqam://";
...@@ -1157,7 +1163,7 @@ void CaptureOpenPanel::updateMRL() ...@@ -1157,7 +1163,7 @@ void CaptureOpenPanel::updateMRL()
+ dvbPskBox->itemData( dvbPskBox->currentIndex() ).toString(); + dvbPskBox->itemData( dvbPskBox->currentIndex() ).toString();
if( dvbc->isChecked() || dvbs->isChecked() || dvbs2->isChecked() ) if( dvbc->isChecked() || dvbs->isChecked() || dvbs2->isChecked() )
mrl += ":srate=" + QString::number( dvbSrate->value() ); mrl += ":srate=" + QString::number( dvbSrate->value() );
if( dvbt->isChecked() ) if( dvbt->isChecked() || dvbt2->isChecked() )
mrl += ":bandwidth=" + mrl += ":bandwidth=" +
QString::number( dvbBandBox->itemData( QString::number( dvbBandBox->itemData(
dvbBandBox->currentIndex() ).toInt() ); dvbBandBox->currentIndex() ).toInt() );
...@@ -1224,7 +1230,7 @@ void CaptureOpenPanel::updateButtons() ...@@ -1224,7 +1230,7 @@ void CaptureOpenPanel::updateButtons()
dvbPskBox->show(); dvbPskBox->show();
dvbModLabel->show(); dvbModLabel->show();
} }
else if( dvbt->isChecked() ) else if( dvbt->isChecked() || dvbt2->isChecked() )
{ {
dvbBandBox->show(); dvbBandBox->show();
dvbBandLabel->show(); dvbBandLabel->show();
......
...@@ -211,7 +211,7 @@ private: ...@@ -211,7 +211,7 @@ private:
QCheckBox *jackPace, *jackConnect; QCheckBox *jackPace, *jackConnect;
QLineEdit *jackPortsSelected; QLineEdit *jackPortsSelected;
#endif #endif
QRadioButton *dvbc, *dvbs, *dvbs2, *dvbt, *atsc, *cqam; QRadioButton *dvbc, *dvbs, *dvbs2, *dvbt, *dvbt2, *atsc, *cqam;
QLabel *dvbBandLabel, *dvbSrateLabel, *dvbModLabel; QLabel *dvbBandLabel, *dvbSrateLabel, *dvbModLabel;
QComboBox *dvbQamBox, *dvbPskBox, *dvbBandBox; QComboBox *dvbQamBox, *dvbPskBox, *dvbBandBox;
QSpinBox *dvbCard, *dvbFE, *dvbFreq, *dvbSrate; QSpinBox *dvbCard, *dvbFE, *dvbFreq, *dvbSrate;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment