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

« back to all changes in this revision

Viewing changes to python/plugins/osm/__init__.py

  • 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
"""@package __init__
 
2
/***************************************************************************
 
3
 *                                                                         *
 
4
 *   This program is free software; you can redistribute it and/or modify  *
 
5
 *   it under the terms of the GNU General Public License as published by  *
 
6
 *   the Free Software Foundation; either version 2 of the License, or     *
 
7
 *   (at your option) any later version.                                   *
 
8
 *                                                                         *
 
9
 ***************************************************************************/
 
10
 
 
11
This is the main module of OpenStreetMap plugin for Quantum GIS.
 
12
It initializes the plugin, making it known to QGIS.
 
13
 
 
14
OSM Plugin is viewer and editor for OpenStreetMap data.
 
15
"""
 
16
 
 
17
 
 
18
def name():
 
19
    """Function returns name of this plugin.
 
20
 
 
21
    @return name of this plugin ~ OpenStreetMap plugin
 
22
    """
 
23
 
 
24
    return "OpenStreetMap plugin"
 
25
 
 
26
 
 
27
def description():
 
28
    """Function returns brief description of this plugin.
 
29
 
 
30
    @return brief description of this plugin.
 
31
    """
 
32
 
 
33
    return "Viewer and editor for OpenStreetMap data"
 
34
 
 
35
 
 
36
def version():
 
37
    """Function returns version of this plugin.
 
38
 
 
39
    @return version of this plugin
 
40
    """
 
41
    from OsmPlugin import versionNumber
 
42
    return "Version "+versionNumber()
 
43
 
 
44
 
 
45
def qgisMinimumVersion():
 
46
    """Function returns information on what minimum version
 
47
    of Quantum GIS this plugin works with.
 
48
 
 
49
    @return minimum supported version of QGIS
 
50
    """
 
51
 
 
52
    return "1.0.0"
 
53
 
 
54
 
 
55
def classFactory(iface):
 
56
    """Function returns OSM Plugin instance.
 
57
 
 
58
    @return instance of OSM Plugin
 
59
    """
 
60
 
 
61
    from OsmPlugin import OsmPlugin
 
62
    # return object of our plugin with reference to QGIS interface as the only argument
 
63
    return OsmPlugin(iface) 
 
64