Added a few additional directed message short commands
This commit is contained in:
parent
b10ccc370f
commit
e6f83e999b
@ -7417,6 +7417,43 @@ void MainWindow::buildQueryMenu(QMenu * menu, QString call){
|
|||||||
toggleTx(true);
|
toggleTx(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
auto hwAction = menu->addAction(QString("%1 HW CPY? - How do you copy?").arg(call).trimmed());
|
||||||
|
connect(hwAction, &QAction::triggered, this, [this](){
|
||||||
|
|
||||||
|
QString selectedCall = callsignSelected();
|
||||||
|
if(selectedCall.isEmpty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
addMessageText(QString("%1 HW CPY?").arg(selectedCall), true);
|
||||||
|
toggleTx(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
auto rrAction = menu->addAction(QString("%1 RR - Roger. Received. I copy.").arg(call).trimmed());
|
||||||
|
connect(rrAction, &QAction::triggered, this, [this](){
|
||||||
|
|
||||||
|
QString selectedCall = callsignSelected();
|
||||||
|
if(selectedCall.isEmpty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
addMessageText(QString("%1 RR").arg(selectedCall), true);
|
||||||
|
toggleTx(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
auto fbAction = menu->addAction(QString("%1 FB - Fine Business").arg(call).trimmed());
|
||||||
|
connect(fbAction, &QAction::triggered, this, [this](){
|
||||||
|
|
||||||
|
QString selectedCall = callsignSelected();
|
||||||
|
if(selectedCall.isEmpty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
addMessageText(QString("%1 FB").arg(selectedCall), true);
|
||||||
|
toggleTx(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
auto sevenThreeAction = menu->addAction(QString("%1 73 - I send my best regards / end of contact").arg(call).trimmed());
|
auto sevenThreeAction = menu->addAction(QString("%1 73 - I send my best regards / end of contact").arg(call).trimmed());
|
||||||
connect(sevenThreeAction, &QAction::triggered, this, [this](){
|
connect(sevenThreeAction, &QAction::triggered, this, [this](){
|
||||||
|
|
||||||
@ -8933,11 +8970,11 @@ void MainWindow::processCommandActivity() {
|
|||||||
qth = grid;
|
qth = grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
reply = QString("%1 %2").arg(d.from).arg(qth);
|
reply = QString("%1 QTH %2").arg(d.from).arg(qth);
|
||||||
}
|
}
|
||||||
// QUERIED STATION MESSAGE
|
// QUERIED STATION MESSAGE
|
||||||
else if (d.cmd == "&" && !isAllCall) {
|
else if (d.cmd == "&" && !isAllCall) {
|
||||||
reply = QString("%1 %2").arg(d.from).arg(m_config.my_station());
|
reply = QString("%1 QTC %2").arg(d.from).arg(m_config.my_station());
|
||||||
}
|
}
|
||||||
// QUERIED STATIONS HEARD
|
// QUERIED STATIONS HEARD
|
||||||
else if (d.cmd == "$" && !isAllCall) {
|
else if (d.cmd == "$" && !isAllCall) {
|
||||||
|
14
varicode.cpp
14
varicode.cpp
@ -44,8 +44,8 @@ QMap<QString, int> directed_cmds = {
|
|||||||
{"@", 1 }, // query qth
|
{"@", 1 }, // query qth
|
||||||
{"&", 2 }, // query station message
|
{"&", 2 }, // query station message
|
||||||
{"$", 3 }, // query station(s) heard
|
{"$", 3 }, // query station(s) heard
|
||||||
{"%", 5 }, // query pwr
|
|
||||||
|
|
||||||
|
{"%", 5 }, // query pwr
|
||||||
{"|", 6 }, // retransmit message
|
{"|", 6 }, // retransmit message
|
||||||
{"!", 7 }, // alert message
|
{"!", 7 }, // alert message
|
||||||
{"#", 8 }, // all or nothing message
|
{"#", 8 }, // all or nothing message
|
||||||
@ -54,10 +54,12 @@ QMap<QString, int> directed_cmds = {
|
|||||||
// {"/", 10 }, // unused? (can we even use stroke?)
|
// {"/", 10 }, // unused? (can we even use stroke?)
|
||||||
|
|
||||||
// directed responses
|
// directed responses
|
||||||
{" HW?", 18 }, // how do you copy?
|
{" QTC", 16 }, // this is my qtc
|
||||||
{" QRZ", 19 }, // who is calling me?
|
{" QTH", 17 }, // this is my qth
|
||||||
|
{" FB", 18 }, // fine business
|
||||||
|
{" HW CPY?", 19 }, // how do you copy?
|
||||||
{" HEARING", 20 }, // i am hearing the following stations
|
{" HEARING", 20 }, // i am hearing the following stations
|
||||||
{" RR", 21 }, // roger roger (not visible in UI but still exists)
|
{" RR", 21 }, // roger roger
|
||||||
{" QSL?", 22 }, // do you copy?
|
{" QSL?", 22 }, // do you copy?
|
||||||
{" QSL", 23 }, // i copy
|
{" QSL", 23 }, // i copy
|
||||||
{" PWR", 24 }, // power level
|
{" PWR", 24 }, // power level
|
||||||
@ -70,12 +72,12 @@ QMap<QString, int> directed_cmds = {
|
|||||||
{" ", 31 }, // send freetext
|
{" ", 31 }, // send freetext
|
||||||
};
|
};
|
||||||
|
|
||||||
QSet<int> allowed_cmds = {0, 1, 2, 3, /*4,*/ 5, 6, 7, 8, /*...*/ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
|
QSet<int> allowed_cmds = {0, 1, 2, 3, /*4,*/ 5, 6, 7, 8, /*...*/ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
|
||||||
|
|
||||||
QSet<int> buffered_cmds = {6, 7, 8};
|
QSet<int> buffered_cmds = {6, 7, 8};
|
||||||
|
|
||||||
QString callsign_pattern = QString("(?<callsign>[A-Z0-9/]+)");
|
QString callsign_pattern = QString("(?<callsign>[A-Z0-9/]+)");
|
||||||
QString optional_cmd_pattern = QString("(?<cmd>\\s?(?:AGN[?]|ACK|73|YES|NO|SNR|PWR|QSL[?]?|RR|HEARING|[?@&$%|!# ]))?");
|
QString optional_cmd_pattern = QString("(?<cmd>\\s?(?:AGN[?]|ACK|73|YES|NO|SNR|PWR|QSL[?]?|RR|HEARING|HW CPY[?]|FB|QTH|QTC|[?@&$%|!# ]))?");
|
||||||
QString optional_grid_pattern = QString("(?<grid>\\s?[A-R]{2}[0-9]{2})?");
|
QString optional_grid_pattern = QString("(?<grid>\\s?[A-R]{2}[0-9]{2})?");
|
||||||
QString optional_extended_grid_pattern = QString("^(?<grid>\\s?(?:[A-R]{2}[0-9]{2}(?:[A-X]{2}(?:[0-9]{2})?)*))?");
|
QString optional_extended_grid_pattern = QString("^(?<grid>\\s?(?:[A-R]{2}[0-9]{2}(?:[A-X]{2}(?:[0-9]{2})?)*))?");
|
||||||
QString optional_pwr_pattern = QString("(?<pwr>(?<=PWR)\\s?\\d+\\s?[KM]?W)?");
|
QString optional_pwr_pattern = QString("(?<pwr>(?<=PWR)\\s?\\d+\\s?[KM]?W)?");
|
||||||
|
Loading…
Reference in New Issue
Block a user