~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to src/plugins/launcher/qgslauncherplugin.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: qgslauncherplugin.h 3249 2005-04-28 01:20:24Z g_j_m $ */
20
 
#ifndef PLUGIN
21
 
#define PLUGIN
22
 
#include <qgisplugin.h>
23
 
#include <qwidget.h>
24
 
 
25
 
#include <qgisapp.h>
26
 
 
27
 
/**
28
 
* \class QgsLauncherPlugin
29
 
* \brief OpenModeller plugin for QGIS
30
 
*
31
 
*/
32
 
class QgsLauncherPlugin:public QObject, public QgisPlugin
33
 
{
34
 
  Q_OBJECT public:
35
 
      /** 
36
 
       * Constructor for a plugin. The QgisApp and QgisIface pointers are passed by 
37
 
       * QGIS when it attempts to instantiate the plugin.
38
 
       * @param qgis Pointer to the QgisApp object
39
 
       * @param qI Pointer to the QgisIface object. 
40
 
       */
41
 
      QgsLauncherPlugin(QgisApp * , QgisIface * );
42
 
  //! Destructor
43
 
  virtual ~ QgsLauncherPlugin();
44
 
  public slots:
45
 
  //! init the gui
46
 
  virtual void initGui();
47
 
  //! Show the dialog box
48
 
  void run();
49
 
  //!draw a raster layer in the qui
50
 
  void drawRasterLayer(QString);
51
 
  //! unload the plugin
52
 
  void unload();
53
 
  //! show the help document
54
 
  void help();
55
 
    private:
56
 
 
57
 
  int pluginType;
58
 
  //! Id of the plugin's menu. Used for unloading
59
 
  int menuId;
60
 
  //! Pointer to our toolbar
61
 
  QToolBar *toolBarPointer;
62
 
  //! Pionter to QGIS main application object
63
 
  QgisApp *qgisMainWindowPointer;
64
 
  //! Pointer to the QGIS interface object
65
 
  QgisIface *qGisInterface;
66
 
  //! Pointer to the action
67
 
  QAction *myQActionPointer;
68
 
};
69
 
 
70
 
#endif