Skip to content

Commit 4a40b5a

Browse files
committed
modify template form and new plan regulation group form based on feedback, delete old UI files, change template dock label
1 parent eab22d5 commit 4a40b5a

6 files changed

+256
-533
lines changed

arho_feature_template/gui/new_plan_regulation_group_form.ui

+90-24
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>769</width>
10-
<height>535</height>
9+
<width>893</width>
10+
<height>677</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -34,8 +34,8 @@
3434
<rect>
3535
<x>0</x>
3636
<y>0</y>
37-
<width>727</width>
38-
<height>435</height>
37+
<width>851</width>
38+
<height>577</height>
3939
</rect>
4040
</property>
4141
<layout class="QFormLayout" name="formLayout">
@@ -91,22 +91,81 @@
9191
</attribute>
9292
<layout class="QHBoxLayout" name="horizontalLayout">
9393
<item>
94-
<widget class="QTreeWidget" name="plan_regulations_view">
95-
<property name="sizePolicy">
96-
<sizepolicy hsizetype="Maximum" vsizetype="Expanding">
97-
<horstretch>0</horstretch>
98-
<verstretch>0</verstretch>
99-
</sizepolicy>
100-
</property>
101-
<attribute name="headerVisible">
102-
<bool>false</bool>
103-
</attribute>
104-
<column>
105-
<property name="text">
106-
<string notr="true">1</string>
107-
</property>
108-
</column>
109-
</widget>
94+
<layout class="QVBoxLayout" name="verticalLayout">
95+
<item>
96+
<widget class="QLabel" name="label_6">
97+
<property name="text">
98+
<string>Kaavamääräykset</string>
99+
</property>
100+
</widget>
101+
</item>
102+
<item>
103+
<widget class="QgsFilterLineEdit" name="mLineEdit">
104+
<property name="enabled">
105+
<bool>false</bool>
106+
</property>
107+
<property name="sizePolicy">
108+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
109+
<horstretch>0</horstretch>
110+
<verstretch>0</verstretch>
111+
</sizepolicy>
112+
</property>
113+
<property name="placeholderText">
114+
<string>Suodata kaavamääräyksiä</string>
115+
</property>
116+
<property name="showSearchIcon">
117+
<bool>true</bool>
118+
</property>
119+
<property name="qgisRelation" stdset="0">
120+
<string notr="true"/>
121+
</property>
122+
</widget>
123+
</item>
124+
<item>
125+
<widget class="QTreeWidget" name="plan_regulations_view">
126+
<property name="sizePolicy">
127+
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
128+
<horstretch>0</horstretch>
129+
<verstretch>0</verstretch>
130+
</sizepolicy>
131+
</property>
132+
<attribute name="headerVisible">
133+
<bool>false</bool>
134+
</attribute>
135+
<column>
136+
<property name="text">
137+
<string notr="true">1</string>
138+
</property>
139+
</column>
140+
</widget>
141+
</item>
142+
<item>
143+
<widget class="QLabel" name="label_4">
144+
<property name="text">
145+
<string>Valitun kaavamääräyksen kuvaus</string>
146+
</property>
147+
</widget>
148+
</item>
149+
<item>
150+
<widget class="QTextBrowser" name="textBrowser">
151+
<property name="sizePolicy">
152+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
153+
<horstretch>0</horstretch>
154+
<verstretch>0</verstretch>
155+
</sizepolicy>
156+
</property>
157+
<property name="html">
158+
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
159+
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
160+
p, li { white-space: pre-wrap; }
161+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
162+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;ESIMERKKI&lt;/span&gt;: Ilmaisee, että kaavakohde kuvaa asumisen rakennuksille tai asunnoille tarkoitetun alueen. Käytetään asemakaavoissa ilmaisemaan asuinrakennusten alueita, joille voidaan rakentaa eri tyyppisiä asuinrakennuksia. Maakunta- ja yleiskaavoissa käytetään ilmaisemaan asuntoalueita, jolla kerrosalasta pääosa on tarkoitettu asumiseen. Koodi liittyy lähtökohtaisesti kaavakohteeseen, joka on geometrialtaan alue.&lt;/p&gt;
163+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
164+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Kaavamääräyksen lyhyt nimi: A (AK ja YK) &amp;amp; AA (MK)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
165+
</property>
166+
</widget>
167+
</item>
168+
</layout>
110169
</item>
111170
<item>
112171
<widget class="QScrollArea" name="plan_regulations_scroll_area">
@@ -118,8 +177,8 @@
118177
<rect>
119178
<x>0</x>
120179
<y>0</y>
121-
<width>465</width>
122-
<height>435</height>
180+
<width>587</width>
181+
<height>577</height>
123182
</rect>
124183
</property>
125184
<layout class="QVBoxLayout" name="plan_regulations_layout">
@@ -157,8 +216,8 @@
157216
<rect>
158217
<x>0</x>
159218
<y>0</y>
160-
<width>727</width>
161-
<height>435</height>
219+
<width>851</width>
220+
<height>577</height>
162221
</rect>
163222
</property>
164223
</widget>
@@ -177,6 +236,13 @@
177236
</item>
178237
</layout>
179238
</widget>
239+
<customwidgets>
240+
<customwidget>
241+
<class>QgsFilterLineEdit</class>
242+
<extends>QLineEdit</extends>
243+
<header>qgsfilterlineedit.h</header>
244+
</customwidget>
245+
</customwidgets>
180246
<resources/>
181247
<connections>
182248
<connection>

arho_feature_template/gui/plan_regulation_group_widget_old.ui

-196
This file was deleted.

0 commit comments

Comments
 (0)