From 727e397aa5882ac2e8a73b485a6cabe389f6d05a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 9 Feb 2015 16:28:33 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui/mainwindow.cpp') 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 -- cgit v1.2.3-70-g09d2