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

« back to all changes in this revision

Viewing changes to src/plugins/georeferencer/qgsgeorefplugin.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
*  File Name:               plugin.h
 
3
*
 
4
*  The georeferencer plugin is a tool for adding projection info to rasters
 
5
*
 
6
*--------------------------------------------------------------------------
 
7
*    begin                : Jan 21, 2004
 
8
*    copyright            : (C) 2004 by Tim Sutton
 
9
*    email                : tim@linfiniti.com
 
10
*
 
11
***************************************************************************/
 
12
 
 
13
/***************************************************************************
 
14
 *                                                                         *
 
15
 *   This program is free software; you can redistribute it and/or modify  *
 
16
 *   it under the terms of the GNU General Public License as published by  *
 
17
 *   the Free Software Foundation; either version 2 of the License, or     *
 
18
 *   (at your option) any later version.                                   *
 
19
 *                                                                         *
 
20
 ***************************************************************************/
 
21
/*  $Id$ */
 
22
 
 
23
/***************************************************************************
 
24
 *   QGIS Programming conventions:
 
25
 *
 
26
 *   mVariableName - a class level member variable
 
27
 *   sVariableName - a static class level member variable
 
28
 *   variableName() - accessor for a class member (no 'get' in front of name)
 
29
 *   setVariableName() - mutator for a class member (prefix with 'set')
 
30
 *
 
31
 *   Additional useful conventions:
 
32
 *
 
33
 *   theVariableName - a method parameter (prefix with 'the')
 
34
 *   myVariableName - a locally declared variable within a method ('my' prefix)
 
35
 *
 
36
 *   DO: Use mixed case variable names - myVariableName
 
37
 *   DON'T: separate variable names using underscores: my_variable_name (NO!)
 
38
 *
 
39
 * **************************************************************************/
 
40
 
 
41
#ifndef QGSGEOREFPLUGIN
 
42
#define QGSGEOREFPLUGIN
 
43
 
 
44
//
 
45
//QGIS Includes
 
46
//
 
47
#include <qgisplugin.h>
 
48
class QgisInterface;
 
49
 
 
50
//
 
51
//QT Includes
 
52
//
 
53
#include <QWidget>
 
54
 
 
55
/**
 
56
* \class Plugin
 
57
* \brief [name] plugin for QGIS
 
58
* [description]
 
59
*/
 
60
class QgsGeorefPlugin: public QObject, public QgisPlugin
 
61
{
 
62
  Q_OBJECT public:
 
63
 
 
64
    //////////////////////////////////////////////////////////////////////
 
65
    //
 
66
    //                MANDATORY PLUGIN METHODS FOLLOW
 
67
    //
 
68
    //////////////////////////////////////////////////////////////////////
 
69
 
 
70
    /**
 
71
    * Constructor for a plugin. The QgisApp and QgisIface pointers are passed by
 
72
    * QGIS when it attempts to instantiate the plugin.
 
73
    * @param Pointer to the QgisApp object
 
74
    * @param Pointer to the QgisIface object.
 
75
     */
 
76
    QgsGeorefPlugin( QgisInterface * );
 
77
    //! Destructor
 
78
    virtual ~ QgsGeorefPlugin();
 
79
 
 
80
  public slots:
 
81
    //! init the gui
 
82
    virtual void initGui();
 
83
    //! Show the dialog box
 
84
    void run();
 
85
    //! unload the plugin
 
86
    void unload();
 
87
    //! show the help document
 
88
    void help();
 
89
    //! update the plugins theme when the app tells us its theme is changed
 
90
    void setCurrentTheme( QString theThemeName );
 
91
 
 
92
    void about( );
 
93
    //////////////////////////////////////////////////////////////////////
 
94
    //
 
95
    //                  END OF MANDATORY PLUGIN METHODS
 
96
    //
 
97
    //////////////////////////////////////////////////////////////////////
 
98
 
 
99
  private:
 
100
 
 
101
    ////////////////////////////////////////////////////////////////////
 
102
    //
 
103
    // MANDATORY PLUGIN MEMBER DECLARATIONS  .....
 
104
    //
 
105
    ////////////////////////////////////////////////////////////////////
 
106
 
 
107
    int mPluginType;
 
108
    //! Pointer to the QGIS interface object
 
109
    QgisInterface *mQGisIface;
 
110
    //!pointer to the qaction for this plugin
 
111
    QAction * mQActionPointer;
 
112
    ////////////////////////////////////////////////////////////////////
 
113
    //
 
114
    // ADD YOUR OWN MEMBER DECLARATIONS AFTER THIS POINT.....
 
115
    //
 
116
    ////////////////////////////////////////////////////////////////////
 
117
};
 
118
 
 
119
#endif