2017-05-09 19:43:13 +10:00
|
|
|
/***************************************************************************
|
|
|
|
qgsrasterbandcomboboxplugin.h
|
|
|
|
--------------------------------------
|
|
|
|
Date : 09.05.2017
|
|
|
|
Copyright : (C) 2017 Nyall Dawson
|
|
|
|
Email : nyall.dawson@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 QGSRASTERBANDCOMBOBOXPLUGIN_H
|
|
|
|
#define QGSRASTERBANDCOMBOBOXPLUGIN_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
|
|
|
|
#include <QtUiPlugin/QDesignerExportWidget>
|
|
|
|
#include "qgis_customwidgets.h"
|
|
|
|
|
|
|
|
|
|
|
|
class CUSTOMWIDGETS_EXPORT QgsRasterBandComboBoxPlugin : public QObject, public QDesignerCustomWidgetInterface
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES( QDesignerCustomWidgetInterface )
|
|
|
|
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
explicit QgsRasterBandComboBoxPlugin( QObject *parent = nullptr );
|
2017-05-09 19:43:13 +10:00
|
|
|
|
|
|
|
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 // QGSRASTERBANDCOMBOBOXPLUGIN_H
|