mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add print button to planner
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2785d7bc3e
commit
6699e3ab3e
5 changed files with 34 additions and 7 deletions
|
@ -277,6 +277,7 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg
|
|||
connect(ui.display_duration, SIGNAL(toggled(bool)), plannerModel, SLOT(setDisplayDuration(bool)));
|
||||
connect(ui.display_runtime, SIGNAL(toggled(bool)), plannerModel, SLOT(setDisplayRuntime(bool)));
|
||||
connect(ui.display_transitions, SIGNAL(toggled(bool)), plannerModel, SLOT(setDisplayTransitions(bool)));
|
||||
connect(ui.printPlan, SIGNAL(pressed()), this, SLOT(printDecoPlan()));
|
||||
|
||||
// Creating (and canceling) the plan
|
||||
connect(ui.buttonBox, SIGNAL(accepted()), plannerModel, SLOT(createPlan()));
|
||||
|
@ -320,6 +321,11 @@ void DivePlannerWidget::decoSacChanged(const QString &decosac)
|
|||
plannerModel->setDecoSac(decosac.toInt());
|
||||
}
|
||||
|
||||
void DivePlannerWidget::printDecoPlan()
|
||||
{
|
||||
MainWindow::instance()->printPlan();
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setPlanMode(Mode m)
|
||||
{
|
||||
mode = m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue