diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-06-01 16:29:38 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-01 13:14:24 -0700 |
commit | 82d3f088a40545624f0d1ac61ca990e05325081c (patch) | |
tree | af92a082bc655a569e57579e7c66538737af4ce9 | |
parent | b9a32343711008f8db4fb6d26fafe85698161052 (diff) | |
download | subsurface-82d3f088a40545624f0d1ac61ca990e05325081c.tar.gz |
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>
-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> |