• 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
MapWizard.h
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 2011 Utku Aydın <utkuaydin34@gmail.com>
9 //
10 
11 #ifndef MARBLE_MAPWIZARD_H
12 #define MARBLE_MAPWIZARD_H
13 
14 #include <QWizard>
15 
16 #include "marble_export.h"
17 
24 class QNetworkReply;
25 
26 namespace Marble {
27 
28 class GeoSceneDocument;
29 class GeoSceneHead;
30 
31 class MapWizardPrivate;
32 
33 class MARBLE_EXPORT MapWizard : public QWizard
34 {
35  Q_OBJECT
36 
37 public:
38  explicit MapWizard(QWidget *parent = 0);
39  ~MapWizard();
40 
41  QStringList wmsServers() const;
42  void setWmsServers( const QStringList& uris );
43 
44  QStringList staticUrlServers() const;
45  void setStaticUrlServers( const QStringList& uris );
46 
47  static QString createArchive( QWidget *parent, QString mapId );
48  static void deleteArchive( QString mapId );
49 
50  // QWizard's functions
51  virtual void accept();
52  virtual bool validateCurrentPage();
53  virtual int nextId() const;
54 
55 public Q_SLOTS:
56  // WMS protocol
57  void queryServerCapabilities();
58  void parseServerCapabilities( QNetworkReply* reply );
59  void createWmsLegend( QNetworkReply* reply );
60 
61  // Open file dialogs
62  void querySourceImage();
63  void queryPreviewImage();
64  void queryLegendImage();
65 
66  // Other
67  void autoFillDetails();
68  void downloadLevelZero();
69  void createLevelZero( QNetworkReply* reply = 0 );
70  void showPreview();
71 
72 private:
73  Q_PRIVATE_SLOT( d, void pageEntered( int ) )
74 
75  GeoSceneDocument* createDocument();
76  bool createFiles( const GeoSceneDocument* head );
77  void createLegendHtml( QString image = "./legend/legend.png" );
78  void createLegendFile();
79  void createLegend();
80  void downloadLegend( const QString& url );
81 
82  Q_DISABLE_COPY( MapWizard )
83  MapWizardPrivate * const d;
84 };
85 
86 }
87 
88 #endif
QWidget
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::MapWizard
Definition: MapWizard.h:33
Marble::GeoSceneDocument
A container for features parsed from the DGML file.
Definition: GeoSceneDocument.h:44
marble_export.h
QWizard
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 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