2014-09-25 15:14:27 +02:00
|
|
|
/***************************************************************************
|
|
|
|
qgsdoublespinboxplugin.h
|
|
|
|
--------------------------------------
|
|
|
|
Date : 01.09.2014
|
|
|
|
Copyright : (C) 2014 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 QGSDOUBLESPINBOXPLUGIN_H
|
|
|
|
#define QGSDOUBLESPINBOXPLUGIN_H
|
|
|
|
|
2015-11-19 09:09:21 +01:00
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
|
|
|
|
#include <QtUiPlugin/QDesignerExportWidget>
|
2017-01-04 12:29:30 +01:00
|
|
|
#include "qgis_customwidgets.h"
|
2014-09-25 15:14:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
class CUSTOMWIDGETS_EXPORT QgsDoubleSpinBoxPlugin : public QObject, public QDesignerCustomWidgetInterface
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES( QDesignerCustomWidgetInterface )
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit QgsDoubleSpinBoxPlugin( QObject *parent = 0 );
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool mInitialized;
|
|
|
|
|
|
|
|
// QDesignerCustomWidgetInterface interface
|
|
|
|
public:
|
2015-01-19 16:14:37 +11:00
|
|
|
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;
|
2014-09-25 15:14:27 +02:00
|
|
|
};
|
|
|
|
#endif // QGSDOUBLESPINBOXPLUGIN_H
|