• 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
  • thumbnailer
thumbnailer.h
Go to the documentation of this file.
1 // Copyright 2014 Friedrich W. H. Kossebau <kossebau@kde.org>
2 //
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this program. If not, see <http://www.gnu.org/licenses/>.
15 
16 
17 #ifndef _MARBLEGEODATATHUMBNAILER_H_
18 #define _MARBLEGEODATATHUMBNAILER_H_
19 
20 // Marble
21 #include "MarbleMap.h"
22 
23 // KDE
24 #include <kio/thumbcreator.h>
25 
26 // Qt
27 #include <QEventLoop>
28 #include <QTimer>
29 
30 namespace Marble {
31 class MarbleMap;
32 class GeoDataObject;
33 
34 
35 class GeoDataThumbnailer : public QObject, public ThumbCreator
36 {
37  Q_OBJECT
38 
39 public:
40  GeoDataThumbnailer();
41  virtual ~GeoDataThumbnailer();
42 
43 public: // ThumbCreator API
44  virtual bool create(const QString &path, int width, int height, QImage &image);
45  virtual Flags flags() const;
46 
47 private slots:
48  void onGeoDataObjectAdded(GeoDataObject *object);
49 
50 private:
51  MarbleMap m_marbleMap;
52 
53  QString m_currentFilename;
54  bool m_loadingCompleted :1;
55  QEventLoop m_eventLoop;
56  QTimer m_outtimer;
57 };
58 
59 }
60 
61 #endif
Marble::GeoDataThumbnailer
Definition: thumbnailer.h:35
QEventLoop
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataThumbnailer::flags
virtual Flags flags() const
Definition: thumbnailer.cpp:138
Marble::GeoDataThumbnailer::create
virtual bool create(const QString &path, int width, int height, QImage &image)
Definition: thumbnailer.cpp:59
ThumbCreator
MarbleMap.h
This file contains the headers for MarbleMap.
QTimer
QObject
QString
Marble::MarbleMap
A class that can paint a view of the earth.
Definition: MarbleMap.h:91
QImage
Marble::GeoDataThumbnailer::~GeoDataThumbnailer
virtual ~GeoDataThumbnailer()
Definition: thumbnailer.cpp:55
Marble::GeoDataThumbnailer::GeoDataThumbnailer
GeoDataThumbnailer()
Definition: thumbnailer.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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