mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ad5c186553
commit
1baef83791
2 changed files with 11 additions and 9 deletions
|
@ -205,11 +205,20 @@ void MainWindow::on_actionDownloadWeb_triggered()
|
||||||
|
|
||||||
void MainWindow::on_actionEditDeviceNames_triggered()
|
void MainWindow::on_actionEditDeviceNames_triggered()
|
||||||
{
|
{
|
||||||
qDebug("actionEditDeviceNames");}
|
qDebug("actionEditDeviceNames");
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionAddDive_triggered()
|
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()
|
void MainWindow::on_actionRenumber_triggered()
|
||||||
|
|
|
@ -157,12 +157,6 @@
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionSelectEvents"/>
|
<addaction name="actionSelectEvents"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuPlanner">
|
|
||||||
<property name="title">
|
|
||||||
<string>Planner</string>
|
|
||||||
</property>
|
|
||||||
<addaction name="actionInputPlan"/>
|
|
||||||
</widget>
|
|
||||||
<widget class="QMenu" name="menuHelp">
|
<widget class="QMenu" name="menuHelp">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Help</string>
|
<string>Help</string>
|
||||||
|
@ -174,7 +168,6 @@
|
||||||
<addaction name="menuLog"/>
|
<addaction name="menuLog"/>
|
||||||
<addaction name="menuView"/>
|
<addaction name="menuView"/>
|
||||||
<addaction name="menuFilter"/>
|
<addaction name="menuFilter"/>
|
||||||
<addaction name="menuPlanner"/>
|
|
||||||
<addaction name="menuHelp"/>
|
<addaction name="menuHelp"/>
|
||||||
</widget>
|
</widget>
|
||||||
<action name="actionNew">
|
<action name="actionNew">
|
||||||
|
|
Loading…
Add table
Reference in a new issue