• 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
  • designer
  • marblewidget
MarbleWidgetPlugin.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 2005-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 //
11 
12 //
13 // This class is responsible for offering plugin capabilities.
14 //
15 
16 #ifndef MARBLEWIDGETPLUGIN_H
17 #define MARBLEWIDGETPLUGIN_H
18 
19 #include <marble_export.h>
20 
21 // Workaround: moc on osx is unable to find this file, when prefix with QtDesigner/
22 // moc also doesn't respect Q_OS_* macros, otherwise I could ifdef this.
23 #include <QDesignerCustomWidgetInterface>
24 
25 class MarbleWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
26 {
27  Q_OBJECT
28  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.MarbleWidgetPlugin" )
29  Q_INTERFACES(QDesignerCustomWidgetInterface)
30 
31 public:
32  explicit MarbleWidgetPlugin(QObject *parent = 0);
33 
34  bool isContainer() const;
35  bool isInitialized() const;
36  QIcon icon() const;
37  QString domXml() const;
38  QString name() const;
39  QString group() const;
40  QString includeFile() const;
41  QString toolTip() const;
42  QString whatsThis() const;
43  QWidget *createWidget(QWidget *parent);
44 
45  void initialize(QDesignerFormEditorInterface *core);
46 
47 private:
48  bool m_initialized;
49 };
50 
51 #endif
QWidget
MarbleWidgetPlugin::toolTip
QString toolTip() const
Definition: MarbleWidgetPlugin.cpp:59
MarbleWidgetPlugin::isContainer
bool isContainer() const
Definition: MarbleWidgetPlugin.cpp:69
MarbleWidgetPlugin::MarbleWidgetPlugin
MarbleWidgetPlugin(QObject *parent=0)
Definition: MarbleWidgetPlugin.cpp:19
MarbleWidgetPlugin::group
QString group() const
Definition: MarbleWidgetPlugin.cpp:49
MarbleWidgetPlugin::createWidget
QWidget * createWidget(QWidget *parent)
Definition: MarbleWidgetPlugin.cpp:36
QObject
MarbleWidgetPlugin::domXml
QString domXml() const
Definition: MarbleWidgetPlugin.cpp:74
MarbleWidgetPlugin::name
QString name() const
Definition: MarbleWidgetPlugin.cpp:44
MarbleWidgetPlugin::isInitialized
bool isInitialized() const
Definition: MarbleWidgetPlugin.cpp:31
QString
QDesignerCustomWidgetInterface
MarbleWidgetPlugin
Definition: MarbleWidgetPlugin.h:25
MarbleWidgetPlugin::icon
QIcon icon() const
Definition: MarbleWidgetPlugin.cpp:54
QDesignerFormEditorInterface
MarbleWidgetPlugin::initialize
void initialize(QDesignerFormEditorInterface *core)
Definition: MarbleWidgetPlugin.cpp:26
marble_export.h
MarbleWidgetPlugin::includeFile
QString includeFile() const
Definition: MarbleWidgetPlugin.cpp:94
MarbleWidgetPlugin::whatsThis
QString whatsThis() const
Definition: MarbleWidgetPlugin.cpp:64
QObject::parent
QObject * parent() const
QIcon
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