30 #include "ui_mainwindow.h" 32 #include <boost/format.hpp> 42 [
this](
const QString & v){
43 ui->RXAnt_sel->addItem(v); });
45 [
this](
const QString & v){
46 ui->TXAnt_sel->addItem(v); });
48 connect(
ui->RXAnt_sel, SIGNAL(currentTextChanged(
const QString &)),
49 listener, SLOT(setRXAnt(
const QString &)));
50 connect(
ui->TXAnt_sel, SIGNAL(currentTextChanged(
const QString &)),
51 listener, SLOT(setTXAnt(
const QString &)));
53 connect(
ui->PTT_btn, SIGNAL(toggled(
bool)),
57 [=](
bool on) {
ui->TXState_lab->setText(on ?
"TX ON" :
"TX OFF"); });
59 connect(
ui->CWCurLine_le, &QLineEdit::returnPressed,
61 { ui->CWOutBound_te->appendPlainText(ui->CWCurLine_le->text());
62 listener->sendCW(ui->CWCurLine_le->text());
63 ui->CWCurLine_le->clear(); });
66 connect(
ui->ClrBuff_btn, SIGNAL(released()),
69 connect(
ui->MyCall_btn, &QPushButton::pressed,
72 for(i = 0; i < ui->RptCount_spin->value(); i++) {
73 sendCannedCW(ui->FromCall_le->text());
77 connect(
ui->MyGrid_btn, &QPushButton::pressed,
80 for(i = 0; i < ui->RptCount_spin->value(); i++) {
81 sendCannedCW(ui->FromGrid_le->text());
85 connect(
ui->MyInfo_btn, &QPushButton::pressed,
88 for(i = 0; i < ui->RptCount_spin->value(); i++) {
89 sendCannedCW(
" " + ui->FromCall_le->text());
91 for(i = 0; i < ui->RptCount_spin->value(); i++) {
96 connect(
ui->Exchange_btn, &QPushButton::pressed,
99 for(i = 0; i < ui->RptCount_spin->value(); i++) {
100 sendCannedCW(
" " + ui->ToCall_le->text());
103 for(i = 0; i <
ui->RptCount_spin->value(); i++) {
106 for(i = 0; i <
ui->RptCount_spin->value(); i++) {
111 connect(
ui->CWV_btn, &QPushButton::pressed,
114 for(i = 0; i < ui->RptCount_spin->value(); i++) {
115 sendCannedCW(
"VVVVVVVVVVVV");
119 connect(
ui->CW73_btn, &QPushButton::pressed,
121 sendCannedCW(
" TNX es 73 de " + ui->FromCall_le->text());
124 connect(
ui->CWQSL_btn, &QPushButton::pressed,
126 sendCannedCW(
" R R R QSL QSL QSL de " + ui->FromCall_le->text());
129 connect(
ui->CWBK_btn, &QPushButton::pressed,
131 sendCannedCW(
" _bk ");
138 ui->CWOutBound_te->appendPlainText(txt);
GUISoDa::Listener * listener
void sendCW(const QString &txt)
void addTXAntName(const QString &ant_name)
void sendCannedCW(const QString &txt)
void addRXAntName(const QString &ant_name)