|
|
@@ -21,21 +21,25 @@
|
|
|
* *
|
|
|
***************************************************************************/
|
|
|
"""
|
|
|
-
|
|
|
import logging
|
|
|
|
|
|
from PyQt5.QtGui import QIcon
|
|
|
from PyQt5.QtWidgets import QAction
|
|
|
|
|
|
from core import logconf
|
|
|
+from core.QHandler import QHandler
|
|
|
from core.constants import MAIN
|
|
|
from ui.dlg_main import DlgMain
|
|
|
|
|
|
+
|
|
|
__VERSION__ = "0.1.0"
|
|
|
|
|
|
logger = logging.getLogger("mncheck")
|
|
|
logconf.start("mncheck", logging.DEBUG)
|
|
|
|
|
|
+
|
|
|
+logger.info("* loading plugin")
|
|
|
+
|
|
|
class MnCheck:
|
|
|
def __init__(self, iface):
|
|
|
self.iface = iface
|
|
|
@@ -71,6 +75,8 @@ class MnCheck:
|
|
|
def initGui(self):
|
|
|
"""Create the menu entries and toolbar icons inside the QGIS GUI."""
|
|
|
|
|
|
+ QHandler._qgs_iface = self.iface
|
|
|
+
|
|
|
self.add_action(MAIN / 'icon.png',
|
|
|
text='MnCheck',
|
|
|
callback=self.run,
|
|
|
@@ -88,3 +94,5 @@ class MnCheck:
|
|
|
dlg = DlgMain(self.iface)
|
|
|
dlg.show()
|
|
|
dlg.exec_()
|
|
|
+
|
|
|
+
|