• 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
  • runner
  • latlon
LatLonPlugin.cpp
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 #include "LatLonPlugin.h"
12 #include "LatLonRunner.h"
13 
14 namespace Marble
15 {
16 
17 LatLonPlugin::LatLonPlugin( QObject *parent ) :
18  SearchRunnerPlugin( parent )
19 {
20 }
21 
22 QString LatLonPlugin::name() const
23 {
24  return tr( "Geographic Coordinates Search" );
25 }
26 
27 QString LatLonPlugin::guiString() const
28 {
29  return tr( "Geographic Coordinates" );
30 }
31 
32 QString LatLonPlugin::nameId() const
33 {
34  return "latlon";
35 }
36 
37 QString LatLonPlugin::version() const
38 {
39  return "1.0";
40 }
41 
42 QString LatLonPlugin::description() const
43 {
44  return tr( "Direct input of geographic coordinates" );
45 }
46 
47 QString LatLonPlugin::copyrightYears() const
48 {
49  return "2010";
50 }
51 
52 QList<PluginAuthor> LatLonPlugin::pluginAuthors() const
53 {
54  return QList<PluginAuthor>()
55  << PluginAuthor( QString::fromUtf8( "Dennis Nienhüser" ), "earthwings@gentoo.org" );
56 }
57 
58 SearchRunner* LatLonPlugin::newRunner() const
59 {
60  return new LatLonRunner;
61 }
62 
63 }
64 
65 Q_EXPORT_PLUGIN2( LatLonPlugin, Marble::LatLonPlugin )
66 
67 #include "LatLonPlugin.moc"
LatLonRunner.h
Marble::PluginAuthor
Definition: PluginInterface.h:28
Marble::LatLonPlugin
Definition: LatLonPlugin.h:20
Marble::LatLonPlugin::newRunner
virtual SearchRunner * newRunner() const
Plugin factory method to create a new runner instance.
Definition: LatLonPlugin.cpp:58
Marble::LatLonRunner
Definition: LatLonRunner.h:20
QObject::tr
QString tr(const char *sourceText, const char *disambiguation, int n)
Marble::LatLonPlugin::LatLonPlugin
LatLonPlugin(QObject *parent=0)
Definition: LatLonPlugin.cpp:17
Marble::LatLonPlugin::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: LatLonPlugin.cpp:32
QString::fromUtf8
QString fromUtf8(const char *str, int size)
QObject
Marble::LatLonPlugin::version
QString version() const
Definition: LatLonPlugin.cpp:37
Marble::SearchRunnerPlugin
A plugin for Marble to execute a placemark search.
Definition: SearchRunnerPlugin.h:25
QString
QList
Q_EXPORT_PLUGIN2
#define Q_EXPORT_PLUGIN2(a, b)
Definition: marble_export.h:34
Marble::LatLonPlugin::name
QString name() const
Returns the user-visible name of the plugin.
Definition: LatLonPlugin.cpp:22
Marble::LatLonPlugin::guiString
QString guiString() const
Returns the string that should appear in the user interface.
Definition: LatLonPlugin.cpp:27
Marble::LatLonPlugin::copyrightYears
QString copyrightYears() const
Definition: LatLonPlugin.cpp:47
LatLonPlugin.h
Marble::LatLonPlugin::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: LatLonPlugin.cpp:52
Marble::LatLonPlugin::description
QString description() const
Returns a user description of the plugin.
Definition: LatLonPlugin.cpp:42
Marble::SearchRunner
Definition: SearchRunner.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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