Marble

PrintOptionsWidget.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#include "PrintOptionsWidget.h"
7
8namespace Marble
9{
10
11PrintOptionsWidget::PrintOptionsWidget(QWidget *parent, Qt::WindowFlags flags)
12 : QWidget(parent, flags)
13{
14 setupUi(this);
15}
16
17bool PrintOptionsWidget::printMap() const
18{
19 return mapCheckBox->isChecked();
20}
21
22void PrintOptionsWidget::setPrintMap(bool print)
23{
24 mapCheckBox->setChecked(print);
25}
26
27bool PrintOptionsWidget::printBackground() const
28{
29 return backgroundCheckBox->isChecked();
30}
31
32void PrintOptionsWidget::setPrintBackground(bool print)
33{
34 backgroundCheckBox->setChecked(print);
35}
36
37bool PrintOptionsWidget::printLegend() const
38{
39 return legendCheckBox->isChecked();
40}
41
42void PrintOptionsWidget::setPrintLegend(bool print)
43{
44 legendCheckBox->setChecked(print);
45}
46
47bool PrintOptionsWidget::printRouteSummary() const
48{
49 return routeSummaryCheckBox->isChecked();
50}
51
52void PrintOptionsWidget::setPrintRouteSummary(bool print)
53{
54 routeSummaryCheckBox->setChecked(print);
55}
56
57bool PrintOptionsWidget::printDrivingInstructions() const
58{
59 return drivingInstructionsCheckBox->isChecked();
60}
61
62void PrintOptionsWidget::setPrintDrivingInstructions(bool print)
63{
64 drivingInstructionsCheckBox->setChecked(print);
65}
66
67void PrintOptionsWidget::setBackgroundControlsEnabled(bool enabled)
68{
69 backgroundCheckBox->setEnabled(enabled);
70}
71
72void PrintOptionsWidget::setLegendControlsEnabled(bool enabled)
73{
74 legendCheckBox->setEnabled(enabled);
75}
76
77void PrintOptionsWidget::setRouteControlsEnabled(bool enabled)
78{
79 routeGroupBox->setEnabled(enabled);
80}
81
82bool PrintOptionsWidget::printDrivingInstructionsAdvice() const
83{
84 return drivingInstructionsAdviceCheckBox->isChecked();
85}
86
87void PrintOptionsWidget::setPrintDrivingInstructionsAdvice(bool enabled)
88{
89 drivingInstructionsAdviceCheckBox->setChecked(enabled);
90}
91
92}
93
94#include "moc_PrintOptionsWidget.cpp"
Binds a QML item to a specific geodetic location in screen coordinates.
typedef WindowFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.