1
/***************************************************************************
6
copyright : (C) 2004 by Tim Sutton
7
email : tim@linfiniti.com
9
***************************************************************************/
11
/***************************************************************************
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
***************************************************************************/
19
/* $Id: plugin.h 5785 2006-09-09 01:30:19Z g_j_m $ */
20
#ifndef QGSGRIDMAKERPLUGIN
21
#define QGSGRIDMAKERPLUGIN
22
#include "../qgisplugin.h"
27
* \brief OpenModeller plugin for QGIS
30
class QgsGridMakerPlugin:public QObject, public QgisPlugin
34
* Constructor for a plugin. The QgisApp and QgisIface pointers are passed by
35
* QGIS when it attempts to instantiate the plugin.
36
* @param qgis Pointer to the QgisApp object
37
* @param qI Pointer to the QgisIface object.
39
QgsGridMakerPlugin(QgisApp * , QgisIface * );
41
* Virtual function to return the name of the plugin. The name will be used when presenting a list
42
* of installable plugins to the user
44
virtual QString name();
46
* Virtual function to return the version of the plugin.
48
virtual QString version();
50
* Virtual function to return a description of the plugins functions
52
virtual QString description();
54
* Return the plugin type
58
virtual ~ QgsGridMakerPlugin();
61
virtual void initGui();
62
//! Show the dialog box
64
//!draw a raster layer in the qui
65
void drawRasterLayer(QString);
66
//! Add a vector layer given vectorLayerPath, baseName, providerKey ("ogr" or "postgres");
67
void drawVectorLayer(QString,QString,QString);
70
//! show the help document
75
//! Name of the plugin
76
QString pluginNameQString;
78
QString pluginVersionQString;
79
//! Descrption of the plugin
80
QString pluginDescriptionQString;
81
//! Plugin type as defined in QgisPlugin::PLUGINTYPE
83
//! Pionter to QGIS main application object
84
QgisApp *qgisMainWindowPointer;
85
//! Pointer to the QGIS interface object
86
QgisIface *qGisInterface;
87
//! Pointer to the QAction object used in the menu and toolbar
88
QAction *myQActionPointer;