mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Add radar wireframe debug menu selection
This commit is contained in:
		
							parent
							
								
									77e02b76b1
								
							
						
					
					
						commit
						f010ea8fad
					
				
					 7 changed files with 53 additions and 5 deletions
				
			
		|  | @ -644,6 +644,11 @@ void MainWindow::on_actionDumpRadarProductRecords_triggered() | |||
|    manager::RadarProductManager::DumpRecords(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_actionRadarWireframe_triggered(bool checked) | ||||
| { | ||||
|    p->activeMap_->SetRadarWireframeEnabled(checked); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_actionUserManual_triggered() | ||||
| { | ||||
|    QDesktopServices::openUrl(QUrl {"https://supercell-wx.readthedocs.io/"}); | ||||
|  | @ -1487,6 +1492,9 @@ void MainWindowImpl::UpdateRadarProductSettings() | |||
|    mainWindow_->ui->smoothRadarDataCheckBox->setCheckState( | ||||
|       activeMap_->GetSmoothingEnabled() ? Qt::CheckState::Checked : | ||||
|                                           Qt::CheckState::Unchecked); | ||||
| 
 | ||||
|    mainWindow_->ui->actionRadarWireframe->setChecked( | ||||
|       activeMap_->GetRadarWireframeEnabled()); | ||||
| } | ||||
| 
 | ||||
| void MainWindowImpl::UpdateRadarSite() | ||||
|  |  | |||
|  | @ -29,7 +29,7 @@ public: | |||
|    void keyPressEvent(QKeyEvent* ev) override final; | ||||
|    void keyReleaseEvent(QKeyEvent* ev) override final; | ||||
|    void showEvent(QShowEvent* event) override; | ||||
|    void closeEvent(QCloseEvent *event) override; | ||||
|    void closeEvent(QCloseEvent* event) override; | ||||
| 
 | ||||
| signals: | ||||
|    void ActiveMapMoved(double latitude, double longitude); | ||||
|  | @ -49,6 +49,7 @@ private slots: | |||
|    void on_actionImGuiDebug_triggered(); | ||||
|    void on_actionDumpLayerList_triggered(); | ||||
|    void on_actionDumpRadarProductRecords_triggered(); | ||||
|    void on_actionRadarWireframe_triggered(bool checked); | ||||
|    void on_actionUserManual_triggered(); | ||||
|    void on_actionDiscord_triggered(); | ||||
|    void on_actionGitHubRepository_triggered(); | ||||
|  |  | |||
|  | @ -97,6 +97,8 @@ | |||
|     <addaction name="separator"/> | ||||
|     <addaction name="actionDumpLayerList"/> | ||||
|     <addaction name="actionDumpRadarProductRecords"/> | ||||
|     <addaction name="separator"/> | ||||
|     <addaction name="actionRadarWireframe"/> | ||||
|    </widget> | ||||
|    <widget class="QMenu" name="menuTools"> | ||||
|     <property name="title"> | ||||
|  | @ -504,6 +506,14 @@ | |||
|     <string>Location &Marker Manager</string> | ||||
|    </property> | ||||
|   </action> | ||||
|   <action name="actionRadarWireframe"> | ||||
|    <property name="checkable"> | ||||
|     <bool>true</bool> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string>Radar &Wireframe</string> | ||||
|    </property> | ||||
|   </action> | ||||
|  </widget> | ||||
|  <resources> | ||||
|   <include location="../../../../scwx-qt.qrc"/> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat