File indexing completed on 2024-04-21 03:49:53

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
0004 //
0005 
0006 #ifndef MARBLE_PRINTOPTIONSWIDGET_H
0007 #define MARBLE_PRINTOPTIONSWIDGET_H
0008 
0009 #include "marble_export.h"
0010 
0011 #include <QWidget>
0012 
0013 #include "ui_PrintOptions.h"
0014 
0015 namespace Marble
0016 {
0017 
0018 class MARBLE_EXPORT PrintOptionsWidget: public QWidget, private Ui::PrintOptions
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit PrintOptionsWidget( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
0024 
0025     bool printMap() const;
0026 
0027     void setPrintMap( bool print );
0028 
0029     bool printBackground() const;
0030 
0031     void setPrintBackground( bool print );
0032 
0033     bool printLegend() const;
0034 
0035     void setPrintLegend( bool print );
0036 
0037     bool printRouteSummary() const;
0038 
0039     void setPrintRouteSummary( bool print );
0040 
0041     bool printDrivingInstructions() const;
0042 
0043     void setPrintDrivingInstructions( bool print );
0044 
0045     bool printDrivingInstructionsAdvice() const;
0046 
0047     void setPrintDrivingInstructionsAdvice( bool print );
0048 
0049     void setBackgroundControlsEnabled( bool enabled );
0050 
0051     void setRouteControlsEnabled( bool enabled );
0052 
0053     void setLegendControlsEnabled( bool enabled );
0054 };
0055 
0056 } // namespace Marble
0057 
0058 #endif // MARBLE_PRINTOPTIONSWIDGET_H