aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-02-09 16:28:33 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-10 10:45:45 -0800
commit727e397aa5882ac2e8a73b485a6cabe389f6d05a (patch)
treeeab83151e2a069af5ab5fd4a29975d8fbefc66d1 /qt-ui
parent7d48c1fc267d44a5dede4bfdcf4e295e1fcf3227 (diff)
downloadsubsurface-727e397aa5882ac2e8a73b485a6cabe389f6d05a.tar.gz
Add the modes for ADD and PLAN
The Plan mode still misses a widget that was done directly inside the mainwindow. I'll extract it from there and create a proper class in the next commit. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index a6779150b..d7deeea81 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -54,7 +54,13 @@ MainWindow::MainWindow() : QMainWindow(),
ProfileWidget2 *profileWidget = new ProfileWidget2();
GlobeGPS *globe = new GlobeGPS();
+ PlannerSettingsWidget *plannerSettings = new PlannerSettingsWidget();
+ DivePlannerWidget *plannerWidget = new DivePlannerWidget();
+ //DivePlannerDetails *plannerDetails = new DivePlannerDetails();
+
registerApplicationState("Default", mainTab, diveListView, profileWidget, globe );
+ registerApplicationState("AddDive", mainTab, diveListView, profileWidget, globe );
+ registerApplicationState("PlanDive", plannerWidget, plannerSettings, profileWidget, globe );
ui.multiFilter->hide();
// what is a sane order for those icons? we should have the ones the user is