-
Notifications
You must be signed in to change notification settings - Fork 0
/
vfrimporter.py
49 lines (42 loc) · 1.86 KB
/
vfrimporter.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
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
"""
/***************************************************************************
VFRImporter
A QGIS plugin
Tool for import RUIAN data
-------------------
begin : 2015-03-16
git sha : $Format:$
copyright : (C) 2015 by Jan Klima
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
from __future__ import absolute_import
from builtins import object
# Import the PyQt, QGIS libraries and classes
from qgis.PyQt.QtWidgets import QAction
from qgis.PyQt.QtGui import QIcon
from .resources import *
from .MainApp import MainApp
class VFRImporter(object):
def __init__(self, iface):
self.iface = iface
def initGui(self):
self.action = QAction(QIcon(':/icon.png'),
u'Nástroj pro práci s daty RUIAN',
self.iface.mainWindow())
self.iface.addToolBarIcon(self.action)
self.action.triggered.connect(self.run)
def unload(self):
self.iface.removeToolBarIcon(self.action)
def run(self):
dlg = MainApp(self.iface)
dlg.show()