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 
8 namespace Marble
9 {
10 
PrintOptionsWidget(QWidget * parent,Qt::WindowFlags flags)11 PrintOptionsWidget::PrintOptionsWidget( QWidget * parent, Qt::WindowFlags flags ) :
12         QWidget( parent, flags )
13 {
14     setupUi( this );
15 }
16 
printMap() const17 bool PrintOptionsWidget::printMap() const
18 {
19     return mapCheckBox->isChecked();
20 }
21 
setPrintMap(bool print)22 void PrintOptionsWidget::setPrintMap( bool print )
23 {
24     mapCheckBox->setChecked( print );
25 }
26 
printBackground() const27 bool PrintOptionsWidget::printBackground() const
28 {
29     return backgroundCheckBox->isChecked();
30 }
31 
setPrintBackground(bool print)32 void PrintOptionsWidget::setPrintBackground( bool print )
33 {
34     backgroundCheckBox->setChecked( print );
35 }
36 
printLegend() const37 bool PrintOptionsWidget::printLegend() const
38 {
39     return legendCheckBox->isChecked();
40 }
41 
setPrintLegend(bool print)42 void PrintOptionsWidget::setPrintLegend( bool print )
43 {
44     legendCheckBox->setChecked( print );
45 }
46 
printRouteSummary() const47 bool PrintOptionsWidget::printRouteSummary() const
48 {
49     return routeSummaryCheckBox->isChecked();
50 }
51 
setPrintRouteSummary(bool print)52 void PrintOptionsWidget::setPrintRouteSummary( bool print )
53 {
54     routeSummaryCheckBox->setChecked( print );
55 }
56 
printDrivingInstructions() const57 bool PrintOptionsWidget::printDrivingInstructions() const
58 {
59     return drivingInstructionsCheckBox->isChecked();
60 }
61 
setPrintDrivingInstructions(bool print)62 void PrintOptionsWidget::setPrintDrivingInstructions( bool print )
63 {
64     drivingInstructionsCheckBox->setChecked( print );
65 }
66 
setBackgroundControlsEnabled(bool enabled)67 void PrintOptionsWidget::setBackgroundControlsEnabled( bool enabled )
68 {
69     backgroundCheckBox->setEnabled( enabled );
70 }
71 
setLegendControlsEnabled(bool enabled)72 void PrintOptionsWidget::setLegendControlsEnabled( bool enabled )
73 {
74     legendCheckBox->setEnabled( enabled );
75 }
76 
setRouteControlsEnabled(bool enabled)77 void PrintOptionsWidget::setRouteControlsEnabled( bool enabled )
78 {
79     routeGroupBox->setEnabled( enabled );
80 }
81 
printDrivingInstructionsAdvice() const82 bool PrintOptionsWidget::printDrivingInstructionsAdvice() const
83 {
84     return drivingInstructionsAdviceCheckBox->isChecked();
85 }
86 
setPrintDrivingInstructionsAdvice(bool enabled)87 void PrintOptionsWidget::setPrintDrivingInstructionsAdvice( bool enabled )
88 {
89     drivingInstructionsAdviceCheckBox->setChecked( enabled );
90 }
91 
92 }
93 
94 #include "moc_PrintOptionsWidget.cpp"
95