Marble

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

KDE's Doxygen guidelines are available online.