• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
PrintOptionsWidget.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #include "PrintOptionsWidget.h"
12 
13 namespace Marble
14 {
15 
16 PrintOptionsWidget::PrintOptionsWidget( QWidget * parent, Qt::WindowFlags flags ) :
17  QWidget( parent, flags )
18 {
19  setupUi( this );
20 }
21 
22 bool PrintOptionsWidget::printMap() const
23 {
24  return mapCheckBox->isChecked();
25 }
26 
27 void PrintOptionsWidget::setPrintMap( bool print )
28 {
29  mapCheckBox->setChecked( print );
30 }
31 
32 bool PrintOptionsWidget::printBackground() const
33 {
34  return backgroundCheckBox->isChecked();
35 }
36 
37 void PrintOptionsWidget::setPrintBackground( bool print )
38 {
39  backgroundCheckBox->setChecked( print );
40 }
41 
42 bool PrintOptionsWidget::printLegend() const
43 {
44  return legendCheckBox->isChecked();
45 }
46 
47 void PrintOptionsWidget::setPrintLegend( bool print )
48 {
49  legendCheckBox->setChecked( print );
50 }
51 
52 bool PrintOptionsWidget::printRouteSummary() const
53 {
54  return routeSummaryCheckBox->isChecked();
55 }
56 
57 void PrintOptionsWidget::setPrintRouteSummary( bool print )
58 {
59  routeSummaryCheckBox->setChecked( print );
60 }
61 
62 bool PrintOptionsWidget::printDrivingInstructions() const
63 {
64  return drivingInstructionsCheckBox->isChecked();
65 }
66 
67 void PrintOptionsWidget::setPrintDrivingInstructions( bool print )
68 {
69  drivingInstructionsCheckBox->setChecked( print );
70 }
71 
72 void PrintOptionsWidget::setBackgroundControlsEnabled( bool enabled )
73 {
74  backgroundCheckBox->setEnabled( enabled );
75 }
76 
77 void PrintOptionsWidget::setLegendControlsEnabled( bool enabled )
78 {
79  legendCheckBox->setEnabled( enabled );
80 }
81 
82 void PrintOptionsWidget::setRouteControlsEnabled( bool enabled )
83 {
84  routeGroupBox->setEnabled( enabled );
85 }
86 
87 bool PrintOptionsWidget::printDrivingInstructionsAdvice() const
88 {
89  return drivingInstructionsAdviceCheckBox->isChecked();
90 }
91 
92 void PrintOptionsWidget::setPrintDrivingInstructionsAdvice( bool enabled )
93 {
94  drivingInstructionsAdviceCheckBox->setChecked( enabled );
95 }
96 
97 }
98 
99 #include "PrintOptionsWidget.moc"
Marble::PrintOptionsWidget::setPrintMap
void setPrintMap(bool print)
Definition: PrintOptionsWidget.cpp:27
Marble::PrintOptionsWidget::setRouteControlsEnabled
void setRouteControlsEnabled(bool enabled)
Definition: PrintOptionsWidget.cpp:82
Marble::PrintOptionsWidget::setPrintDrivingInstructions
void setPrintDrivingInstructions(bool print)
Definition: PrintOptionsWidget.cpp:67
Marble::PrintOptionsWidget::printLegend
bool printLegend() const
Definition: PrintOptionsWidget.cpp:42
QWidget
Marble::PrintOptionsWidget::PrintOptionsWidget
PrintOptionsWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: PrintOptionsWidget.cpp:16
PrintOptionsWidget.h
Marble::PrintOptionsWidget::printDrivingInstructions
bool printDrivingInstructions() const
Definition: PrintOptionsWidget.cpp:62
Marble::PrintOptionsWidget::printRouteSummary
bool printRouteSummary() const
Definition: PrintOptionsWidget.cpp:52
Marble::PrintOptionsWidget::setPrintDrivingInstructionsAdvice
void setPrintDrivingInstructionsAdvice(bool print)
Definition: PrintOptionsWidget.cpp:92
Marble::PrintOptionsWidget::printMap
bool printMap() const
Definition: PrintOptionsWidget.cpp:22
Marble::PrintOptionsWidget::printBackground
bool printBackground() const
Definition: PrintOptionsWidget.cpp:32
Marble::PrintOptionsWidget::setBackgroundControlsEnabled
void setBackgroundControlsEnabled(bool enabled)
Definition: PrintOptionsWidget.cpp:72
Marble::PrintOptionsWidget::setLegendControlsEnabled
void setLegendControlsEnabled(bool enabled)
Definition: PrintOptionsWidget.cpp:77
Marble::PrintOptionsWidget::setPrintLegend
void setPrintLegend(bool print)
Definition: PrintOptionsWidget.cpp:47
Marble::PrintOptionsWidget::printDrivingInstructionsAdvice
bool printDrivingInstructionsAdvice() const
Definition: PrintOptionsWidget.cpp:87
Marble::PrintOptionsWidget::setPrintBackground
void setPrintBackground(bool print)
Definition: PrintOptionsWidget.cpp:37
Marble::PrintOptionsWidget::setPrintRouteSummary
void setPrintRouteSummary(bool print)
Definition: PrintOptionsWidget.cpp:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal