// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2005-2007 Torsten Rahn // Copyright 2007 Inge Wallin // // // This class is responsible for offering plugin capabilities. // #ifndef MARBLEWIDGETPLUGIN_H #define MARBLEWIDGETPLUGIN_H // Workaround: moc on osx is unable to find this file, when prefix with QtDesigner/ // moc also doesn't respect Q_OS_* macros, otherwise I could ifdef this. #include class MarbleWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface { Q_OBJECT Q_INTERFACES(QDesignerCustomWidgetInterface) public: explicit MarbleWidgetPlugin(QObject *parent = 0); virtual ~MarbleWidgetPlugin(); bool isContainer() const; bool isInitialized() const; QIcon icon() const; QString domXml() const; QString name() const; QString group() const; QString includeFile() const; QString toolTip() const; QString whatsThis() const; QWidget *createWidget(QWidget *parent); void initialize(QDesignerFormEditorInterface *core); private: bool initialized; }; #endif