Added control menu
This commit is contained in:
parent
97763ed82d
commit
8c564b6637
@ -2346,6 +2346,29 @@ void rebuildMacQAction(QMenu *menu, QAction *existingAction){
|
|||||||
menu->removeAction(dummyAction);
|
menu->removeAction(dummyAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_menuControl_aboutToShow(){
|
||||||
|
ui->actionEnable_Spotting->setChecked(ui->spotButton->isChecked());
|
||||||
|
ui->actionEnable_Auto_Reply->setChecked(ui->autoReplyButton->isChecked());
|
||||||
|
ui->actionEnable_Heartbeat->setChecked(ui->heartbeatButton->isChecked());
|
||||||
|
ui->actionEnable_Selcall->setChecked(ui->selcalButton->isChecked());
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionEnable_Spotting_toggled(bool checked){
|
||||||
|
ui->spotButton->setChecked(checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionEnable_Auto_Reply_toggled(bool checked){
|
||||||
|
ui->autoReplyButton->setChecked(checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionEnable_Heartbeat_toggled(bool checked){
|
||||||
|
ui->heartbeatButton->setChecked(checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionEnable_Selcall_toggled(bool checked){
|
||||||
|
ui->selcalButton->setChecked(checked);
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::on_menuWindow_aboutToShow(){
|
void MainWindow::on_menuWindow_aboutToShow(){
|
||||||
auto hsizes = ui->textHorizontalSplitter->sizes();
|
auto hsizes = ui->textHorizontalSplitter->sizes();
|
||||||
ui->actionShow_Band_Activity->setChecked(hsizes.at(0) > 0);
|
ui->actionShow_Band_Activity->setChecked(hsizes.at(0) > 0);
|
||||||
@ -7364,7 +7387,6 @@ void MainWindow::resetPushButtonToggleText(QPushButton *btn){
|
|||||||
}
|
}
|
||||||
btn->setStyleSheet(style);
|
btn->setStyleSheet(style);
|
||||||
|
|
||||||
|
|
||||||
#if PUSH_BUTTON_CHECKMARK
|
#if PUSH_BUTTON_CHECKMARK
|
||||||
auto on = "✓ ";
|
auto on = "✓ ";
|
||||||
auto text = btn->text();
|
auto text = btn->text();
|
||||||
|
@ -171,6 +171,11 @@ private slots:
|
|||||||
void on_tx4_editingFinished();
|
void on_tx4_editingFinished();
|
||||||
void on_tx5_currentTextChanged (QString const&);
|
void on_tx5_currentTextChanged (QString const&);
|
||||||
void on_tx6_editingFinished();
|
void on_tx6_editingFinished();
|
||||||
|
void on_menuControl_aboutToShow();
|
||||||
|
void on_actionEnable_Spotting_toggled(bool checked);
|
||||||
|
void on_actionEnable_Auto_Reply_toggled(bool checked);
|
||||||
|
void on_actionEnable_Heartbeat_toggled(bool checked);
|
||||||
|
void on_actionEnable_Selcall_toggled(bool checked);
|
||||||
void on_menuWindow_aboutToShow();
|
void on_menuWindow_aboutToShow();
|
||||||
void on_actionShow_Frequency_Clock_triggered(bool checked);
|
void on_actionShow_Frequency_Clock_triggered(bool checked);
|
||||||
void on_actionShow_Band_Activity_triggered(bool checked);
|
void on_actionShow_Band_Activity_triggered(bool checked);
|
||||||
|
@ -4751,12 +4751,22 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
<addaction name="actionErase_ALL_TXT"/>
|
<addaction name="actionErase_ALL_TXT"/>
|
||||||
<addaction name="actionErase_js8call_log_adi"/>
|
<addaction name="actionErase_js8call_log_adi"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuControl">
|
||||||
|
<property name="title">
|
||||||
|
<string>C&ontrol</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionEnable_Spotting"/>
|
||||||
|
<addaction name="actionEnable_Heartbeat"/>
|
||||||
|
<addaction name="actionEnable_Auto_Reply"/>
|
||||||
|
<addaction name="actionEnable_Selcall"/>
|
||||||
|
</widget>
|
||||||
<addaction name="menuFile"/>
|
<addaction name="menuFile"/>
|
||||||
<addaction name="menuConfig"/>
|
<addaction name="menuConfig"/>
|
||||||
<addaction name="menuDecode"/>
|
<addaction name="menuDecode"/>
|
||||||
<addaction name="menuSave"/>
|
<addaction name="menuSave"/>
|
||||||
<addaction name="menu_Log"/>
|
<addaction name="menu_Log"/>
|
||||||
<addaction name="menuWindow"/>
|
<addaction name="menuWindow"/>
|
||||||
|
<addaction name="menuControl"/>
|
||||||
<addaction name="menuHelp"/>
|
<addaction name="menuHelp"/>
|
||||||
<addaction name="menuView"/>
|
<addaction name="menuView"/>
|
||||||
<addaction name="menuMode"/>
|
<addaction name="menuMode"/>
|
||||||
@ -5559,6 +5569,38 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
<string>Show Tooltips</string>
|
<string>Show Tooltips</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionEnable_Spotting">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Enable Spotting</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionEnable_Heartbeat">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Enable Heartbeat</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionEnable_Auto_Reply">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Enable Auto Reply</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionEnable_Selcall">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Enable Selective Calling</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
Loading…
Reference in New Issue
Block a user