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