diff --git a/Probleme.txt b/Probleme.txt index 749f64f..edb7362 100644 --- a/Probleme.txt +++ b/Probleme.txt @@ -2,4 +2,6 @@ Beim Hinzufügen von Features fehlte das layer.updateFields() Beim Hinzufügen von Features fehlte wurde versucht eine viel zu große Pegelonline 'number' in einen Int zu stecken. War schwierig zu entdecken => provider.errors() DockWidget wurde ziemlich voll → Weiteres Widget nur für Grafen -buttons etc disablen \ No newline at end of file +buttons etc disablen + +eigene styles erzeugen! \ No newline at end of file diff --git a/pb_tool.cfg b/pb_tool.cfg index 85e411c..234e0c1 100644 --- a/pb_tool.cfg +++ b/pb_tool.cfg @@ -44,7 +44,7 @@ name: pegelonline # Full path to where you want your plugin directory copied. If empty, # the QGIS default path will be used. Don't include the plugin name in # the path. -plugin_path:~/.local/share/QGIS/QGIS3/profiles/default/python/plugins +plugin_path:/home/patrick/.local/share/QGIS/QGIS3/profiles/default/python/plugins [files] # Python files that should be deployed with the plugin diff --git a/po_runner.py b/po_runner.py index 088da2b..8b7d325 100644 --- a/po_runner.py +++ b/po_runner.py @@ -199,7 +199,7 @@ class PoRunner(object): reader = PoWaterlevelsQgs() features = reader.getWaterlevelsFeatures() self.waterlevels = self._layer_create_from_reader(reader.fields, reader.crs, features, "Pegelstände") - self._layer_add_to_instance(self.waterlevels, "styles/label_currentw.qml", self.waterlevels_disconnect) + self._layer_add_to_instance(self.waterlevels, "styles/label_waterlevels.qml", self.waterlevels_disconnect) if self.waterlevels is not None: self._layer_set_visible(self.waterlevels, visible) diff --git a/styles/beschriftungen_currentw.qml b/styles/beschriftungen_currentw.qml deleted file mode 100644 index 8137671..0000000 --- a/styles/beschriftungen_currentw.qml +++ /dev/null @@ -1,243 +0,0 @@ - - - - 1 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - 0 - generatedlayout - - - - - - - - - - - - - - - - - - - - uuid - - 0 - diff --git a/styles/label_currentw_absvalue.qml b/styles/label_currentw_absvalue.qml deleted file mode 100644 index 2755990..0000000 --- a/styles/label_currentw_absvalue.qml +++ /dev/null @@ -1,411 +0,0 @@ - - - - 1 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uuid - - - - - - 0 - 0 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - 0 - generatedlayout - - - - - - - - - - - - - - - - - - - - uuid - - 0 - diff --git a/styles/label_currentw_trend.qml b/styles/label_currentw_trend.qml deleted file mode 100644 index 4fe7d8b..0000000 --- a/styles/label_currentw_trend.qml +++ /dev/null @@ -1,345 +0,0 @@ - - - - 1 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - 0 - generatedlayout - - - - - - - - - - - - - - - - - - - - uuid - - 0 - diff --git a/styles/label_currentw.qml b/styles/label_waterlevels.qml similarity index 100% rename from styles/label_currentw.qml rename to styles/label_waterlevels.qml diff --git a/styles/lyr_style.py b/styles/lyr_style.py deleted file mode 100644 index 15d500a..0000000 --- a/styles/lyr_style.py +++ /dev/null @@ -1,8 +0,0 @@ -import os -local_dir = r"J:\gp190225\Home\.qgis3\profiles\default\python\plugins\pegelonline" -lyr = iface.activeLayer() -lyr.loadNamedStyle(os.path.join(local_dir, "styles/trend.qml")) -if iface.mapCanvas().isCachingEnabled(): - lyr.triggerRepaint() -else: - iface.mapCanvas().refresh() \ No newline at end of file