Fixed #38: Moved Show Heartbeats menu item to the View menu
This commit is contained in:
		
							parent
							
								
									9ddfec5e72
								
							
						
					
					
						commit
						8c81b3b83a
					
				| @ -2453,6 +2453,9 @@ void MainWindow::on_menuWindow_aboutToShow(){ | ||||
| #if __APPLE__ | ||||
|     rebuildMacQAction(ui->menuWindow, ui->actionShow_Call_Activity_Columns); | ||||
| #endif | ||||
| 
 | ||||
|     ui->actionShow_Band_Heartbeats_and_ACKs->setChecked(!m_hbHidden); | ||||
|     ui->actionShow_Band_Heartbeats_and_ACKs->setEnabled(ui->actionShow_Band_Activity->isChecked()); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_actionShow_Fullscreen_triggered(bool checked){ | ||||
| @ -2480,6 +2483,11 @@ void MainWindow::on_actionShow_Band_Activity_triggered(bool checked){ | ||||
|     m_bandActivityWasVisible = checked; | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_actionShow_Band_Heartbeats_and_ACKs_triggered(bool checked){ | ||||
|     m_hbHidden = !checked; | ||||
|     displayBandActivity(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_actionShow_Call_Activity_triggered(bool checked){ | ||||
|     auto hsizes = ui->textHorizontalSplitter->sizes(); | ||||
|     hsizes[2] = checked ? ui->textHorizontalSplitter->width()/4 : 0; | ||||
| @ -6609,16 +6617,6 @@ void MainWindow::on_clearAction_triggered(QObject * sender){ | ||||
| } | ||||
| 
 | ||||
| void MainWindow::buildHeartbeatMenu(QMenu *menu){ | ||||
|     auto hide = menu->addAction("Show Heartbeats and ACKs"); | ||||
|     hide->setCheckable(true); | ||||
|     hide->setChecked(!m_hbHidden); | ||||
|     connect(hide, &QAction::triggered, this, [this](bool checked){ | ||||
|       m_hbHidden = !checked; | ||||
|       displayBandActivity(); | ||||
|     }); | ||||
| 
 | ||||
|     menu->addSeparator(); | ||||
| 
 | ||||
|     buildRepeatMenu(menu, ui->hbMacroButton, &m_hbInterval); | ||||
| 
 | ||||
|     menu->addSeparator(); | ||||
|  | ||||
| @ -180,6 +180,7 @@ private slots: | ||||
|   void on_actionShow_Fullscreen_triggered(bool checked); | ||||
|   void on_actionShow_Frequency_Clock_triggered(bool checked); | ||||
|   void on_actionShow_Band_Activity_triggered(bool checked); | ||||
|   void on_actionShow_Band_Heartbeats_and_ACKs_triggered(bool checked); | ||||
|   void on_actionShow_Call_Activity_triggered(bool checked); | ||||
|   void on_actionShow_Waterfall_triggered(bool checked); | ||||
|   void on_actionShow_Waterfall_Controls_triggered(bool checked); | ||||
|  | ||||
| @ -4700,6 +4700,7 @@ list. The list can be maintained in Settings (F2).</string> | ||||
|     <addaction name="actionShow_Frequency_Clock"/> | ||||
|     <addaction name="separator"/> | ||||
|     <addaction name="actionShow_Band_Activity"/> | ||||
|     <addaction name="actionShow_Band_Heartbeats_and_ACKs"/> | ||||
|     <addaction name="actionShow_Band_Activity_Columns"/> | ||||
|     <addaction name="actionSort_Band_Activity"/> | ||||
|     <addaction name="separator"/> | ||||
| @ -5600,6 +5601,14 @@ list. The list can be maintained in Settings (F2).</string> | ||||
|     <string>CQ...</string> | ||||
|    </property> | ||||
|   </action> | ||||
|   <action name="actionShow_Band_Heartbeats_and_ACKs"> | ||||
|    <property name="checkable"> | ||||
|     <bool>true</bool> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string>Show Band Heartbeats and ACKs</string> | ||||
|    </property> | ||||
|   </action> | ||||
|  </widget> | ||||
|  <layoutdefault spacing="6" margin="11"/> | ||||
|  <customwidgets> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jordan Sherer
						Jordan Sherer