• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • kde-4.x
  • 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 <[email protected]>
9 // Copyright 2012 Illya Kovalevskyy <[email protected]>
10 //
11 
12 #ifndef MARBLELICENSE_H
13 #define MARBLELICENSE_H
14 
15 #include "AbstractFloatItem.h"
16 
17 class QLabel;
18 
19 namespace Marble
20 {
21 
22 class WidgetGraphicsItem;
23 
29 class License : public AbstractFloatItem
30 {
31  Q_OBJECT
32  Q_PLUGIN_METADATA(IID "org.kde.marble.License")
33  Q_INTERFACES( Marble::RenderPluginInterface )
34  MARBLE_PLUGIN( License )
35 public:
36  explicit License( const MarbleModel *marbleModel=nullptr );
37  ~License() override;
38 
39  QStringList backendTypes() const override;
40  QString name() const override;
41  QString guiString() const override;
42  QString nameId() const override;
43  QString version() const override;
44  QString description() const override;
45  QString copyrightYears() const override;
46  QVector<PluginAuthor> pluginAuthors() const override;
47  QIcon icon () const override;
48  void initialize () override;
49  bool isInitialized () const override;
50 
51 private Q_SLOTS:
52  void updateLicenseText();
53  void toggleLicenseSize();
54  void showAboutDialog();
55 
56 protected:
57  bool eventFilter(QObject *, QEvent *e) override;
58  void contextMenuEvent( QWidget *w, QContextMenuEvent *e ) override;
59 
60 private:
61  WidgetGraphicsItem* m_widgetItem;
62  QLabel* m_label;
63  bool m_showFullLicense;
64  QMenu* m_contextMenu;
65 };
66 
67 }
68 
69 #endif
QEvent
Marble::RenderPluginInterface
The class that specifies the Marble layer interface of a plugin.
Definition: RenderPluginInterface.h:30
QWidget
Marble::License::copyrightYears
QString copyrightYears() const override
Definition: License.cpp:117
AbstractFloatItem.h
Marble::License::isInitialized
bool isInitialized() const override
Definition: License.cpp:200
Marble::License::pluginAuthors
QVector< PluginAuthor > pluginAuthors() const override
Definition: License.cpp:122
Marble::License::name
QString name() const override
Returns the user-visible name of the plugin.
Definition: License.cpp:92
Marble::License::eventFilter
bool eventFilter(QObject *, QEvent *e) override
Definition: License.cpp:205
Marble::License::License
License(const MarbleModel *marbleModel=nullptr)
Definition: License.cpp:70
QContextMenuEvent
QObject
Marble::AbstractFloatItem
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:44
Marble::License::icon
QIcon icon() const override
Returns an icon for the plugin.
Definition: License.cpp:129
QString
Marble::WidgetGraphicsItem
Definition: WidgetGraphicsItem.h:25
QStringList
QMenu
Marble::License::nameId
QString nameId() const override
Returns the unique name of the plugin.
Definition: License.cpp:102
Marble::License::description
QString description() const override
Returns a user description of the plugin.
Definition: License.cpp:112
Marble::License::contextMenuEvent
void contextMenuEvent(QWidget *w, QContextMenuEvent *e) override
Definition: License.cpp:227
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:91
QVector
Marble::License::version
QString version() const override
Definition: License.cpp:107
Marble::License::~License
~License() override
Definition: License.cpp:83
Marble::License::initialize
void initialize() override
Definition: License.cpp:134
Marble::License::guiString
QString guiString() const override
Definition: License.cpp:97
Marble::License::backendTypes
QStringList backendTypes() const override
Returns the name(s) of the backend that the plugin can render.
Definition: License.cpp:87
Marble::License
The class that displays copyright info.
Definition: License.h:29
QLabel
QIcon
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:340
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 00:26:56 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
  •   KmPlot
  • libkeduvocdocument
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   src
  •   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