def __init__( self, iface ): """initialize the plugin""" global control try: control except NameError: control = TimeManagerControl(iface)
class timemanager: """ plugin information """ name = "TimeManagerPlugin" longName = "TimeManager Plugin for QGIS >= 1.7" description = "Working with temporal vector data" version = "Version 0.7" # update in __init__.py too! qgisMinimumVersion = '1.7.0' author = "Anita Graser" pluginUrl = "https://github.com/anitagraser/TimeManager" def __init__( self, iface ): """initialize the plugin""" self.iface = iface self.control = TimeManagerControl(self.iface) def initGui( self ): """initialize the gui""" self.control.initGui() def unload( self ): """Unload the plugin""" self.control.unload()
def __init__( self, iface ): """initialize the plugin""" global control try: control except NameError: try: lang=locale.getdefaultlocale()[0].split("_")[0] except: lang="en" # could not get locale, OSX may have this bug self.change_i18n(lang) control = TimeManagerControl(iface)
class timemanager: """ plugin information """ name = "TimeManagerPlugin" longName = "TimeManager Plugin for QGIS >= 1.7" description = "Working with temporal vector data" version = "Version 0.7" # update in __init__.py too! qgisMinimumVersion = '1.7.0' author = "Anita Graser" pluginUrl = "https://github.com/anitagraser/TimeManager" def __init__(self, iface): """initialize the plugin""" self.iface = iface self.control = TimeManagerControl(self.iface) def initGui(self): """initialize the gui""" self.control.initGui() def unload(self): """Unload the plugin""" self.control.unload()
class timemanager: """ plugin information """ name = "TimeManagerPlugin" longName = "Time Manager plugin" description = "Working with temporal data" version = "Version 0.4" qgisMinimumVersion = '1.6.0' author = "Anita Graser & Volker Fröhlich" pluginUrl = "https://github.com/anitagraser/TimeManager" def __init__( self, iface ): """initialize the plugin""" self.iface = iface self.control = TimeManagerControl(self.iface) def initGui( self ): """initialize the gui""" self.control.initGui() def unload( self ): """Unload the plugin""" self.control.unload()
class timemanager: """ plugin information """ name = "TimeManagerPlugin" longName = "Time Manager plugin" description = "Working with temporal data" version = "Version 0.4" qgisMinimumVersion = '1.6.0' author = "Anita Graser & Volker Fröhlich" pluginUrl = "https://github.com/anitagraser/TimeManager" def __init__(self, iface): """initialize the plugin""" self.iface = iface self.control = TimeManagerControl(self.iface) def initGui(self): """initialize the gui""" self.control.initGui() def unload(self): """Unload the plugin""" self.control.unload()
def __init__( self, iface ): """initialize the plugin""" global control try: control except NameError: try: overrideLocale = bool(QSettings().value("locale/overrideFlag", False)) if not overrideLocale: lang = QLocale.system().name().split("_")[0] else: lang = QSettings().value("locale/userLocale", "").split("_")[0] except: lang="en" # could not get locale, OSX may have this bug info("Plugin language loaded: {}".format(lang)) self.change_i18n(lang) control = TimeManagerControl(iface)
def __init__( self, iface ): """initialize the plugin""" self.iface = iface self.control = TimeManagerControl(self.iface)
def __init__(self, iface): """initialize the plugin""" self.iface = iface self.control = TimeManagerControl(self.iface)