diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-07-25 12:30:20 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-25 13:51:44 -0700 |
commit | 1aaa37e5116148652a9ce7193d14320e30ee5bb1 (patch) | |
tree | b1062eadd1f4480772afd49fd81b67af346c5a44 /qt-ui/mainwindow.cpp | |
parent | 156ad42a3cc9e17082d13bcb232de551279f4c8b (diff) | |
download | subsurface-1aaa37e5116148652a9ce7193d14320e30ee5bb1.tar.gz |
Re-enable the dive site edit
Since now we found the perfect way to deal with dive site handling on the
dive, we can reenable this widget.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 971b31c1c..2b3b30a6a 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -39,6 +39,8 @@ #include "usersurvey.h" #include "divesitehelpers.h" #include "windowtitleupdate.h" +#include "locationinformation.h" + #ifndef NO_USERMANUAL #include "usermanual.h" #endif @@ -107,11 +109,16 @@ MainWindow::MainWindow() : QMainWindow(), profLayout->addWidget(toolBar); profLayout->addWidget(profileWidget); profileContainer->setLayout(profLayout); + + LocationInformationWidget * diveSiteEdit = new LocationInformationWidget(); + QWidget *diveSitePictures = new QWidget(); // Placeholder + registerApplicationState("Default", mainTab, profileContainer, diveListView, globeGps ); registerApplicationState("AddDive", mainTab, profileContainer, diveListView, globeGps ); registerApplicationState("EditDive", mainTab, profileContainer, diveListView, globeGps ); registerApplicationState("PlanDive", plannerWidget, profileContainer, plannerSettings, plannerDetails ); registerApplicationState("EditPlannedDive", plannerWidget, profileContainer, diveListView, globeGps ); + registerApplicationState("EditDiveSite", diveSiteEdit, diveSitePictures, diveListView, globeGps); setApplicationState("Default"); @@ -197,6 +204,10 @@ MainWindow::~MainWindow() m_Instance = NULL; } +void MainWindow::on_actionDiveSiteEdit_triggered() { + setApplicationState("EditDiveSite"); +} + void MainWindow::enableDisableCloudActions() { #ifdef USE_LIBGIT23_API |