2
// This file is part of the Marble Virtual Globe.
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
8
// Copyright 2005-2007 Torsten Rahn <tackat@kde.org>
9
// Copyright 2007 Inge Wallin <ingwa@kde.org>
13
// This class is responsible for offering plugin capabilities.
16
#ifndef MARBLEWIDGETPLUGIN_H
17
#define MARBLEWIDGETPLUGIN_H
19
// Workaround: moc on osx is unable to find this file, when prefix with QtDesigner/
20
// moc also doesn't respect Q_OS_* macros, otherwise I could ifdef this.
21
#include <QtDesigner/QDesignerCustomWidgetInterface>
23
class MarbleWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
26
Q_INTERFACES(QDesignerCustomWidgetInterface)
29
explicit MarbleWidgetPlugin(QObject *parent = 0);
30
virtual ~MarbleWidgetPlugin();
32
bool isContainer() const;
33
bool isInitialized() const;
35
QString domXml() const;
37
QString group() const;
38
QString includeFile() const;
39
QString toolTip() const;
40
QString whatsThis() const;
41
QWidget *createWidget(QWidget *parent);
43
void initialize(QDesignerFormEditorInterface *core);