30 #include "ui_mainwindow.h" 32 #include <boost/format.hpp> 38 connect(
ui->CWSpeed_sli, SIGNAL(valueChanged(
int)),
40 connect(
ui->CWSpeed_sli, &QSlider::valueChanged,
42 ui->CWSpeed_lbl->setText(QString(
"%1").arg(s, 2));
44 connect(
ui->Sidetone_sli, SIGNAL(valueChanged(
int)),
45 listener, SLOT(setSidetoneVolume(
int)));
46 connect(
ui->TXPower_sli, SIGNAL(valueChanged(
int)),
49 connect(
ui->FromGrid_le, SIGNAL(textChanged(
const QString &)),
50 ui->FromGrid_lab, SLOT(setText(
const QString &)));
53 connect(
ui->openLog_btn, SIGNAL(clicked()),
54 ui->LogView, SLOT(readLogReportDlg()));
55 connect(
ui->writeLogReport_btn, SIGNAL(clicked()),
56 ui->LogView, SLOT(writeLogReportDlg()));
58 connect(
ui->saveConfig_btn, SIGNAL(clicked()),
61 connect(
ui->saveConfigAs_btn, SIGNAL(clicked()),
63 connect(
ui->openConfig_btn, SIGNAL(clicked()),
78 QString fname = QFileDialog::getSaveFileName(
this,
79 tr(
"Save Configuration to File"),
81 tr(
"*.conf (*.conf);;All Files(*)"));
82 if(!fname.isEmpty()) {
83 settings_p =
new QSettings(fname, QSettings::NativeFormat,
this);
90 QString fname = QFileDialog::getOpenFileName(
this,
91 tr(
"Read Configuration from File"),
93 tr(
"*.conf (*.conf);;All Files(*)"));
94 if(!fname.isEmpty()) {
95 settings_p =
new QSettings(fname, QSettings::NativeFormat,
this);
GUISoDa::Listener * listener
void widgetSaveRestore(QObject *op, const QString &par, bool save)
GUISoDa::BandMap band_map
void bandMapSaveRestore(GUISoDa::BandMap &bmap, bool save)