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>
This commit is contained in:
Tomaz Canabrava 2015-02-09 16:28:33 -02:00 committed by Dirk Hohndel
parent 7d48c1fc26
commit 727e397aa5

View file

@ -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