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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
MarbleAboutDialog.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  *
3  * This file is part of the Marble Virtual Globe.
4  *
5  * Copyright 2004-2007 Torsten Rahn <tackat@kde.org>
6  * Copyright 2007 Inge Wallin <ingwa@kde.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public License
19  * along with this library; see the file COPYING.LIB. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 
25 #include "MarbleAboutDialog.h"
26 #include "ui_MarbleAboutDialog.h"
27 
28 #include <QFile>
29 #include <QTextFrame>
30 #include <QTabWidget>
31 #include <QTextStream>
32 #include <QPixmap>
33 
34 #include "MarbleGlobal.h"
35 #include "MarbleDirs.h"
36 
37 namespace Marble
38 {
39 
40 class MarbleAboutDialogPrivate
41 {
42 public:
43  MarbleAboutDialogPrivate();
44 
45  void loadPageContents( int idx );
46 
47  Ui::MarbleAboutDialog uiWidget;
48 
49  bool authorsLoaded;
50  bool dataLoaded;
51  bool licenseLoaded;
52 };
53 
54 MarbleAboutDialogPrivate::MarbleAboutDialogPrivate() :
55  authorsLoaded( false ),
56  dataLoaded( false ),
57  licenseLoaded( false )
58 {
59 }
60 
61 MarbleAboutDialog::MarbleAboutDialog(QWidget *parent)
62  : QDialog( parent ),
63  d( new MarbleAboutDialogPrivate )
64 {
65  d->uiWidget.setupUi( this );
66 
67  if( MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
68  d->uiWidget.m_pMarbleTitleLabel->hide();
69  d->uiWidget.m_pMarbleVersionLabel->hide();
70  d->uiWidget.m_pMarbleLogoLabel->hide();
71  }
72  else {
73  d->uiWidget.m_pMarbleLogoLabel->setPixmap(
74  QPixmap( MarbleDirs::path("svg/marble-logo-72dpi.png") ) );
75  }
76 
77  QString const applicationTitle = QObject::tr( "Marble Virtual Globe" );
78  setApplicationTitle( applicationTitle );
79 
80  connect( d->uiWidget.tabWidget, SIGNAL(currentChanged(int)),
81  this, SLOT(loadPageContents(int)) );
82 }
83 
84 MarbleAboutDialog::~MarbleAboutDialog()
85 {
86  delete d;
87 }
88 
89 void MarbleAboutDialogPrivate::loadPageContents( int idx )
90 {
91  if ( idx == 1 && !authorsLoaded )
92  {
93  authorsLoaded = true;
94  QTextBrowser *const browser = uiWidget.m_pMarbleAuthorsBrowser;
95  browser->setHtml( QObject::tr("<b>Active Development Team of Marble</b>")+
96  QObject::tr("<p>Torsten Rahn <a href=\"mailto:rahn@kde.org\">rahn@kde.org</a><br />"
97  "<i>Developer and Original Author</i></p>")+
98  QObject::tr("<p>Bernhard Beschow <a href=\"mailto:bbeschow@cs.tu-berlin.de\">bbeschow@cs.tu-berlin.de</a><br />"
99  "<i>WMS Support, Mobile, Performance</i></p>")+
100  QObject::tr("<p>Thibaut Gridel <a href=\"mailto:tgridel@free.fr\">tgridel@free.fr</a><br />"
101  "<i>Geodata</i></p>")+
102  QObject::tr("<p>Jens-Michael Hoffmann <a href=\"mailto:jensmh@gmx.de\">jensmh@gmx.de</a><br />"
103  "<i>OpenStreetMap Support, Download Management</i></p>")+
104  QObject::tr("<p>Florian E&szlig;er <a href=\"mailto:f.esser@rwth-aachen.de\">f.esser@rwth-aachen.de</a><br />"
105  "<i>Elevation Profile</i></p>")+
106  QObject::tr("<p>Wes Hardaker <a href=\"mailto:marble@hardakers.net\">marble@hardakers.net</a><br />"
107  "<i>Amateur Radio Support</i></p>")+
108  QObject::tr("<p>Bastian Holst, <a href=\"mailto:bastianholst@gmx.de\">bastianholst@gmx.de</a><br />"
109  "<i>Online Services Support</i></p>")+
110  QObject::tr("<p>Guillaume Martres, <a href=\"mailto:smarter@ubuntu.com\">smarter@ubuntu.com</a><br />"
111  "<i>Satellites</i></p>")+
112  QObject::tr("<p>Friedrich W. H. Kossebau, <a href=\"mailto:kossebau@kde.org\">kossebau@kde.org</a><br />"
113  "<i>Plasma Integration, Bugfixes</i></p>")+
114  QObject::tr("<p>Rene Kuettner, <a href=\"mailto:rene@bitkanal.net\">rene@bitkanal.net</a><br />"
115  "<i>Planetary Satellites</i></p>")+
116  QObject::tr("<p>Dennis Nienh&uuml;ser <a href=\"mailto:earthwings@gentoo.org\">earthwings@gentoo.org</a><br />"
117  "<i>Routing, Navigation, Mobile</i></p>")+
118  QObject::tr("<p>Niko Sams <a href=\"mailto:niko.sams@gmail.com\">niko.sams@gmail.com</a><br />"
119  "<i>Routing, Elevation Profile</i></p>")+
120  QObject::tr("<p>Patrick Spendrin <a href=\"pspendrin@gmail.com\">pspendrin@gmail.com</a><br />"
121  "<i>KML and Windows Support</i></p>")+
122  QObject::tr("<p>Eckhart W&ouml;rner <a href=\"mailto:kde@ewsoftware.de\">kde@ewsoftware.de</a><br />"
123  "<i>Bugfixes</i></p>")+
124  QObject::tr("<b>Developers</b>")+
125  QObject::tr("<p>M&eacute;d&eacute;ric Boquien <a href=\"mailto:mboquien@free.fr\">mboquien@free.fr</a><br />"
126  "<i>Astronomical Observatories</i></p>")+
127  QObject::tr("<p>Harshit Jain <a href=\"mailto:sonu.itbhu@googlemail.com\">sonu.itbhu@googlemail.com</a><br />"
128  "<i>Planet Filter, Bugfixes</i></p>")+
129  QObject::tr("<p>Andrew Manson <a href=\"mailto:g.real.ate@gmail.com\">g.real.ate@gmail.com</a><br />"
130  "<i>Proxy Support</i></p>")+
131  QObject::tr("<p>Pino Toscano <a href=\"mailto:pino@kde.org\">pino@kde.org</a><br />"
132  "<i>Network plugins</i></p>")+
133  QObject::tr("<p>Henry de Valence <a href=\"mailto:hdevalence@gmail.com\">hdevalence@gmail.com</a><br />"
134  "<i>Marble Runners, World-Clock Plasmoid</i></p>")+
135  QObject::tr("<p>Magnus Valle<br /><i>Historical Maps</i></p>")+
136  QObject::tr("<p>Inge Wallin <a href=\"mailto:inge@lysator.liu.se\">inge@lysator.liu.se</a><br />"
137  "<i>Original Co-Maintainer</i></p>")+
138  QObject::tr("<p><i>Development &amp; Patches:</i> Simon Schmeisser, Claudiu Covaci, David Roberts, Nikolas Zimmermann, Jan Becker, "
139  "Stefan Asserh&auml;ll, Laurent Montel, Prashanth Udupa, Anne-Marie Mahfouf, Josef Spillner, Frerich Raabe, "
140  "Frederik Gladhorn, Fredrik H&ouml;glund, Albert Astals Cid, Thomas Zander, Joseph Wenninger, Kris Thomsen, "
141  "Daniel Molkentin </p>")+
142  QObject::tr("<p><i>Platforms &amp; Distributions:</i> "
143  "Tim Sutton, Christian Ehrlicher, Ralf Habacker, Steffen Joeris, Marcus Czeslinski, Marcus D. Hanwell, Chitlesh Goorah, Sebastian Wiedenroth, Christophe Leske</p>")+
144  QObject::tr("<p><i>Artwork:</i> Nuno Pinheiro, Torsten Rahn</p>")+
145  QObject::tr("<b>Join us</b>")+
146  QObject::tr("<p>You can reach the developers of the Marble Project at <a href=\"mailto:marble-devel@kde.org\">marble-devel@kde.org</a></p>")+
147  QObject::tr("<b>ESA - Summer of Code in Space 2011</b>")+
148  QObject::tr("<p> The Marble Team would like to thank its members who participated "
149  "in ESA SoCiS for their successful work on Marble:</p>")+
150  QObject::tr("<p><b>2012</b></p>")+
151  QObject::tr("<p>Rene Kuettner, <a href=\"mailto:rene@bitkanal.net\">rene@bitkanal.net</a><br />"
152  "<i>Project: Visualization of planetary satellites</i></p>")+
153  QObject::tr("<p><b>2011</b></p>")+
154  QObject::tr("<p>Guillaume Martres, <a href=\"mailto:smarter@ubuntu.com\">smarter@ubuntu.com</a><br />"
155  "<i>Project: Visualization of Satellite Orbits</i></p>")+
156 
157  QObject::tr("<b>Google Code-in</b>")+
158  QObject::tr("<p> The Marble Team would like to thank its members who participated "
159  "in the Google Code-in for their successful work on Marble:</p>")+
160  QObject::tr( "<p><b>2012</b></p>" ) +
161  QObject::tr( "Illya Kovalevskyy <a href=\"mailto:illya.kovalevskyy@gmail.com\">illya.kovalevskyy@gmail.com</a><br />" ) +
162  QObject::tr( "Mohammed Nafees <a href=\"mailto:nafees.technocool@gmail.com\">nafees.technocool@gmail.com</a></p><br />" ) +
163  QObject::tr( "Mayank Madan <a href=\"mailto:maddiemadan@gmail.com\">maddiemadan@gmail.com</a><br />" ) +
164  QObject::tr( "Timothy Lanzi <a href=\"mailto:trlanzi@gmail.com\">trlanzi@gmail.com</a></p>" ) +
165  QObject::tr( "<p><b>2011</b></p>" ) +
166  QObject::tr( "<p>Utku Ayd&#x131;n <a href=\"mailto:utkuaydin34@gmail.com\">utkuaydin34@gmail.com</a><br />" ) +
167  QObject::tr( "Daniel Marth <a href=\"mailto:danielmarth@gmx.at\">danielmarth@gmx.at</a><br />" ) +
168  QObject::tr( "Cezar Mocan <a href=\"mailto:mocancezar@gmail.com\">mocancezar@gmail.com</a><br />" ) +
169  QObject::tr( "Furkan &Uuml;z&uuml;mc&uuml; <a href=\"mailto:furkanuzumcu@gmail.com\">furkanuzumcu@gmail.com</a></p>" ) +
170  QObject::tr("<b>Google Summer of Code</b>")+
171  QObject::tr("<p> The Marble Team would like to thank its members who participated "
172  "in the Google Summer of Code for their successful work on Marble:</p>")+
173  QObject::tr( "<p><b>2011</b></p>" ) +
174  QObject::tr( "<p>Konstantin Oblaukhov <a href=\"oblaukhov.konstantin@gmail.com\">oblaukhov.konstantin@gmail.com</a><br />"
175  "<i>Project: OpenStreetMap Vector Rendering</i></p>" ) +
176  QObject::tr( "<p>Daniel Marth <a href=\"danielmarth@gmx.at\">danielmarth@gmx.at</a><br />"
177  "<i>Project: Marble Touch on MeeGo</i></p>" ) +
178  QObject::tr( "<p><b>2010</b></p>" ) +
179  QObject::tr( "<p>Gaurav Gupta <a href=\"mailto:1989.gaurav@gmail.com\">1989.gaurav@gmail.com</a><br />"
180  "<i>Project: Bookmarks</i></p>" ) +
181  QObject::tr( "<p>Harshit Jain <a href=\"mailto:hjain.itbhu@gmail.com\">hjain.itbhu@gmail.com</a><br />"
182  "<i>Project: Time Support</i></p>" ) +
183  QObject::tr( "<p>Siddharth Srivastava <a href=\"mailto:akssps011@gmail.com\">akssps011@gmail.com</a><br />"
184  "<i>Project: Turn-by-turn Navigation</i></p>" ) +
185  QObject::tr( "<p><b>2009</b></p>" ) +
186  QObject::tr( "<p>Andrew Manson <a href=\"mailto:g.real.ate@gmail.com\">g.real.ate@gmail.com</a><br />"
187  "<i>Project: OSM Annotation</i></p>" ) +
188  QObject::tr( "<p>Bastian Holst <a href=\"mailto:bastianholst@gmx.de\">bastianholst@gmx.de</a><br />"
189  "<i>Project: Online Services</i></p>" ) +
190  QObject::tr("<p><b>2008</b></p>")+
191  QObject::tr("<p>Patrick Spendrin <a href=\"pspendrin@gmail.com\">pspendrin@gmail.com</a><br />"
192  "<i>Project: Vector Tiles for Marble</i></p>")+
193  QObject::tr("<p>Shashank Singh <a href=\"mailto:shashank.personal@gmail.com\">shashank.personal@gmail.com</a><br />"
194  "<i>Project: Panoramio / Wikipedia -photo support for Marble</i></p>")+
195  QObject::tr("<b>2007</b>")+
196  QObject::tr("<p>Carlos Licea <a href=\"mailto:carlos.licea@kdemail.net\">carlos.licea@kdemail.net</a><br />"
197  "<i>Project: Equirectangular Projection (\"Flat Map\")</i></p>")+
198  QObject::tr("<p>Andrew Manson <a href=\"mailto:g.real.ate@gmail.com\">g.real.ate@gmail.com</a><br />"
199  "<i>Project: GPS Support for Marble</i></p>")+
200  QObject::tr("<p>Murad Tagirov <a href=\"mailto:tmurad@gmail.com\">tmurad@gmail.com</a><br />"
201  "<i>Project: KML Support for Marble</i></p>")+
202  QObject::tr("<p>... and of course we'd like to thank the people at Google Inc. for making these projects possible.</p>")+
203  QObject::tr("<b>Credits</b>")+
204  QObject::tr("<p><i>Various Suggestions &amp; Testing:</i> Stefan Jordan, Robert Scott, Lubos Petrovic, Benoit Sigoure, "
205  "Martin Konold, Matthias Welwarsky, Rainer Endres, Luis Silva, Ralf Gesellensetter, Tim Alder</p>")+
206  QObject::tr("<p> We'd especially like to thank John Layt who provided an important source of inspiration "
207  "by creating Marble's predecessor \"Kartographer\".</p>"));
208  QTextFrameFormat format = browser->document()->rootFrame()->frameFormat();
209  format.setMargin(12);
210  browser->document()->rootFrame()->setFrameFormat( format );
211  }
212 
213  if ( idx == 2 && !dataLoaded )
214  {
215  dataLoaded = true;
216  QTextBrowser *const browser = uiWidget.m_pMarbleDataBrowser;
217  browser->setHtml( QObject::tr("<b>Maps</b>")+
218  QObject::tr("<p><i>Blue Marble Next Generation (500 m / pixel)</i><br />"
219  "NASA Goddard Space Flight Center Earth Observatory "
220  "<a href=\"http://earthobservatory.nasa.gov/Newsroom/BlueMarble/\">"
221  "http://earthobservatory.nasa.gov/Newsroom/BlueMarble/</a></p>")+
222  QObject::tr("<p><i>Earth's City Lights</i><br />"
223  "Data courtesy Marc Imhoff of NASA GSFC and Christopher Elvidge of NOAA NGDC. "
224  "Image by Craig Mayhew and Robert Simmon, NASA GSFC.</p>")+
225  QObject::tr("<p><i>Shuttle Radar Topography Mission (SRTM30, 1 km / pixel )</i><br />"
226  "NASA Jet Propulsion Laboratory <a href=\"http://www2.jpl.nasa.gov/srtm/\">"
227  "http://www2.jpl.nasa.gov/srtm/</a></p>")+
228  QObject::tr("<p><i>Micro World Data Bank in Polygons (\"MWDB-POLY / MWDBII\")</i><br />"
229  "CIA ; Global Associates, Ltd.; Fred Pospeschil and Antonio Rivera</p>")+
230  QObject::tr("<p><i>Temperature and Precipitation Maps (July and December)</i><br />"
231  "A combination of two datasets:"
232  "<ul>"
233  "<li>Legates, D.R. and Willmott, C.J. 1989. Average Monthly Surface Air Temperature and "
234  "Precipitation. Digital Raster Data on a .5 degree Geographic (lat/long) 361x721 grid "
235  "(centroid-registered on .5 degree meridians). Boulder CO: National Center for Atmospheric Research. "
236  "<a href=\"http://www.ngdc.noaa.gov/ecosys/cdroms/ged_iia/datasets/a04/lw.htm\">"
237  "http://www.ngdc.noaa.gov/ecosys/cdroms/ged_iia/datasets/a04/lw.htm</a></li>"
238  "<li>CRU CL 2.0: New, M., Lister, D., Hulme, M. and Makin, I., 2002: A high-resolution "
239  "data set of surface climate over global land areas. Climate Research 21."
240  "<a href=\"http://www.cru.uea.ac.uk/cru/data/hrg\">"
241  "http://www.cru.uea.ac.uk/cru/data/hrg</a></li></ul></p>")+
242  QObject::tr("<b>Street Map</b>")+
243  QObject::tr("<p><i>OpenStreetMap</i><br />"
244  "The street maps used in Marble via download are provided by the <a href=\""
245  "http://www.openstreetmap.org\">OpenStreetMap</a> Project (\"OSM\"). "
246  "OSM is an open community which creates free editable maps.<br />"
247  "<i>License</i>: OpenStreetMap data can be used freely under the terms of the "
248  "<a href=\"http://wiki.openstreetmap.org/index.php/OpenStreetMap_License\">"
249  "Creative Commons Attribution-ShareAlike 2.0 license</a>.</p>")+
250  QObject::tr( "<p><i>Icons</i><br />"
251  "Some icons are taken from <a href=\"http://www.sjjb.co.uk/mapicons\">SJJB Management</a> and <a href=\"http://thenounproject.com\">NounProject</a>. "
252  "These icons can be used freely under the terms of the "
253  "<a href=\"http://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0 Universal</a> license.</p>") +
254  QObject::tr( "<p>Some icons are taken from <a href=\"http://fortawesome.github.com/Font-Awesome\">Font Awesome</a>. "
255  "These icons can be used freely under the terms of the "
256  "<a href=\"http://creativecommons.org/licenses/by/3.0/\">CC BY 3.0</a> license.</p>") +
257  QObject::tr("<p><i>OpenRouteService</i><br />"
258  "Some of the routes used in Marble via download are provided by the <a href=\""
259  "http://www.openrouteservice.org\">OpenRouteService</a> Project (\"ORS\"). <br />"
260  "<i>License</i>: OpenRouteService data can be used freely under the terms of the "
261  "<a href=\"http://wiki.openstreetmap.org/index.php/OpenStreetMap_License\">"
262  "Creative Commons Attribution-ShareAlike 2.0 license</a>.</p>")+
263  QObject::tr("<p><i>Open Source Routing Machine</i><br />"
264  "Some of the routes used in Marble via download are provided by the <a href=\""
265  "http://project-osrm.org\">Open Source Routing Machine</a> Project (\"OSRM\"). <br />"
266  "<i>License</i>: Open Source Routing Machine data can be used freely under the terms of the "
267  "<a href=\"http://wiki.openstreetmap.org/index.php/OpenStreetMap_License\">"
268  "Creative Commons Attribution-ShareAlike 2.0 license</a>.</p>")+
269  QObject::tr("<p><i>MapQuest</i><br />"
270  "Some of the routes used in Marble via download are provided by <a href=\""
271  "http://www.mapquest.com/\">MapQuest</a> and their Open Data Map APIs and Web Services.<br />"
272  "Directions courtesy of MapQuest working on OpenStreetMap data that can be used freely under the terms of the "
273  "<a href=\"http://wiki.openstreetmap.org/index.php/OpenStreetMap_License\">"
274  "Creative Commons Attribution-ShareAlike 2.0 license</a>. Usage of the MapQuest routing "
275  "service is subject to the <a href=\"http://info.mapquest.com/terms-of-use/\">MapQuest terms of use</a>.</p>")+
276  QObject::tr("<b>Cities and Locations</b>")+
277  QObject::tr("<p><i>World Gazetteer</i><br />Stefan Helders "
278  "<a href=\"http://www.world-gazetteer.com\">http://www.world-gazetteer.com</a></p>")+
279  QObject::tr("<p><i>Geonames.org</i><br />"
280  "<a href=\"http://www.geonames.org/\">http://www.geonames.org/</a>"
281  "<i>License</i>: Geonames.org data can be used freely under the terms of the "
282  "<a href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution 3.0 license</a>.</p>")+
283  QObject::tr("<p><i>Czech Statistical Office</i><br />Public database "
284  "<a href=\"http://www.czso.cz/eng/redakce.nsf/i/home\">http://www.czso.cz</a></p>")+
285  QObject::tr("<b>Flags</b>")+
286  QObject::tr("<p><i>Flags of the World</i><br />The flags were taken from Wikipedia "
287  "(<a href=\"http://www.wikipedia.org\">http://www.wikipedia.org</a>) "
288  "which in turn took a subset from <a href=\"http://www.openclipart.org\">"
289  "http://www.openclipart.org</a> and reworked them. "
290  "All flags are under the public domain (see comments inside the svg files).</p>")+
291  QObject::tr("<b>Stars</b>")+
292  QObject::tr("<p><i>The Bright Star Catalogue</i><br />5th Revised Ed. (Preliminary Version) " // krazy:exclude=spelling
293  "Hoffleit D., Warren Jr W.H., Astronomical Data Center, NSSDC/ADC (1991)"
294  "<a href=\"http://adc.gsfc.nasa.gov/adc-cgi/cat.pl?/catalogs/5/5050\"> "
295  "http://adc.gsfc.nasa.gov</a></p>") );
296  QTextFrameFormat format = browser->document()->rootFrame()->frameFormat();
297  format.setMargin(12);
298  browser->document()->rootFrame()->setFrameFormat( format );
299  }
300 
301  if ( idx == 3 && !licenseLoaded )
302  {
303  licenseLoaded = true;
304  QTextBrowser *const browser = uiWidget.m_pMarbleLicenseBrowser;
305  QString filename = MarbleDirs::path( "LICENSE.txt" );
306  if( !filename.isEmpty() )
307  {
308  QFile f( filename );
309  if( f.open( QIODevice::ReadOnly ) )
310  {
311  QTextStream ts( &f );
312  browser->setText( ts.readAll() );
313  }
314  f.close();
315  }
316  QTextFrameFormat format = browser->document()->rootFrame()->frameFormat();
317  format.setMargin(12);
318  browser->document()->rootFrame()->setFrameFormat( format );
319  }
320 }
321 
322 void MarbleAboutDialog::setApplicationTitle( const QString &title )
323 {
324  QString const titleHtml = "<b>" + title + "</b>";
325  d->uiWidget.m_pMarbleTitleLabel->setText( titleHtml );
326  QString const applicationVersion = tr( "Using Marble Library version %1" ).arg( MARBLE_VERSION_STRING );
327  d->uiWidget.m_pMarbleVersionLabel->setText( applicationVersion );
328  QTextBrowser* browser = d->uiWidget.m_pMarbleAboutBrowser;
329  QString text;
330  if( MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
331  text = titleHtml + "<br />" + applicationVersion + "<br />";
332  }
333  browser->setHtml( text + tr("<br />(c) 2007-%1 by the authors of Marble Virtual Globe<br /><br /><a href=\"http://edu.kde.org/marble\">http://edu.kde.org/marble</a>").arg( 2014 ) );
334  QTextFrameFormat format = browser->document()->rootFrame()->frameFormat();
335  format.setMargin(12);
336  browser->document()->rootFrame()->setFrameFormat( format );
337 }
338 
339 void MarbleAboutDialog::setInitialTab( MarbleAboutDialog::Tab tab )
340 {
341  d->uiWidget.tabWidget->setCurrentIndex( tab );
342 }
343 
344 }
345 
346 #include "MarbleAboutDialog.moc"
QWidget
Marble::MarbleAboutDialog::~MarbleAboutDialog
~MarbleAboutDialog()
Definition: MarbleAboutDialog.cpp:84
Marble::MarbleDirs::path
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
QTextFrame::setFrameFormat
void setFrameFormat(const QTextFrameFormat &format)
QTextEdit::setHtml
void setHtml(const QString &text)
QTextFrameFormat
MarbleAboutDialog.h
QObject::tr
QString tr(const char *sourceText, const char *disambiguation, int n)
QFile
QTextStream
QTextDocument::rootFrame
QTextFrame * rootFrame() const
MarbleDirs.h
QString::isEmpty
bool isEmpty() const
Marble::MarbleAboutDialog::MarbleAboutDialog
MarbleAboutDialog(QWidget *parent=0)
Definition: MarbleAboutDialog.cpp:61
QString
MarbleGlobal.h
Marble::MarbleAboutDialog::Tab
Tab
Definition: MarbleAboutDialog.h:35
QPixmap
QTextEdit::document
QTextDocument * document() const
Marble::MarbleGlobal::SmallScreen
Definition: MarbleGlobal.h:287
Marble::MarbleGlobal::getInstance
static MarbleGlobal * getInstance()
Definition: MarbleGlobal.cpp:37
Marble::MarbleAboutDialog::setInitialTab
void setInitialTab(Tab tab)
setInitialTab Change the tab shown when executing the dialog
Definition: MarbleAboutDialog.cpp:339
QTextBrowser
QDialog
QTextFrame::frameFormat
QTextFrameFormat frameFormat() const
QObject::connect
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QTextEdit::setText
void setText(const QString &text)
QString::arg
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QTextFrameFormat::setMargin
void setMargin(qreal margin)
Marble::MARBLE_VERSION_STRING
const QString MARBLE_VERSION_STRING
Definition: MarbleGlobal.h:242
Marble::MarbleAboutDialog::setApplicationTitle
void setApplicationTitle(const QString &title)
Set the application title (usually name and version) to show The default application title is 'Marble...
Definition: MarbleAboutDialog.cpp:322
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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
  • 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