Commit aa2c36df authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

updates QPS


added json files to plugin folder
Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
parent c77848c0
Pipeline #13940 failed with stage
in 1 minute and 10 seconds
......@@ -39,7 +39,7 @@ DIR_UI_FILES = DIR_QPS / 'ui'
DIR_ICONS = DIR_UI_FILES / 'icons'
QPS_RESOURCE_FILE = DIR_QPS / 'qpsresources_rc.py'
MAPLAYER_CONFIGWIDGET_FACTORIES = list()
MAPLAYER_CONFIGWIDGET_FACTORIES: typing.List[QgsMapLayerConfigWidgetFactory] = list()
if Qgis.QGIS_VERSION < MIN_QGIS_VERSION:
warnings.warn(f'Your QGIS ({Qgis.QGIS_VERSION}) is outdated. '
......@@ -54,6 +54,7 @@ def registerMapLayerConfigWidgetFactory(factory: QgsMapLayerConfigWidgetFactory)
:return:
:rtype:
"""
global MAPLAYER_CONFIGWIDGET_FACTORIES
assert isinstance(factory, QgsMapLayerConfigWidgetFactory)
if factory not in MAPLAYER_CONFIGWIDGET_FACTORIES:
MAPLAYER_CONFIGWIDGET_FACTORIES.append(factory)
......@@ -68,6 +69,7 @@ def unregisterMapLayerConfigWidgetFactory(factory: QgsMapLayerConfigWidgetFactor
:rtype:
"""
assert isinstance(factory, QgsMapLayerConfigWidgetFactory)
global MAPLAYER_CONFIGWIDGET_FACTORIES
while factory in MAPLAYER_CONFIGWIDGET_FACTORIES:
MAPLAYER_CONFIGWIDGET_FACTORIES.remove(factory)
......@@ -78,6 +80,7 @@ def mapLayerConfigWidgetFactories() -> typing.List[QgsMapLayerConfigWidgetFactor
:return: list of QgsMapLayerConfigWidgetFactories
:rtype:
"""
global MAPLAYER_CONFIGWIDGET_FACTORIES
return MAPLAYER_CONFIGWIDGET_FACTORIES[:]
......
......@@ -134,7 +134,7 @@ def create_plugin(include_testdata: bool = False,
compileEOTSVResourceFiles()
# copy python and other resource files
pattern = re.compile(r'\.(py|svg|png|txt|ui|tif|qml|md|js|css)$')
pattern = re.compile(r'\.(py|svg|png|txt|ui|tif|qml|md|js|css|json)$')
files = list(scantree(DIR_REPO / 'eotimeseriesviewer', pattern=pattern))
# add unit tests
files.extend(list(scantree(DIR_REPO / 'tests', pattern=re.compile(r'\.py$'))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment