Skip to content

Commit

Permalink
Add tool "Replace geometry"
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper committed Nov 20, 2023
1 parent 1d36525 commit 7bdd6f4
Show file tree
Hide file tree
Showing 5 changed files with 471 additions and 43 deletions.
6 changes: 4 additions & 2 deletions metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name=XPlan-Umring
qgisMinimumVersion=3.24
description=Create XPlanGML from polygon(s)
version=2.3.3
version=2.4.0
author=Kreis Viersen
[email protected]

Expand All @@ -19,7 +19,9 @@ icon=xplan_umring_icon.png
experimental=False
server=False
hasProcessingProvider=yes
changelog=v2.3.3:
changelog=v2.4.0
- Neues Werkzeug: Geltungsbereich Umringszenario ersetzen
v2.3.3:
- Behebe Fehler in Verbindung mit QGIS 3.32
v2.3.2:
- Behebe unscharfes Icon in Toolbar
Expand Down
3 changes: 3 additions & 0 deletions xplan_umring.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,16 @@ def saveTool(tool):
self.dlg.rb_bp_54.toggled.connect(lambda: saveTool("bebauungsplan54"))
self.dlg.rb_bp_60.toggled.connect(lambda: saveTool("bebauungsplan60"))
self.dlg.rb_lp_60.toggled.connect(lambda: saveTool("landschaftsplan60"))
self.dlg.rb_replace.toggled.connect(lambda: saveTool("replacegeometry"))

if self.selectedTool == "bebauungsplan54":
self.dlg.rb_bp_54.setChecked(True)
elif self.selectedTool == "bebauungsplan60":
self.dlg.rb_bp_60.setChecked(True)
elif self.selectedTool == "landschaftsplan60":
self.dlg.rb_lp_60.setChecked(True)
elif self.selectedTool == "replacegeometry":
self.dlg.rb_replace.setChecked(True)

result = self.dlg.exec_()

Expand Down
119 changes: 78 additions & 41 deletions xplan_umring.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,71 +7,72 @@
<x>0</x>
<y>0</y>
<width>651</width>
<height>216</height>
<height>318</height>
</rect>
</property>
<property name="windowTitle">
<string>XPlan-Umring</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<item row="10" column="0">
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>Bebauungsplan</string>
<string>Hilfswerkzeug</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QRadioButton" name="rb_lp_60">
<item row="0" column="0">
<widget class="QLabel" name="addressLabel">
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>v6.0</string>
<string>Bitte gewünschtes Umring-Werkzeug auswählen:</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<item row="5" column="0">
<widget class="QRadioButton" name="rb_bp_60">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<property name="text">
<string>v6.0</string>
</property>
</widget>
</item>
<item row="9" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<item row="8" column="0">
<widget class="QRadioButton" name="rb_lp_60">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
<property name="text">
<string>v6.0</string>
</property>
</spacer>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="addressLabel">
<item row="4" column="0">
<widget class="QRadioButton" name="rb_bp_54">
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Bitte gewünschtes Umring-Werkzeug auswählen:</string>
<string>v5.4</string>
</property>
</widget>
</item>
Expand All @@ -83,56 +84,92 @@
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="0">
<widget class="QRadioButton" name="rb_bp_54">
<item row="11" column="0">
<widget class="QRadioButton" name="rb_replace">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>v5.4</string>
<string>Geltungsbereich Umringszenario ersetzen</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label">
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>Landschaftsplan</string>
<string>Bebauungsplan</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QRadioButton" name="rb_bp_60">
<item row="9" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="13" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>v6.0</string>
<string>Landschaftsplan</string>
</property>
</widget>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer_3">
<item row="12" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>20</height>
</size>
</property>
</spacer>
Expand Down
Loading

0 comments on commit 7bdd6f4

Please sign in to comment.