• 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
  • declarative
MarbleDeclarativePlugin.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 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_DECLARATIVE_PLUGIN_H
12 #define MARBLE_DECLARATIVE_PLUGIN_H
13 
14 #include "qglobal.h"
15 
16 #if QT_VERSION < 0x050000
17  #include <QDeclarativeExtensionPlugin>
18 #else
19  #include <QQmlExtensionPlugin>
20 #endif
21 
26 #if QT_VERSION < 0x050000
27 class MarbleDeclarativePlugin : public QDeclarativeExtensionPlugin
28 {
29 #else
30 class MarbleDeclarativePlugin : public QQmlExtensionPlugin
31 {
32  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.MarbleDeclarativePlugin" )
33 #endif
34  Q_OBJECT
35 public:
37  virtual void registerTypes( const char *uri );
38 
40 #if QT_VERSION < 0x050000
41  void initializeEngine( QDeclarativeEngine *engine, const char *);
42 #else
43  void initializeEngine( QQmlEngine *engine, const char *);
44 #endif
45 };
46 
47 #endif
MarbleDeclarativePlugin
Registers MarbleWidget, MarbleRunnerManager and MarbleThemeManager as QQml extensions for use in QML...
Definition: MarbleDeclarativePlugin.h:27
QQmlEngine
QDeclarativeEngine QQmlEngine
Definition: MarbleDeclarativePlugin.cpp:40
MarbleDeclarativePlugin::initializeEngine
void initializeEngine(QDeclarativeEngine *engine, const char *)
Overriding QQmlExtensionPlugin to register image provider.
Definition: MarbleDeclarativePlugin.cpp:80
QDeclarativeExtensionPlugin
MarbleDeclarativePlugin::registerTypes
virtual void registerTypes(const char *uri)
Overriding QQmlExtensionPlugin to register types.
Definition: MarbleDeclarativePlugin.cpp:48
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