mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Planner: show the plan notes in the new widget
That was easy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e93bf1e559
commit
6333f3aa35
3 changed files with 7 additions and 0 deletions
|
@ -842,6 +842,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
|
|||
#endif
|
||||
if (plannerModel->recalcQ() && !diveplan_empty(&diveplan)) {
|
||||
plan(&diveplan, &cache, &tempDive, stagingDive, isPlanner());
|
||||
MainWindow::instance()->setPlanNotes(tempDive->notes);
|
||||
addDecoToModel();
|
||||
if (mode == ADD || mode == PLAN) {
|
||||
// copy the samples and events, but don't overwrite the cylinders
|
||||
|
|
|
@ -415,6 +415,11 @@ void MainWindow::planCreated()
|
|||
refreshDisplay();
|
||||
}
|
||||
|
||||
void MainWindow::setPlanNotes(const char *notes)
|
||||
{
|
||||
ui.divePlanOutput->setText(notes);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDivePlanner_triggered()
|
||||
{
|
||||
if(!plannerStateClean())
|
||||
|
|
|
@ -77,6 +77,7 @@ public:
|
|||
ProfileWidget2 *graphics() const;
|
||||
void setLoadedWithFiles(bool filesFromCommandLine);
|
||||
bool filesFromCommandLine() const;
|
||||
void setPlanNotes(const char *notes);
|
||||
private
|
||||
slots:
|
||||
/* file menu action */
|
||||
|
|
Loading…
Add table
Reference in a new issue