• 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
  • plugins
  • render
  • opendesktop
OpenDesktopModel.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 2010 Utku Aydın <utkuaydin34@gmail.com>
9 //
10 
11 #ifndef OPENDESKTOPMODEL_H
12 #define OPENDESKTOPMODEL_H
13 
14 #include "AbstractDataPluginModel.h"
15 #include "GeoDataLatLonAltBox.h"
16 #include "MarbleWidget.h"
17 
18 namespace Marble {
19 
20 class MarbleModel;
21 
22 class OpenDesktopModel : public AbstractDataPluginModel
23 {
24  Q_OBJECT
25 
26 public:
27  explicit OpenDesktopModel( const MarbleModel *marbleModel, QObject *parent = 0 );
28  ~OpenDesktopModel();
29 
30  void setMarbleWidget(MarbleWidget *widget);
31 
32 protected:
37  void getAdditionalItems(const Marble::GeoDataLatLonAltBox& box, qint32 number = 10);
42  void parseFile(const QByteArray& file);
43 
44 private:
45  MarbleWidget *m_marbleWidget;
46 };
47 
48 }
49 
50 #endif // OPENDESKTOPMODEL_H
Marble::OpenDesktopModel::OpenDesktopModel
OpenDesktopModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: OpenDesktopModel.cpp:27
AbstractDataPluginModel.h
QByteArray
Marble::OpenDesktopModel::setMarbleWidget
void setMarbleWidget(MarbleWidget *widget)
Definition: OpenDesktopModel.cpp:38
Marble::AbstractDataPluginModel
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
Marble::AbstractDataPluginModel::marbleModel
const MarbleModel * marbleModel() const
Definition: AbstractDataPluginModel.cpp:269
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
QObject
Marble::OpenDesktopModel::getAdditionalItems
void getAdditionalItems(const Marble::GeoDataLatLonAltBox &box, qint32 number=10)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: OpenDesktopModel.cpp:43
Marble::OpenDesktopModel::parseFile
void parseFile(const QByteArray &file)
Parses the file which getAdditionalItems downloads and prepares the data for usage.
Definition: OpenDesktopModel.cpp:60
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
GeoDataLatLonAltBox.h
MarbleWidget.h
This file contains the headers for MarbleWidget.
Marble::OpenDesktopModel::~OpenDesktopModel
~OpenDesktopModel()
Definition: OpenDesktopModel.cpp:33
QObject::parent
QObject * parent() const
Marble::OpenDesktopModel
Definition: OpenDesktopModel.h:22
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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