diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 1 | ||||
-rw-r--r-- | qt-ui/mainwindow.ui | 10 |
3 files changed, 13 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index c0c65bd99..9fa1a81d1 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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"); diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index a9686dcd9..ea09ca52d 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -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(); diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index e097b6bb9..28be04843 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -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> |