• 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
  • license
License.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 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 // Copyright 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
10 //
11 
12 #ifndef MARBLELICENSE_H
13 #define MARBLELICENSE_H
14 
15 #include <QObject>
16 
17 #include "AbstractFloatItem.h"
18 
19 class QLabel;
20 
21 namespace Marble
22 {
23 
24 class GeoDataCoordinates;
25 class WidgetGraphicsItem;
26 class MarbleLocale;
27 
33 class License : public AbstractFloatItem
34 {
35  Q_OBJECT
36  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.License" )
37  Q_INTERFACES( Marble::RenderPluginInterface )
38  MARBLE_PLUGIN( License )
39 public:
40  explicit License( const MarbleModel *marbleModel=0 );
41  ~License();
42 
43  QStringList backendTypes() const;
44  QString name() const;
45  QString guiString() const;
46  QString nameId() const;
47  QString version() const;
48  QString description() const;
49  QString copyrightYears() const;
50  QList<PluginAuthor> pluginAuthors() const;
51  QIcon icon () const;
52  void initialize ();
53  bool isInitialized () const;
54 
55 private slots:
56  void updateLicenseText();
57  void toggleLicenseSize();
58  void showAboutDialog();
59 
60 protected:
61  bool eventFilter(QObject *, QEvent *e);
62  void contextMenuEvent( QWidget *w, QContextMenuEvent *e );
63 
64 private:
65  WidgetGraphicsItem* m_widgetItem;
66  QLabel* m_label;
67  bool m_showFullLicense;
68  QMenu* m_contextMenu;
69 };
70 
71 }
72 
73 #endif
Marble::RenderPluginInterface
The class that specifies the Marble layer interface of a plugin.
Definition: RenderPluginInterface.h:30
Marble::License::~License
~License()
Definition: License.cpp:82
Marble::License::isInitialized
bool isInitialized() const
Definition: License.cpp:196
AbstractFloatItem.h
QWidget
Marble::License::contextMenuEvent
void contextMenuEvent(QWidget *w, QContextMenuEvent *e)
Definition: License.cpp:223
QObject
Marble::License::eventFilter
bool eventFilter(QObject *, QEvent *e)
Definition: License.cpp:201
Marble::AbstractFloatItem
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:48
Marble::License::initialize
void initialize()
Definition: License.cpp:133
Marble::License::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: License.cpp:86
Marble::WidgetGraphicsItem
Definition: WidgetGraphicsItem.h:28
Marble::License::copyrightYears
QString copyrightYears() const
Definition: License.cpp:116
Marble::License::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: License.cpp:121
Marble::License::description
QString description() const
Returns a user description of the plugin.
Definition: License.cpp:111
Marble::License::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: License.cpp:128
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
Marble::License::name
QString name() const
Returns the user-visible name of the plugin.
Definition: License.cpp:91
Marble::License::License
License(const MarbleModel *marbleModel=0)
Definition: License.cpp:69
Marble::License::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: License.cpp:101
Marble::License::version
QString version() const
Definition: License.cpp:106
Marble::License
The class that displays copyright info.
Definition: License.h:33
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:81
Marble::License::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: License.cpp:96
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:337
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