mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Improved next and current Tx message widget short cuts
Short cut keys implemented via a special key press event handler do not fully integrate with the UI and standard UI implementation guidelines, also they introduce an alternative code path that can diverge from the intended behaviour. Short cuts to set the next Tx message have been added as Ctrl+<number>. Alt+<number> short cuts now do as the help implies i.e. change the current Tx message even if there is another message being transmitted. The log QSO window should only be triggered by a 73 Tx message when transmitting. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4992 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
2aa42f0414
commit
2474f73b7b
@ -765,43 +765,6 @@ void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent
|
||||
int n;
|
||||
switch(e->key())
|
||||
{
|
||||
case Qt::Key_1:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
on_txb1_clicked();
|
||||
e->ignore ();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_2:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
on_txb2_clicked();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_3:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
on_txb3_clicked();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_4:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
on_txb4_clicked();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_5:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
on_txb5_clicked();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_6:
|
||||
if(e->modifiers() & Qt::AltModifier) {
|
||||
on_txb6_clicked();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_D:
|
||||
if(e->modifiers() & Qt::ShiftModifier) {
|
||||
if(!m_decoderBusy) {
|
||||
@ -1846,42 +1809,42 @@ void MainWindow::on_txb1_clicked() //txb1
|
||||
{
|
||||
m_ntx=1;
|
||||
ui->txrb1->setChecked(true);
|
||||
m_restart=true;
|
||||
if (m_transmitting) m_restart=true;
|
||||
}
|
||||
|
||||
void MainWindow::on_txb2_clicked() //txb2
|
||||
{
|
||||
m_ntx=2;
|
||||
ui->txrb2->setChecked(true);
|
||||
m_restart=true;
|
||||
if (m_transmitting) m_restart=true;
|
||||
}
|
||||
|
||||
void MainWindow::on_txb3_clicked() //txb3
|
||||
{
|
||||
m_ntx=3;
|
||||
ui->txrb3->setChecked(true);
|
||||
m_restart=true;
|
||||
if (m_transmitting) m_restart=true;
|
||||
}
|
||||
|
||||
void MainWindow::on_txb4_clicked() //txb4
|
||||
{
|
||||
m_ntx=4;
|
||||
ui->txrb4->setChecked(true);
|
||||
m_restart=true;
|
||||
if (m_transmitting) m_restart=true;
|
||||
}
|
||||
|
||||
void MainWindow::on_txb5_clicked() //txb5
|
||||
{
|
||||
m_ntx=5;
|
||||
ui->txrb5->setChecked(true);
|
||||
m_restart=true;
|
||||
if (m_transmitting) m_restart=true;
|
||||
}
|
||||
|
||||
void MainWindow::on_txb6_clicked() //txb6
|
||||
{
|
||||
m_ntx=6;
|
||||
ui->txrb6->setChecked(true);
|
||||
m_restart=true;
|
||||
if (m_transmitting) m_restart=true;
|
||||
}
|
||||
|
||||
void MainWindow::doubleClickOnCall2(bool shift, bool ctrl)
|
||||
|
@ -1271,7 +1271,10 @@ QLabel[oob="true"] {
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tx 1</string>
|
||||
<string>Tx &1</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+1</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1301,6 +1304,9 @@ QLabel[oob="true"] {
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+4</string>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">buttonGroup</string>
|
||||
</attribute>
|
||||
@ -1332,6 +1338,9 @@ QLabel[oob="true"] {
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+1</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -1366,6 +1375,9 @@ QLabel[oob="true"] {
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+3</string>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">buttonGroup</string>
|
||||
</attribute>
|
||||
@ -1408,7 +1420,10 @@ QLabel[oob="true"] {
|
||||
<string>Switch to this Tx message NOW</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tx 3</string>
|
||||
<string>Tx &3</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+3</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1424,7 +1439,10 @@ QLabel[oob="true"] {
|
||||
<string>Switch to this Tx message NOW</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tx 4</string>
|
||||
<string>Tx &4</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+4</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1472,7 +1490,10 @@ QLabel[oob="true"] {
|
||||
<string>Switch to this Tx message NOW</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tx 5</string>
|
||||
<string>Tx &5</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+5</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1502,6 +1523,9 @@ QLabel[oob="true"] {
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+2</string>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">buttonGroup</string>
|
||||
</attribute>
|
||||
@ -1604,7 +1628,10 @@ QLabel[oob="true"] {
|
||||
<string>Switch to this Tx message NOW</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tx 6</string>
|
||||
<string>Tx &6</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+6</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1620,7 +1647,10 @@ QLabel[oob="true"] {
|
||||
<string>Switch to this Tx message NOW</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tx 2</string>
|
||||
<string>Tx &2</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1650,6 +1680,9 @@ QLabel[oob="true"] {
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+6</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
@ -1684,6 +1717,9 @@ QLabel[oob="true"] {
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+5</string>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">buttonGroup</string>
|
||||
</attribute>
|
||||
|
@ -1,27 +1,28 @@
|
||||
F1 Online User's Guide
|
||||
Ctrl+F1 About WSJT-X
|
||||
F2 Open configuration window
|
||||
F3 Display keyboard shortcuts
|
||||
F4 Clear DX Call, DX Grid, Tx messages 1-5
|
||||
Alt+F4 Exit program
|
||||
F5 Display special mouse commands
|
||||
F6 Open next file in directory
|
||||
Shift+F6 Decode all remaining files in directrory
|
||||
F11 Move Rx frequency down 1 Hz
|
||||
Ctrl+F11 Move Rx and Tx frequencies down 1 Hz
|
||||
F12 Move Rx frequency up 1 Hz
|
||||
Ctrl+F12 Move Rx and Tx frequencies up 1 Hz
|
||||
Alt+1-6 Set next transmission to this number on Tab 1
|
||||
Alt+D Decode again at QSO frequency
|
||||
Shift+D Full decode (both windows)
|
||||
Alt+E Erase
|
||||
Ctrl+F Edit the free text message box
|
||||
Alt+G Generate standard messages
|
||||
Alt+H Halt Tx
|
||||
Ctrl+L Lookup callsign in database, generate standard messages
|
||||
Alt+M Monitor
|
||||
Alt+N Enable Tx
|
||||
Alt+Q Log QSO
|
||||
Alt+S Stop monitoring
|
||||
Alt+T Tune
|
||||
Alt+V Save the most recently completed *.wav file
|
||||
F1 Online User's Guide
|
||||
Ctrl+F1 About WSJT-X
|
||||
F2 Open configuration window
|
||||
F3 Display keyboard shortcuts
|
||||
F4 Clear DX Call, DX Grid, Tx messages 1-5
|
||||
Alt+F4 Exit program
|
||||
F5 Display special mouse commands
|
||||
F6 Open next file in directory
|
||||
Shift+F6 Decode all remaining files in directrory
|
||||
F11 Move Rx frequency down 1 Hz
|
||||
Ctrl+F11 Move Rx and Tx frequencies down 1 Hz
|
||||
F12 Move Rx frequency up 1 Hz
|
||||
Ctrl+F12 Move Rx and Tx frequencies up 1 Hz
|
||||
Alt+1-6 Set now transmission to this number on Tab 1
|
||||
Ctl+1-6 Set next transmission to this number on Tab 1
|
||||
Alt+D Decode again at QSO frequency
|
||||
Shift+D Full decode (both windows)
|
||||
Alt+E Erase
|
||||
Ctrl+F Edit the free text message box
|
||||
Alt+G Generate standard messages
|
||||
Alt+H Halt Tx
|
||||
Ctrl+L Lookup callsign in database, generate standard messages
|
||||
Alt+M Monitor
|
||||
Alt+N Enable Tx
|
||||
Alt+Q Log QSO
|
||||
Alt+S Stop monitoring
|
||||
Alt+T Tune
|
||||
Alt+V Save the most recently completed *.wav file
|
||||
|
Loading…
Reference in New Issue
Block a user