~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/plugins/grid_maker/plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          plugin.h 
3
 
 Functions:
4
 
                             -------------------
5
 
    begin                : Jan 21, 2004
6
 
    copyright            : (C) 2004 by Tim Sutton
7
 
    email                : tim@linfiniti.com
8
 
  
9
 
 ***************************************************************************/
10
 
 
11
 
/***************************************************************************
12
 
 *                                                                         *
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.                                   *
17
 
 *                                                                         *
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"
23
 
#include <qgisapp.h>
24
 
 
25
 
/**
26
 
* \class Plugin
27
 
* \brief OpenModeller plugin for QGIS
28
 
*
29
 
*/
30
 
class QgsGridMakerPlugin:public QObject, public QgisPlugin
31
 
{
32
 
  Q_OBJECT public:
33
 
      /** 
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. 
38
 
       */
39
 
    QgsGridMakerPlugin(QgisApp * , QgisIface * );
40
 
  /**
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
43
 
   */
44
 
  virtual QString name();
45
 
  /**
46
 
   * Virtual function to return the version of the plugin. 
47
 
   */
48
 
  virtual QString version();
49
 
  /**
50
 
   * Virtual function to return a description of the plugins functions 
51
 
   */
52
 
  virtual QString description();
53
 
  /**
54
 
   * Return the plugin type
55
 
   */
56
 
  virtual int type();
57
 
  //! Destructor
58
 
  virtual ~ QgsGridMakerPlugin();
59
 
  public slots:
60
 
  //! init the gui
61
 
  virtual void initGui();
62
 
  //! Show the dialog box
63
 
  void run();
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);
68
 
  //! unload the plugin
69
 
  void unload();
70
 
  //! show the help document
71
 
  void help();
72
 
    private:
73
 
 
74
 
 
75
 
  //! Name of the plugin
76
 
  QString pluginNameQString;
77
 
  //! Version
78
 
  QString pluginVersionQString;
79
 
  //! Descrption of the plugin
80
 
  QString pluginDescriptionQString;
81
 
  //! Plugin type as defined in QgisPlugin::PLUGINTYPE
82
 
  int 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;
89
 
};
90
 
 
91
 
#endif