summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-22 15:57:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-22 15:57:26 -0700
commit31449dca22873e500842ab1cfcca3a211764d98a (patch)
tree51142e5b4148f25d5e416b6b621ed83447cc43cc /qt-ui/mainwindow.cpp
parent81858167ac3f69e99a1108fa305f2865417e2b81 (diff)
parent880b98ed35c2dbf3b5a015784323894c59bc7feb (diff)
downloadsubsurface-31449dca22873e500842ab1cfcca3a211764d98a.tar.gz
Merge branch 'divePlannerTry3' of github.com:tcanabrava/subsurface
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 06e6b7734..b61f962c4 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -32,6 +32,7 @@
#include "subsurfacewebservices.h"
#include "divecomputermanagementdialog.h"
#include "simplewidgets.h"
+#include "diveplanner.h"
static MainWindow* instance = 0;
@@ -181,6 +182,16 @@ void MainWindow::on_actionPrint_triggered()
qDebug("actionPrint");
}
+void MainWindow::on_actionDivePlanner_triggered()
+{
+ DivePlanner *planner = DivePlanner::instance();
+ if (planner->exec() == QDialog::Accepted){
+ struct dive *d = planner->getDive();
+ qDebug() << "Finish me.";
+ }
+}
+
+
void MainWindow::on_actionPreferences_triggered()
{
PreferencesDialog::instance()->show();