Skip to content

Commit 912f06d

Browse files
committed
Color map label on different line
1 parent 624b06b commit 912f06d

File tree

1 file changed

+169
-153
lines changed

1 file changed

+169
-153
lines changed

src/ui/qgssinglebandpseudocolorrendererwidgetbase.ui

+169-153
Original file line numberDiff line numberDiff line change
@@ -6,190 +6,92 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>360</width>
9+
<width>396</width>
1010
<height>605</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
1414
<string>Form</string>
1515
</property>
1616
<layout class="QGridLayout" name="gridLayout">
17-
<property name="margin">
17+
<property name="leftMargin">
1818
<number>3</number>
1919
</property>
20+
<property name="topMargin">
21+
<number>3</number>
22+
</property>
23+
<property name="rightMargin">
24+
<number>3</number>
25+
</property>
26+
<property name="bottomMargin">
27+
<number>3</number>
28+
</property>
29+
<item row="5" column="1">
30+
<layout class="QHBoxLayout" name="horizontalLayout_2">
31+
<item>
32+
<widget class="QgsColorRampComboBox" name="mColorRampComboBox"/>
33+
</item>
34+
<item>
35+
<widget class="QPushButton" name="mButtonEditRamp">
36+
<property name="text">
37+
<string>Edit</string>
38+
</property>
39+
</widget>
40+
</item>
41+
<item>
42+
<widget class="QCheckBox" name="mInvertCheckBox">
43+
<property name="text">
44+
<string>Invert</string>
45+
</property>
46+
</widget>
47+
</item>
48+
</layout>
49+
</item>
2050
<item row="5" column="0">
2151
<widget class="QLabel" name="mColorInterpolationLabel_2">
2252
<property name="text">
2353
<string>Color interpolation</string>
2454
</property>
2555
</widget>
2656
</item>
27-
<item row="3" column="0">
28-
<widget class="QLabel" name="mMaxLabel">
29-
<property name="text">
30-
<string>Max</string>
31-
</property>
32-
</widget>
33-
</item>
34-
<item row="1" column="0">
35-
<widget class="QLabel" name="mColorInterpolationLabel">
36-
<property name="text">
37-
<string>Color interpolation</string>
38-
</property>
39-
</widget>
40-
</item>
41-
<item row="8" column="0" colspan="2">
42-
<widget class="QTreeWidget" name="mColormapTreeWidget">
43-
<property name="sizePolicy">
44-
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
45-
<horstretch>0</horstretch>
46-
<verstretch>0</verstretch>
47-
</sizepolicy>
48-
</property>
49-
<property name="minimumSize">
50-
<size>
51-
<width>0</width>
52-
<height>250</height>
53-
</size>
54-
</property>
55-
<attribute name="headerDefaultSectionSize">
56-
<number>70</number>
57-
</attribute>
58-
<attribute name="headerMinimumSectionSize">
59-
<number>10</number>
60-
</attribute>
61-
<attribute name="headerStretchLastSection">
62-
<bool>true</bool>
63-
</attribute>
64-
<column>
65-
<property name="text">
66-
<string>Value</string>
67-
</property>
68-
</column>
69-
<column>
70-
<property name="text">
71-
<string>Color</string>
72-
</property>
73-
</column>
74-
<column>
75-
<property name="text">
76-
<string>Label</string>
77-
</property>
78-
</column>
79-
</widget>
80-
</item>
8157
<item row="3" column="1">
8258
<widget class="QLineEdit" name="mMaxLineEdit"/>
8359
</item>
84-
<item row="0" column="0">
85-
<widget class="QLabel" name="mBandLabel">
86-
<property name="text">
87-
<string>Band</string>
88-
</property>
89-
</widget>
90-
</item>
91-
<item row="1" column="1">
92-
<widget class="QComboBox" name="mColorInterpolationComboBox"/>
93-
</item>
9460
<item row="2" column="0">
9561
<widget class="QLabel" name="mMinLabel">
9662
<property name="text">
9763
<string>Min</string>
9864
</property>
9965
</widget>
10066
</item>
101-
<item row="9" column="0" colspan="2">
102-
<widget class="QCheckBox" name="mClipCheckBox">
103-
<property name="toolTip">
104-
<string>If checked, any pixels with a value out of range will not be rendered</string>
105-
</property>
67+
<item row="1" column="1">
68+
<widget class="QComboBox" name="mColorInterpolationComboBox"/>
69+
</item>
70+
<item row="0" column="0">
71+
<widget class="QLabel" name="mBandLabel">
10672
<property name="text">
107-
<string>Clip raster values which are out of range</string>
73+
<string>Band</string>
10874
</property>
10975
</widget>
11076
</item>
11177
<item row="0" column="1">
11278
<widget class="QComboBox" name="mBandComboBox"/>
11379
</item>
114-
<item row="10" column="0" colspan="2">
115-
<widget class="QWidget" name="mMinMaxContainerWidget" native="true"/>
116-
</item>
117-
<item row="4" column="1">
118-
<layout class="QHBoxLayout" name="horizontalLayout">
119-
<item>
120-
<widget class="QComboBox" name="mClassificationModeComboBox"/>
121-
</item>
122-
<item>
123-
<widget class="QLabel" name="mNumberOfEntriesLabel">
124-
<property name="text">
125-
<string>Classes</string>
126-
</property>
127-
</widget>
128-
</item>
129-
<item>
130-
<widget class="QSpinBox" name="mNumberOfEntriesSpinBox">
131-
<property name="sizePolicy">
132-
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
133-
<horstretch>0</horstretch>
134-
<verstretch>0</verstretch>
135-
</sizepolicy>
136-
</property>
137-
<property name="maximum">
138-
<number>255</number>
139-
</property>
140-
<property name="value">
141-
<number>0</number>
142-
</property>
143-
</widget>
144-
</item>
145-
</layout>
146-
</item>
147-
<item row="6" column="0">
148-
<layout class="QGridLayout" name="gridLayout_3">
149-
<property name="verticalSpacing">
150-
<number>6</number>
80+
<item row="3" column="0">
81+
<widget class="QLabel" name="mMaxLabel">
82+
<property name="text">
83+
<string>Max</string>
15184
</property>
152-
<item row="0" column="0" colspan="2">
153-
<widget class="QLabel" name="label_2">
154-
<property name="text">
155-
<string>Min / max origin:</string>
156-
</property>
157-
</widget>
158-
</item>
159-
</layout>
160-
</item>
161-
<item row="2" column="1">
162-
<widget class="QLineEdit" name="mMinLineEdit"/>
85+
</widget>
16386
</item>
164-
<item row="4" column="0">
165-
<widget class="QLabel" name="mClassificationModeLabel">
87+
<item row="1" column="0">
88+
<widget class="QLabel" name="mColorInterpolationLabel">
16689
<property name="text">
167-
<string>Mode</string>
90+
<string>Color interpolation</string>
16891
</property>
16992
</widget>
17093
</item>
171-
<item row="5" column="1">
172-
<layout class="QHBoxLayout" name="horizontalLayout_2">
173-
<item>
174-
<widget class="QgsColorRampComboBox" name="mColorRampComboBox"/>
175-
</item>
176-
<item>
177-
<widget class="QPushButton" name="mButtonEditRamp">
178-
<property name="text">
179-
<string>Edit</string>
180-
</property>
181-
</widget>
182-
</item>
183-
<item>
184-
<widget class="QCheckBox" name="mInvertCheckBox">
185-
<property name="text">
186-
<string>Invert</string>
187-
</property>
188-
</widget>
189-
</item>
190-
</layout>
191-
</item>
192-
<item row="7" column="0" colspan="2">
94+
<item row="8" column="0" colspan="2">
19395
<layout class="QHBoxLayout" name="horizontalLayout_3">
19496
<item>
19597
<widget class="QPushButton" name="mClassifyButton">
@@ -281,16 +183,53 @@
281183
</property>
282184
</widget>
283185
</item>
284-
<item>
285-
<widget class="QLineEdit" name="mUnitLineEdit">
286-
<property name="toolTip">
287-
<string>Unit suffix</string>
288-
</property>
289-
</widget>
290-
</item>
291186
</layout>
292187
</item>
293-
<item row="6" column="1">
188+
<item row="4" column="1">
189+
<layout class="QHBoxLayout" name="horizontalLayout">
190+
<item>
191+
<widget class="QComboBox" name="mClassificationModeComboBox"/>
192+
</item>
193+
<item>
194+
<widget class="QLabel" name="mNumberOfEntriesLabel">
195+
<property name="text">
196+
<string>Classes</string>
197+
</property>
198+
</widget>
199+
</item>
200+
<item>
201+
<widget class="QSpinBox" name="mNumberOfEntriesSpinBox">
202+
<property name="sizePolicy">
203+
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
204+
<horstretch>0</horstretch>
205+
<verstretch>0</verstretch>
206+
</sizepolicy>
207+
</property>
208+
<property name="maximum">
209+
<number>255</number>
210+
</property>
211+
<property name="value">
212+
<number>0</number>
213+
</property>
214+
</widget>
215+
</item>
216+
</layout>
217+
</item>
218+
<item row="7" column="0">
219+
<layout class="QGridLayout" name="gridLayout_3">
220+
<property name="verticalSpacing">
221+
<number>6</number>
222+
</property>
223+
<item row="0" column="0" colspan="2">
224+
<widget class="QLabel" name="label_2">
225+
<property name="text">
226+
<string>Min / max origin:</string>
227+
</property>
228+
</widget>
229+
</item>
230+
</layout>
231+
</item>
232+
<item row="7" column="1">
294233
<widget class="QLabel" name="mMinMaxOriginLabel">
295234
<property name="sizePolicy">
296235
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
@@ -303,6 +242,83 @@
303242
</property>
304243
</widget>
305244
</item>
245+
<item row="10" column="0" colspan="2">
246+
<widget class="QCheckBox" name="mClipCheckBox">
247+
<property name="toolTip">
248+
<string>If checked, any pixels with a value out of range will not be rendered</string>
249+
</property>
250+
<property name="text">
251+
<string>Clip raster values which are out of range</string>
252+
</property>
253+
</widget>
254+
</item>
255+
<item row="2" column="1">
256+
<widget class="QLineEdit" name="mMinLineEdit"/>
257+
</item>
258+
<item row="4" column="0">
259+
<widget class="QLabel" name="mClassificationModeLabel">
260+
<property name="text">
261+
<string>Mode</string>
262+
</property>
263+
</widget>
264+
</item>
265+
<item row="11" column="0" colspan="2">
266+
<widget class="QWidget" name="mMinMaxContainerWidget" native="true"/>
267+
</item>
268+
<item row="9" column="0" colspan="2">
269+
<widget class="QTreeWidget" name="mColormapTreeWidget">
270+
<property name="sizePolicy">
271+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
272+
<horstretch>0</horstretch>
273+
<verstretch>0</verstretch>
274+
</sizepolicy>
275+
</property>
276+
<property name="minimumSize">
277+
<size>
278+
<width>0</width>
279+
<height>250</height>
280+
</size>
281+
</property>
282+
<attribute name="headerDefaultSectionSize">
283+
<number>70</number>
284+
</attribute>
285+
<attribute name="headerMinimumSectionSize">
286+
<number>10</number>
287+
</attribute>
288+
<attribute name="headerStretchLastSection">
289+
<bool>true</bool>
290+
</attribute>
291+
<column>
292+
<property name="text">
293+
<string>Value</string>
294+
</property>
295+
</column>
296+
<column>
297+
<property name="text">
298+
<string>Color</string>
299+
</property>
300+
</column>
301+
<column>
302+
<property name="text">
303+
<string>Label</string>
304+
</property>
305+
</column>
306+
</widget>
307+
</item>
308+
<item row="6" column="1">
309+
<widget class="QLineEdit" name="mUnitLineEdit">
310+
<property name="toolTip">
311+
<string>Unit suffix</string>
312+
</property>
313+
</widget>
314+
</item>
315+
<item row="6" column="0">
316+
<widget class="QLabel" name="mUnitLabel">
317+
<property name="text">
318+
<string>Label unit suffix</string>
319+
</property>
320+
</widget>
321+
</item>
306322
</layout>
307323
</widget>
308324
<customwidgets>

0 commit comments

Comments
 (0)