import qgis.gui import socket import os import re import operator try: import win32gui win32 = True except ImportError: win32 = False d = os.path.dirname(__file__) QDir.addSearchPath("alkis", d) ConfBase = uic.loadUiType(os.path.join(d, 'conf.ui'))[0] AboutBase = uic.loadUiType(os.path.join(d, 'about.ui'))[0] ALKISSearchBase = uic.loadUiType(os.path.join(d, 'search.ui'))[0] def qDebug(s): QgsMessageLog.logMessage(s, u'ALKIS') def quote(x, prefix='E'): if type(x) == str: x.replace("'", "''") x.replace("\\", "\\\\") if x.find("\\") < 0: return u"'%s'" % x
def classFactory(iface): QDir.addSearchPath("TimeManager", os.path.dirname(__file__)) from .timemanager import timemanager return timemanager(iface)
def classFactory(iface): QDir.addSearchPath("TimeManager", os.path.dirname(__file__)) QDir.addSearchPath("timemanager", os.path.dirname(__file__)) from timemanager import timemanager_obj return timemanager_obj.timemanager_obj(iface)
QgsApplication, QgsProject, Qgis, QgsVectorLayer, QgsSingleSymbolRenderer, QgsWkbTypes, QgsSymbol, ) if alkisAvailable: import alkisplugin as Alkis thdir = os.path.dirname(__file__) # used to get a short link representation for resourcces with the same culture # otherwise a qrc-File and compilation is needed QDir.addSearchPath("hunt", os.path.join(thdir, "svg")) from .huntcore import HuntCore from .huntuiclasses import HAdd class HuntRegister: """QGIS Plugin Implementation.""" def __init__(self, iface): """Constructor. :param iface: An interface instance that will be passed to this class which provides the hook by which you can manipulate the QGIS application at run time. :type iface: QgsInterface """