• 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
  • plugins
  • render
  • wikipedia
WikipediaModel.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 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef WIKIPEDIAMODEL_H
12 #define WIKIPEDIAMODEL_H
13 
14 #include "AbstractDataPluginModel.h"
15 
16 #include <QIcon>
17 
18 namespace Marble
19 {
20 
21 class MarbleWidget;
22 
23 const quint32 numberOfArticlesPerFetch = 7;
24 
25 class WikipediaModel : public AbstractDataPluginModel
26 {
27  Q_OBJECT
28 
29  public:
30  explicit WikipediaModel( const MarbleModel *marbleModel, QObject *parent = 0 );
31  ~WikipediaModel();
32 
33  void setShowThumbnail( bool show );
34 
35  void setMarbleWidget( MarbleWidget* widget );
36 
37  protected:
42  void getAdditionalItems( const GeoDataLatLonAltBox& box,
43  qint32 number = 10 );
44 
50  void parseFile( const QByteArray& file );
51 
52  private:
53  MarbleWidget* m_marbleWidget;
54  QIcon m_wikipediaIcon;
55  QString m_languageCode;
56 
57  bool m_showThumbnail;
58 };
59 
60 }
61 
62 #endif // WIKIPEDIAMODEL_H
AbstractDataPluginModel.h
Marble::numberOfArticlesPerFetch
const quint32 numberOfArticlesPerFetch
Definition: WikipediaModel.h:23
Marble::WikipediaModel::setShowThumbnail
void setShowThumbnail(bool show)
Definition: WikipediaModel.cpp:55
Marble::WikipediaModel::parseFile
void parseFile(const QByteArray &file)
The reimplementation has to parse the file and should generate widgets.
Definition: WikipediaModel.cpp:92
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
QObject
Marble::WikipediaModel::WikipediaModel
WikipediaModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: WikipediaModel.cpp:42
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
Marble::WikipediaModel
Definition: WikipediaModel.h:25
Marble::WikipediaModel::setMarbleWidget
void setMarbleWidget(MarbleWidget *widget)
Definition: WikipediaModel.cpp:123
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::WikipediaModel::~WikipediaModel
~WikipediaModel()
Definition: WikipediaModel.cpp:51
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
Marble::WikipediaModel::getAdditionalItems
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: WikipediaModel.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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