Commit 4eb307c4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: add DVB-S2

parent 601609fe
...@@ -953,17 +953,19 @@ void CaptureOpenPanel::initialize() ...@@ -953,17 +953,19 @@ void CaptureOpenPanel::initialize()
dvbc = new QRadioButton( "DVB-C" ); dvbc = new QRadioButton( "DVB-C" );
dvbs = new QRadioButton( "DVB-S" ); dvbs = new QRadioButton( "DVB-S" );
dvbs2 = new QRadioButton( "DVB-S2" );
dvbt = new QRadioButton( "DVB-T" ); dvbt = new QRadioButton( "DVB-T" );
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 ); 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( dvbt, 1, 3 ); dvbDevLayout->addWidget( dvbt, 1, 3 );
dvbDevLayout->addWidget( atsc, 1, 4 ); dvbDevLayout->addWidget( atsc, 1, 4 );
dvbDevLayout->addWidget( cqam, 1, 5 ); dvbDevLayout->addWidget( cqam, 2, 4 );
/* DVB Props panel */ /* DVB Props panel */
QLabel *dvbFreqLabel = QLabel *dvbFreqLabel =
...@@ -1024,14 +1026,16 @@ void CaptureOpenPanel::initialize() ...@@ -1024,14 +1026,16 @@ void CaptureOpenPanel::initialize()
CuMRL( dvbQamBox, currentIndexChanged ( int ) ); CuMRL( dvbQamBox, currentIndexChanged ( int ) );
CuMRL( dvbBandBox, currentIndexChanged ( int ) ); CuMRL( dvbBandBox, currentIndexChanged ( int ) );
BUTTONACT( dvbc, updateButtons() );
BUTTONACT( dvbs, updateButtons() ); BUTTONACT( dvbs, updateButtons() );
BUTTONACT( dvbs2, updateButtons() );
BUTTONACT( dvbt, updateButtons() ); BUTTONACT( dvbt, updateButtons() );
BUTTONACT( dvbc, updateButtons() );
BUTTONACT( atsc, updateButtons() ); BUTTONACT( atsc, updateButtons() );
BUTTONACT( cqam, updateButtons() ); BUTTONACT( cqam, updateButtons() );
BUTTONACT( dvbs, updateMRL() ); BUTTONACT( dvbs, updateMRL() );
BUTTONACT( dvbt, updateMRL() ); BUTTONACT( dvbt, updateMRL() );
BUTTONACT( dvbs, updateMRL() ); BUTTONACT( dvbs, updateMRL() );
BUTTONACT( dvbs2, updateMRL() );
BUTTONACT( atsc, updateMRL() ); BUTTONACT( atsc, updateMRL() );
BUTTONACT( cqam, updateMRL() ); BUTTONACT( cqam, updateMRL() );
} }
...@@ -1138,6 +1142,8 @@ void CaptureOpenPanel::updateMRL() ...@@ -1138,6 +1142,8 @@ void CaptureOpenPanel::updateMRL()
else else
if( dvbs->isChecked() ) mrl = "dvb-s://"; if( dvbs->isChecked() ) mrl = "dvb-s://";
else else
if( dvbs2->isChecked() ) mrl = "dvb-s2://";
else
if( dvbt->isChecked() ) mrl = "dvb-t://"; if( dvbt->isChecked() ) mrl = "dvb-t://";
else else
if( atsc->isChecked() ) mrl = "atsc://"; if( atsc->isChecked() ) mrl = "atsc://";
...@@ -1154,7 +1160,7 @@ void CaptureOpenPanel::updateMRL() ...@@ -1154,7 +1160,7 @@ void CaptureOpenPanel::updateMRL()
mrl += ":modulation=" + QString::number( qam ) + "QAM"; mrl += ":modulation=" + QString::number( qam ) + "QAM";
mrl += ":srate=" + QString::number( dvbSrate->value() ); mrl += ":srate=" + QString::number( dvbSrate->value() );
} }
if( dvbc->isChecked() || dvbs->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() )
mrl += ":bandwidth=" + mrl += ":bandwidth=" +
...@@ -1215,6 +1221,11 @@ void CaptureOpenPanel::updateButtons() ...@@ -1215,6 +1221,11 @@ void CaptureOpenPanel::updateButtons()
dvbSrate->show(); dvbSrate->show();
dvbSrateLabel->show(); dvbSrateLabel->show();
} }
else if( dvbs2->isChecked() )
{
dvbSrate->show();
dvbSrateLabel->show();
}
else if( dvbt->isChecked() ) else if( dvbt->isChecked() )
{ {
dvbBandBox->show(); dvbBandBox->show();
......
...@@ -213,7 +213,7 @@ private: ...@@ -213,7 +213,7 @@ private:
QLineEdit *jackPortsSelected; QLineEdit *jackPortsSelected;
# define DTV_PLUGIN "dtv" # define DTV_PLUGIN "dtv"
#endif #endif
QRadioButton *dvbs, *dvbt, *dvbc, *atsc, *cqam; QRadioButton *dvbc, *dvbs, *dvbs2, *dvbt, *atsc, *cqam;
QLabel *dvbBandLabel, *dvbSrateLabel, *dvbModLabel; QLabel *dvbBandLabel, *dvbSrateLabel, *dvbModLabel;
QComboBox *dvbQamBox, *dvbBandBox; QComboBox *dvbQamBox, *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