mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-24 05:08:38 -05:00
Add Alt+O hotkey to change the operator quickly without going to the Settings dialog
Thanks to Jim, W2JC, for suggesting this enhancement.
This commit is contained in:
parent
0a02ad75e0
commit
67ab7c7b8b
@ -718,6 +718,7 @@ bool Configuration::x2ToneSpacing() const {return m_->x2ToneSpacing_;}
|
||||
bool Configuration::x4ToneSpacing() const {return m_->x4ToneSpacing_;}
|
||||
bool Configuration::split_mode () const {return m_->split_mode ();}
|
||||
QString Configuration::opCall() const {return m_->opCall_;}
|
||||
void Configuration::opCall (QString const& call) {m_->opCall_ = call;}
|
||||
QString Configuration::udp_server_name () const {return m_->udp_server_name_;}
|
||||
auto Configuration::udp_server_port () const -> port_type {return m_->udp_server_port_;}
|
||||
bool Configuration::accept_udp_requests () const {return m_->accept_udp_requests_;}
|
||||
|
@ -148,6 +148,7 @@ public:
|
||||
bool EMEonly() const;
|
||||
bool post_decodes () const;
|
||||
QString opCall() const;
|
||||
void opCall (QString const&);
|
||||
QString udp_server_name () const;
|
||||
port_type udp_server_port () const;
|
||||
QString n1mm_server_name () const;
|
||||
|
@ -35,6 +35,7 @@
|
||||
<tr><td><b>Alt+M </b></td><td>Monitor</td></tr>
|
||||
<tr><td><b>Alt+N </b></td><td>Enable Tx</td></tr>
|
||||
<tr><td><b>Ctrl+O </b></td><td>Open a .wav file</td></tr>
|
||||
<tr><td><b>Alt+O </b></td><td>Change operator</td></tr>
|
||||
<tr><td><b>Alt+Q </b></td><td>Log QSO</td></tr>
|
||||
<tr><td><b>Alt+S </b></td><td>Stop monitoring</td></tr>
|
||||
<tr><td><b>Alt+T </b></td><td>Tune</td></tr>
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include <QSplashScreen>
|
||||
#include <QUdpSocket>
|
||||
#include <QAbstractItemView>
|
||||
#include <QInputDialog>
|
||||
|
||||
#include "revision_utils.hpp"
|
||||
#include "qt_helpers.hpp"
|
||||
@ -2062,6 +2063,15 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
|
||||
on_actionOpen_triggered();
|
||||
return;
|
||||
}
|
||||
else if(e->modifiers() & Qt::AltModifier) {
|
||||
bool ok;
|
||||
auto call = QInputDialog::getText (this, tr ("Change Operator"), tr ("New operator:"),
|
||||
QLineEdit::Normal, m_config.opCall (), &ok);
|
||||
if (ok) {
|
||||
m_config.opCall (call);
|
||||
}
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_V:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
|
Loading…
Reference in New Issue
Block a user