forked from linz/QGIS-AIMS-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.py
42 lines (35 loc) · 1.27 KB
/
Plugin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
################################################################################
#
# Copyright 2016 Crown copyright (c)
# Land Information New Zealand and the New Zealand Government.
# All rights reserved
#
# This program is released under the terms of the 3 clause BSD license. See the
# LICENSE file for more information.
#
################################################################################
from AimsUI.AimsClient.Gui.Controller import Controller
from AimsUI import AimsLogging
import threading # temp - debugging only
from qgis.core import QgsRectangle
# Temp, Dev only - debugging
try:
import sys
sys.path.append('/opt/eclipse/plugins/org.python.pydev_4.4.0.201510052309/pysrc')
from pydevd import settrace, GetGlobalDebugger
settrace()
except:
pass
class Plugin(object):
''' Initiate the AIMS plugin'''
SettingsBase="QGIS-AIMS-Plugin/"
def __init__(self, iface):
""" Initialise the Controller """
self.iface = iface
self.controller = Controller(iface)
def initGui(self):
''' Set up the Plugin's GUI '''
self.controller.initGui()
def unload(self):
''' Remove the plugins UI components '''
self.controller.unload()