diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-10 15:34:57 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-10 15:34:57 -0300 |
commit | 1baef83791ce1dd29b4784420dc9c34cd5ff9680 (patch) | |
tree | c1223f24c3e328f024c580ccaa456cc834588e49 /qt-ui | |
parent | ad5c18655365d5f8adad9397d7dc0e52d2522fdd (diff) | |
download | subsurface-1baef83791ce1dd29b4784420dc9c34cd5ff9680.tar.gz |
Added the option to create a new dive from the menu.
This patch adds a dive from the menu, it's the dive that will
be used to add a new dive plan. so, I also removed the option
'add imput plan' from the menu.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 13 | ||||
-rw-r--r-- | qt-ui/mainwindow.ui | 7 |
2 files changed, 11 insertions, 9 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index ce9aadc62..d432928b4 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -205,11 +205,20 @@ void MainWindow::on_actionDownloadWeb_triggered() void MainWindow::on_actionEditDeviceNames_triggered() { - qDebug("actionEditDeviceNames");} + qDebug("actionEditDeviceNames"); +} void MainWindow::on_actionAddDive_triggered() { - qDebug("actionAddDive"); + struct dive *dive; + dive = alloc_dive(); + record_dive(dive); + process_dives(FALSE, FALSE); + + ui->InfoWidget->reload(); + ui->globe->reload(); + ui->ListWidget->reload(DiveTripModel::TREE); + ui->ListWidget->setFocus(); } void MainWindow::on_actionRenumber_triggered() diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index fbf10cdf8..a29cb6179 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -157,12 +157,6 @@ </property> <addaction name="actionSelectEvents"/> </widget> - <widget class="QMenu" name="menuPlanner"> - <property name="title"> - <string>Planner</string> - </property> - <addaction name="actionInputPlan"/> - </widget> <widget class="QMenu" name="menuHelp"> <property name="title"> <string>Help</string> @@ -174,7 +168,6 @@ <addaction name="menuLog"/> <addaction name="menuView"/> <addaction name="menuFilter"/> - <addaction name="menuPlanner"/> <addaction name="menuHelp"/> </widget> <action name="actionNew"> |