30 #include "ui_mainwindow.h" 32 #include <boost/format.hpp> 41 connect(
listener, SIGNAL(addModulation(QString,
int)),
42 ui->Mode_cb, SLOT(addValue(QString,
int)));
43 connect(
ui->Mode_cb, SIGNAL(valueChanged(
int)),
46 connect(
listener, SIGNAL(addFilterName(QString,
int)),
47 ui->AFBw_cb, SLOT(addValue(QString,
int)));
48 connect(
ui->AFBw_cb, SIGNAL(valueChanged(
int)),
51 connect(
ui->RFGain_slide, SIGNAL(valueChanged(
int)),
53 connect(
ui->AFGain_slide, SIGNAL(valueChanged(
int)),
56 connect(
ui->RXFreq_lab, SIGNAL(newFreq(
double)),
59 connect(
ui->TXFreq_lab, SIGNAL(newFreq(
double)),
62 connect(
ui->RXfreq2TXfreq_btn, &QPushButton::clicked,
63 this, [=] (
bool checked) {
64 setTXFreq(ui->RXFreq_lab->getFreq());
66 connect(
ui->TXfreq2RXfreq_btn, &QPushButton::clicked,
67 this, [=] (
bool checked) {
68 setRXFreq(ui->TXFreq_lab->getFreq());
96 if((idx =
ui->bandSel_cb->findText(band_name)) >= 0) {
98 int cur_mode =
ui->Mode_cb->value();
100 ui->bandSel_cb->setCurrentIndex(idx);
103 ui->Mode_cb->setValue(cur_mode);
116 ui->waterfall_plt->setFreqMarker(freq);
119 ui->spectrum_plt->setFreqMarker(freq);
122 ui->RXFreq_lab->setFreq(freq);
132 ui->TXFreq_lab->setFreq(freq);
QString findBand(double freq) const
GUISoDa::Listener * listener
void setTXFreq_nocross(double freq)
QString auto_bandswitch_target
void setRXFreq_nocross(double freq)
void setRXFreq(double freq)
void setSpectrumCenter(double freq)
void setTXFreq(double freq)
GUISoDa::BandMap band_map
void updateBandDisplay(double freq)
void setTXFreq(double freq)
set the TX frequency label to freq, and send the requested frequency to the SDR radio server...
void setRXFreq(double freq)
set the RX frequency label to freq, and send the requested frequency to the SDR radio server...