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,v 1.4 2004/11/12 13:55:17 timlinux Exp $ */
22
#include "../qgisplugin.h"
28
* \brief OpenModeller plugin for QGIS
31
class Plugin:public QObject, public QgisPlugin
35
* Constructor for a plugin. The QgisApp and QgisIface pointers are passed by
36
* QGIS when it attempts to instantiate the plugin.
37
* @param qgis Pointer to the QgisApp object
38
* @param qI Pointer to the QgisIface object.
40
Plugin(QgisApp * , QgisIface * );
42
* Virtual function to return the name of the plugin. The name will be used when presenting a list
43
* of installable plugins to the user
45
virtual QString name();
47
* Virtual function to return the version of the plugin.
49
virtual QString version();
51
* Virtual function to return a description of the plugins functions
53
virtual QString description();
55
* Return the plugin type
62
virtual void initGui();
63
//! Show the dialog box
65
//!draw a raster layer in the qui
66
void drawRasterLayer(QString);
67
//! Add a vector layer given vectorLayerPath, baseName, providerKey ("ogr" or "postgres");
68
void drawVectorLayer(QString,QString,QString);
71
//! show the help document
76
//! Name of the plugin
77
QString pluginNameQString;
79
QString pluginVersionQString;
80
//! Descrption of the plugin
81
QString pluginDescriptionQString;
82
//! Plugin type as defined in QgisPlugin::PLUGINTYPE
84
//! Id of the plugin's menu. Used for unloading
86
//! Pointer to our menu
87
QMenuBar *menuBarPointer;
88
//! Pionter to QGIS main application object
89
QgisApp *qgisMainWindowPointer;
90
//! Pointer to the QGIS interface object
91
QgisIface *qGisInterface;
92
//! Pointer to the QAction object used in the menu and toolbar
93
QAction *myQActionPointer;