kopia lustrzana https://gitlab.com/eliggett/wfview
Added filter select combo box. Does not actually do anythig yet.
rodzic
37f242ea39
commit
8dfc83a3c9
17
wfmain.cpp
17
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()
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
2
wfmain.h
2
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;
|
||||
|
|
17
wfmain.ui
17
wfmain.ui
|
@ -213,6 +213,23 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_11">
|
||||
<property name="rightMargin">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_22">
|
||||
<property name="text">
|
||||
<string>Receive Filter</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="modeFilterCombo"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<property name="rightMargin">
|
||||
|
|
Ładowanie…
Reference in New Issue