diff --git a/wfmain.cpp b/wfmain.cpp index f2c13e1..0517dfd 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -215,6 +215,11 @@ wfmain::wfmain(const QString serialPortCL, const QString hostCL, QWidget *parent // TODO: Add FM-D and AM-D and where applicable D-Star hich seem to exist ui->modeSelectCombo->insertItems(0, modes); + QStringList filters; + filters << "1" << "2" << "3" << "Setup..."; + ui->modeFilterCombo->addItems(filters); + + spans << "2.5k" << "5.0k" << "10k" << "25k"; spans << "50k" << "100k" << "250k" << "500k"; ui->scopeBWCombo->insertItems(0, spans); @@ -2399,6 +2404,16 @@ void wfmain::on_sqlSlider_valueChanged(int value) emit setSql((unsigned char)value); } +void wfmain::on_modeFilterCombo_activated(int index) +{ + //TODO: + if(index >2) + { + //filterSetup->show(); + } + + // emit setFilterSel((unsigned char)index); +} // --- DEBUG FUNCTION --- void wfmain::on_debugBtn_clicked() @@ -2415,3 +2430,5 @@ void wfmain::on_debugBtn_clicked() } + + diff --git a/wfmain.h b/wfmain.h index 9d5ffe7..638d800 100644 --- a/wfmain.h +++ b/wfmain.h @@ -281,6 +281,8 @@ private slots: void on_sqlSlider_valueChanged(int value); + void on_modeFilterCombo_activated(int index); + private: Ui::wfmain *ui; QSettings settings; diff --git a/wfmain.ui b/wfmain.ui index bdfa957..54360e9 100644 --- a/wfmain.ui +++ b/wfmain.ui @@ -213,6 +213,23 @@ + + + + 10 + + + + + Receive Filter + + + + + + + +