kopia lustrzana https://gitlab.com/eliggett/wfview
Added Control-P ("PTT Toggle") shortcut. Flips the state of transmit.
rodzic
be79aea7c0
commit
3ca1dc38e9
15
wfmain.cpp
15
wfmain.cpp
|
@ -1087,6 +1087,10 @@ void wfmain::setupKeyShortcuts()
|
|||
keyControlR->setKey(Qt::CTRL | Qt::Key_R);
|
||||
connect(keyControlR, SIGNAL(activated()), this, SLOT(shortcutControlR()));
|
||||
|
||||
keyControlR = new QShortcut(this);
|
||||
keyControlR->setKey(Qt::CTRL | Qt::Key_P);
|
||||
connect(keyControlR, SIGNAL(activated()), this, SLOT(shortcutControlP()));
|
||||
|
||||
keyControlI = new QShortcut(this);
|
||||
keyControlI->setKey(Qt::CTRL | Qt::Key_I);
|
||||
connect(keyControlI, SIGNAL(activated()), this, SLOT(shortcutControlI()));
|
||||
|
@ -3131,6 +3135,17 @@ void wfmain::shortcutControlR()
|
|||
extChangedRsPrefs(rs_pttOff);
|
||||
}
|
||||
|
||||
void wfmain::shortcutControlP()
|
||||
{
|
||||
// Toggle PTT
|
||||
if(amTransmitting) {
|
||||
extChangedRsPrefs(rs_pttOff);
|
||||
} else {
|
||||
extChangedRsPrefs(rs_pttOn);
|
||||
showStatusBarText(QString("Transmitting. Press Control-P again to receive."));
|
||||
}
|
||||
}
|
||||
|
||||
void wfmain::shortcutControlI()
|
||||
{
|
||||
// Enable ATU
|
||||
|
|
1
wfmain.h
1
wfmain.h
|
@ -348,6 +348,7 @@ private slots:
|
|||
|
||||
void shortcutControlT();
|
||||
void shortcutControlR();
|
||||
void shortcutControlP();
|
||||
void shortcutControlI();
|
||||
void shortcutControlU();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue