mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Manage Dive Site from the MainMenu
Trigger the ManageDiveSite from the MainMenu. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									b9a3234371
								
							
						
					
					
						commit
						82d3f088a4
					
				
					 3 changed files with 13 additions and 2 deletions
				
			
		|  | @ -211,6 +211,10 @@ LocationInformationWidget *MainWindow::locationInformationWidget() { | |||
| 	return qobject_cast<LocationInformationWidget*>(applicationState["EditDiveSite"].topLeft); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_actionManage_dive_sites_triggered() { | ||||
| 	enableDiveSiteEdit(displayed_dive.dive_site_uuid); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::enableDiveSiteEdit(uint32_t id) { | ||||
| 	locationInformationWidget()->setLocationId(displayed_dive.dive_site_uuid); | ||||
| 	setApplicationState("EditDiveSite"); | ||||
|  |  | |||
|  | @ -138,6 +138,7 @@ slots: | |||
| 	void on_actionDivePlanner_triggered(); | ||||
| 	void on_actionReplanDive_triggered(); | ||||
| 	void on_action_Check_for_Updates_triggered(); | ||||
| 	void on_actionManage_dive_sites_triggered(); | ||||
| 
 | ||||
| 	void current_dive_changed(int divenr); | ||||
| 	void initialUiSetup(); | ||||
|  |  | |||
|  | @ -99,6 +99,7 @@ | |||
|     <addaction name="actionEditDive"/> | ||||
|     <addaction name="actionDivePlanner"/> | ||||
|     <addaction name="actionReplanDive"/> | ||||
|     <addaction name="actionManage_dive_sites"/> | ||||
|     <addaction name="copy"/> | ||||
|     <addaction name="paste"/> | ||||
|     <addaction name="separator"/> | ||||
|  | @ -718,12 +719,17 @@ | |||
|   </action> | ||||
|   <action name="actionCloudstorageopen"> | ||||
|    <property name="text"> | ||||
|     <string>Cloud storage open</string> | ||||
|     <string>C&loud storage open</string> | ||||
|    </property> | ||||
|   </action> | ||||
|   <action name="actionCloudstoragesave"> | ||||
|    <property name="text"> | ||||
|     <string>Cloud storage save</string> | ||||
|     <string>Clo&ud storage save</string> | ||||
|    </property> | ||||
|   </action> | ||||
|   <action name="actionManage_dive_sites"> | ||||
|    <property name="text"> | ||||
|     <string>Manage dive sites</string> | ||||
|    </property> | ||||
|   </action> | ||||
|  </widget> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue