• 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
  • aprs
AprsPlugin.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 Wes Hardaker <hardaker@users.sourceforge.net>
9 //
10 
11 #ifndef APRSPLUGIN_H
12 #define APRSPLUGIN_H
13 
14 #include <QObject>
15 #include <QMutex>
16 #include <QDialog>
17 
18 #include "RenderPlugin.h"
19 #include "DialogConfigurationInterface.h"
20 #include "AprsObject.h"
21 #include "AprsGatherer.h"
22 #include "GeoDataLatLonAltBox.h"
23 
24 #include "ui_AprsConfigWidget.h"
25 
26 namespace Ui
27 {
28  class AprsConfigWidget;
29 }
30 
31 namespace Marble
32 {
33 
38  class AprsPlugin : public RenderPlugin, public DialogConfigurationInterface
39  {
40  Q_OBJECT
41  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.AprsPlugin" )
42  Q_INTERFACES( Marble::RenderPluginInterface )
43  Q_INTERFACES( Marble::DialogConfigurationInterface )
44  MARBLE_PLUGIN( AprsPlugin )
45 
46  public:
47  AprsPlugin();
48  explicit AprsPlugin( const MarbleModel *marbleModel );
49  ~AprsPlugin();
50  QStringList backendTypes() const;
51  QString renderPolicy() const;
52  QStringList renderPosition() const;
53  QString name() const;
54  QString guiString() const;
55  QString nameId() const;
56 
57  QString version() const;
58 
59  QString description() const;
60 
61  QString copyrightYears() const;
62 
63  QList<PluginAuthor> pluginAuthors() const;
64 
65  QIcon icon () const;
66 
67  void initialize ();
68  bool isInitialized () const;
69  bool render( GeoPainter *painter, ViewportParams *viewport, const QString& renderPos, GeoSceneLayer * layer = 0 );
70 
71  QDialog *configDialog();
72  QAction *action() const;
73 
74  QHash<QString,QVariant> settings() const;
75  void setSettings( const QHash<QString,QVariant> &settings );
76 
77  void stopGatherers();
78  void restartGatherers();
79 
80 
81  private Q_SLOTS:
82  void readSettings();
83  void writeSettings();
84  void updateVisibility( bool visible );
85  virtual RenderType renderType() const;
86 
87  private:
88 
89  QMutex *m_mutex;
90  QMap<QString, AprsObject *> m_objects;
91  bool m_initialized;
92  GeoDataLatLonAltBox m_lastBox;
93  AprsGatherer *m_tcpipGatherer,
94  *m_ttyGatherer,
95  *m_fileGatherer;
96  QString m_filter;
97  QAction *m_action;
98 
99  bool m_useInternet;
100  bool m_useTty;
101  bool m_useFile;
102  QString m_aprsHost;
103  int m_aprsPort;
104  QString m_tncTty;
105  QString m_aprsFile;
106  bool m_dumpTcpIp;
107  bool m_dumpTty;
108  bool m_dumpFile;
109  int m_fadeTime;
110  int m_hideTime;
111 
112  QDialog *m_configDialog;
113  Ui::AprsConfigWidget *ui_configWidget;
114 
115  };
116 
117 }
118 
119 #endif
Marble::RenderPlugin::visible
bool visible() const
is visible
QMutex
Marble::RenderPluginInterface
The class that specifies the Marble layer interface of a plugin.
Definition: RenderPluginInterface.h:30
Marble::AprsPlugin::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: AprsPlugin.cpp:171
Marble::AprsPlugin::AprsPlugin
AprsPlugin()
Definition: AprsPlugin.cpp:43
Marble::DialogConfigurationInterface
This interface allows a plugin to provide a QWidget-based configuration dialog which is accessible wi...
Definition: DialogConfigurationInterface.h:31
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::AprsPlugin::setSettings
void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: AprsPlugin.cpp:385
QMap
Marble::AprsPlugin::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: AprsPlugin.cpp:140
Marble::AprsPlugin::restartGatherers
void restartGatherers()
Definition: AprsPlugin.cpp:211
Marble::AprsPlugin::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: AprsPlugin.cpp:145
Marble::AprsPlugin::stopGatherers
void stopGatherers()
Definition: AprsPlugin.cpp:176
AprsGatherer.h
Marble::AprsPlugin::description
QString description() const
Returns a user description of the plugin.
Definition: AprsPlugin.cpp:155
Marble::AprsPlugin::initialize
void initialize()
Definition: AprsPlugin.cpp:255
Marble::AprsPlugin::settings
QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: AprsPlugin.cpp:365
Marble::AprsPlugin::copyrightYears
QString copyrightYears() const
Definition: AprsPlugin.cpp:160
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
Marble::AprsPlugin::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: AprsPlugin.cpp:165
QHash< QString, QVariant >
AprsObject.h
DialogConfigurationInterface.h
Marble::AprsPlugin::version
QString version() const
Definition: AprsPlugin.cpp:150
QString
QList
QStringList
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::AprsPlugin
This class displays a layer of aprs (which aprs TBD).
Definition: AprsPlugin.h:38
Marble::AprsPlugin::configDialog
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: AprsPlugin.cpp:263
Marble::AprsPlugin::action
QAction * action() const
Definition: AprsPlugin.cpp:449
GeoDataLatLonAltBox.h
RenderPlugin.h
QAction
Marble::AprsPlugin::backendTypes
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: AprsPlugin.cpp:120
QDialog
Marble::AprsPlugin::name
QString name() const
Returns the user-visible name of the plugin.
Definition: AprsPlugin.cpp:135
Marble::AprsPlugin::render
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: AprsPlugin.cpp:414
Marble::AprsGatherer
Definition: AprsGatherer.h:26
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:83
Marble::AprsPlugin::renderPosition
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: AprsPlugin.cpp:130
Marble::AprsPlugin::isInitialized
bool isInitialized() const
Definition: AprsPlugin.cpp:409
Marble::RenderPlugin::RenderType
RenderType
A Type of plugin.
Definition: RenderPlugin.h:59
Marble::RenderPlugin
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
Marble::AprsPlugin::~AprsPlugin
~AprsPlugin()
Definition: AprsPlugin.cpp:88
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
Marble::AprsPlugin::renderPolicy
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: AprsPlugin.cpp:125
QIcon
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:340
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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