/*************************************************************************** qgsdockwidgetplugin.h -------------------------------------- Date : 10.06.2016 Copyright : (C) 2016 Denis Rouzaud Email : denis.rouzaud@gmail.com *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef QGSDOCKWIDGETPLUGIN_H #define QGSDOCKWIDGETPLUGIN_H #include #if QT_VERSION < 0x050000 #include #include #else #include #include #include "qgis_customwidgets.h" #endif class CUSTOMWIDGETS_EXPORT QgsDockWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface { Q_OBJECT Q_INTERFACES( QDesignerCustomWidgetInterface ) public: explicit QgsDockWidgetPlugin( QObject *parent = 0 ); private: bool mInitialized; // QDesignerCustomWidgetInterface interface public: QString name() const override; QString group() const override; QString includeFile() const override; QIcon icon() const override; bool isContainer() const override; QWidget *createWidget( QWidget *parent ) override; bool isInitialized() const override; void initialize( QDesignerFormEditorInterface *core ) override; QString toolTip() const override; QString whatsThis() const override; QString domXml() const override; }; #endif // QGSDOCKWIDGETPLUGIN_H