|
6 | 6 | <rect>
|
7 | 7 | <x>0</x>
|
8 | 8 | <y>0</y>
|
9 |
| - <width>325</width> |
10 |
| - <height>537</height> |
| 9 | + <width>436</width> |
| 10 | + <height>499</height> |
11 | 11 | </rect>
|
12 | 12 | </property>
|
13 | 13 | <property name="sizePolicy">
|
|
19 | 19 | <property name="windowTitle">
|
20 | 20 | <string>Barscale Options</string>
|
21 | 21 | </property>
|
22 |
| - <layout class="QGridLayout" name="gridLayout"> |
| 22 | + <layout class="QVBoxLayout" name="verticalLayout"> |
23 | 23 | <property name="margin">
|
24 | 24 | <number>0</number>
|
25 | 25 | </property>
|
26 |
| - <item row="0" column="0"> |
| 26 | + <item> |
27 | 27 | <widget class="QToolBox" name="toolBox">
|
28 | 28 | <property name="currentIndex">
|
29 | 29 | <number>0</number>
|
30 | 30 | </property>
|
31 | 31 | <widget class="QWidget" name="page">
|
| 32 | + <property name="enabled"> |
| 33 | + <bool>true</bool> |
| 34 | + </property> |
32 | 35 | <property name="geometry">
|
33 | 36 | <rect>
|
34 | 37 | <x>0</x>
|
35 |
| - <y>0</y> |
36 |
| - <width>315</width> |
37 |
| - <height>501</height> |
| 38 | + <y>-138</y> |
| 39 | + <width>415</width> |
| 40 | + <height>636</height> |
38 | 41 | </rect>
|
39 | 42 | </property>
|
40 | 43 | <attribute name="label">
|
41 | 44 | <string>Scale bar</string>
|
42 | 45 | </attribute>
|
43 | 46 | <layout class="QFormLayout" name="formLayout">
|
44 | 47 | <property name="fieldGrowthPolicy">
|
45 |
| - <enum>QFormLayout::ExpandingFieldsGrow</enum> |
| 48 | + <enum>QFormLayout::AllNonFixedFieldsGrow</enum> |
46 | 49 | </property>
|
47 |
| - <item row="0" column="0"> |
48 |
| - <widget class="QLabel" name="mSegmentSizeLabel"> |
| 50 | + <item row="1" column="0"> |
| 51 | + <widget class="QLabel" name="mUnitsLabel"> |
49 | 52 | <property name="text">
|
50 |
| - <string>Segment size</string> |
| 53 | + <string>Units</string> |
| 54 | + </property> |
| 55 | + </widget> |
| 56 | + </item> |
| 57 | + <item row="1" column="1"> |
| 58 | + <widget class="QComboBox" name="mUnitsComboBox"/> |
| 59 | + </item> |
| 60 | + <item row="3" column="0"> |
| 61 | + <widget class="QLabel" name="mUnitLabelLabel"> |
| 62 | + <property name="text"> |
| 63 | + <string>Unit label</string> |
51 | 64 | </property>
|
52 | 65 | <property name="wordWrap">
|
53 | 66 | <bool>true</bool>
|
54 | 67 | </property>
|
55 | 68 | <property name="buddy">
|
56 |
| - <cstring>mSegmentSizeSpinBox</cstring> |
| 69 | + <cstring>mUnitLabelLineEdit</cstring> |
57 | 70 | </property>
|
58 | 71 | </widget>
|
59 | 72 | </item>
|
60 |
| - <item row="0" column="1"> |
61 |
| - <widget class="QDoubleSpinBox" name="mSegmentSizeSpinBox"> |
62 |
| - <property name="decimals"> |
63 |
| - <number>4</number> |
| 73 | + <item row="3" column="1"> |
| 74 | + <widget class="QLineEdit" name="mUnitLabelLineEdit"/> |
| 75 | + </item> |
| 76 | + <item row="4" column="0"> |
| 77 | + <widget class="QLabel" name="mMapUnitsPerBarUnitLabel"> |
| 78 | + <property name="text"> |
| 79 | + <string>Map units per bar unit</string> |
64 | 80 | </property>
|
65 |
| - <property name="maximum"> |
66 |
| - <double>9999999999999.000000000000000</double> |
| 81 | + <property name="wordWrap"> |
| 82 | + <bool>true</bool> |
| 83 | + </property> |
| 84 | + <property name="buddy"> |
| 85 | + <cstring>mMapUnitsPerBarUnitSpinBox</cstring> |
67 | 86 | </property>
|
68 | 87 | </widget>
|
69 | 88 | </item>
|
70 |
| - <item row="1" column="0"> |
71 |
| - <widget class="QLabel" name="mUnitsLabel"> |
72 |
| - <property name="text"> |
73 |
| - <string>Units</string> |
| 89 | + <item row="4" column="1"> |
| 90 | + <widget class="QDoubleSpinBox" name="mMapUnitsPerBarUnitSpinBox"> |
| 91 | + <property name="maximum"> |
| 92 | + <double>9999999999999.000000000000000</double> |
74 | 93 | </property>
|
75 | 94 | </widget>
|
76 | 95 | </item>
|
77 |
| - <item row="2" column="0"> |
78 |
| - <widget class="QLabel" name="mMapUnitsPerBarUnitLabel"> |
| 96 | + <item row="5" column="0"> |
| 97 | + <widget class="QLabel" name="mSegmentSizeLabel"> |
79 | 98 | <property name="text">
|
80 |
| - <string>Map units per bar unit</string> |
| 99 | + <string>Segment size</string> |
81 | 100 | </property>
|
82 | 101 | <property name="wordWrap">
|
83 | 102 | <bool>true</bool>
|
84 | 103 | </property>
|
85 | 104 | <property name="buddy">
|
86 |
| - <cstring>mMapUnitsPerBarUnitSpinBox</cstring> |
| 105 | + <cstring>mSegmentSizeSpinBox</cstring> |
87 | 106 | </property>
|
88 | 107 | </widget>
|
89 | 108 | </item>
|
90 |
| - <item row="2" column="1"> |
91 |
| - <widget class="QDoubleSpinBox" name="mMapUnitsPerBarUnitSpinBox"> |
| 109 | + <item row="5" column="1"> |
| 110 | + <widget class="QDoubleSpinBox" name="mSegmentSizeSpinBox"> |
| 111 | + <property name="decimals"> |
| 112 | + <number>4</number> |
| 113 | + </property> |
92 | 114 | <property name="maximum">
|
93 | 115 | <double>9999999999999.000000000000000</double>
|
94 | 116 | </property>
|
95 | 117 | </widget>
|
96 | 118 | </item>
|
97 |
| - <item row="3" column="0" colspan="2"> |
| 119 | + <item row="6" column="0"> |
| 120 | + <widget class="QLabel" name="mSegmentLabel"> |
| 121 | + <property name="text"> |
| 122 | + <string>Segments</string> |
| 123 | + </property> |
| 124 | + </widget> |
| 125 | + </item> |
| 126 | + <item row="6" column="1"> |
98 | 127 | <layout class="QHBoxLayout" name="horizontalLayout">
|
99 | 128 | <item>
|
100 | 129 | <widget class="QSpinBox" name="mSegmentsLeftSpinBox">
|
101 | 130 | <property name="suffix">
|
102 |
| - <string> Left segments</string> |
| 131 | + <string> left</string> |
103 | 132 | </property>
|
104 | 133 | </widget>
|
105 | 134 | </item>
|
106 | 135 | <item>
|
107 | 136 | <widget class="QSpinBox" name="mNumberOfSegmentsSpinBox">
|
108 | 137 | <property name="suffix">
|
109 |
| - <string> Right segments</string> |
| 138 | + <string> right</string> |
110 | 139 | </property>
|
111 | 140 | </widget>
|
112 | 141 | </item>
|
113 | 142 | </layout>
|
114 | 143 | </item>
|
115 |
| - <item row="4" column="0"> |
| 144 | + <item row="8" column="0"> |
116 | 145 | <widget class="QLabel" name="mStyleLabel">
|
117 | 146 | <property name="text">
|
118 | 147 | <string>Style</string>
|
|
122 | 151 | </property>
|
123 | 152 | </widget>
|
124 | 153 | </item>
|
125 |
| - <item row="4" column="1"> |
| 154 | + <item row="8" column="1"> |
126 | 155 | <widget class="QComboBox" name="mStyleComboBox"/>
|
127 | 156 | </item>
|
128 |
| - <item row="5" column="0"> |
| 157 | + <item row="9" column="0"> |
129 | 158 | <widget class="QLabel" name="mMapLabel">
|
130 | 159 | <property name="sizePolicy">
|
131 | 160 | <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
144 | 173 | </property>
|
145 | 174 | </widget>
|
146 | 175 | </item>
|
147 |
| - <item row="5" column="1"> |
| 176 | + <item row="9" column="1"> |
148 | 177 | <widget class="QComboBox" name="mMapComboBox">
|
149 | 178 | <property name="enabled">
|
150 | 179 | <bool>true</bool>
|
|
157 | 186 | </property>
|
158 | 187 | </widget>
|
159 | 188 | </item>
|
160 |
| - <item row="6" column="0"> |
| 189 | + <item row="10" column="0"> |
161 | 190 | <widget class="QLabel" name="mAlignmentLabel">
|
162 | 191 | <property name="text">
|
163 | 192 | <string>Alignment</string>
|
164 | 193 | </property>
|
165 | 194 | </widget>
|
166 | 195 | </item>
|
167 |
| - <item row="6" column="1"> |
| 196 | + <item row="10" column="1"> |
168 | 197 | <widget class="QComboBox" name="mAlignmentComboBox"/>
|
169 | 198 | </item>
|
170 |
| - <item row="7" column="0" colspan="2"> |
| 199 | + <item row="14" column="0" colspan="2"> |
171 | 200 | <widget class="QSpinBox" name="mHeightSpinBox">
|
172 | 201 | <property name="suffix">
|
173 | 202 | <string> mm</string>
|
|
177 | 206 | </property>
|
178 | 207 | </widget>
|
179 | 208 | </item>
|
180 |
| - <item row="8" column="0" colspan="2"> |
| 209 | + <item row="15" column="0" colspan="2"> |
| 210 | + <widget class="QDoubleSpinBox" name="mLabelBarSpaceSpinBox"> |
| 211 | + <property name="prefix"> |
| 212 | + <string>Label space </string> |
| 213 | + </property> |
| 214 | + <property name="suffix"> |
| 215 | + <string> mm</string> |
| 216 | + </property> |
| 217 | + </widget> |
| 218 | + </item> |
| 219 | + <item row="16" column="0" colspan="2"> |
181 | 220 | <widget class="QDoubleSpinBox" name="mLineWidthSpinBox">
|
182 | 221 | <property name="sizePolicy">
|
183 | 222 | <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
202 | 241 | </property>
|
203 | 242 | </widget>
|
204 | 243 | </item>
|
205 |
| - <item row="9" column="0" colspan="2"> |
206 |
| - <widget class="QDoubleSpinBox" name="mLabelBarSpaceSpinBox"> |
207 |
| - <property name="prefix"> |
208 |
| - <string>Label space </string> |
209 |
| - </property> |
210 |
| - <property name="suffix"> |
211 |
| - <string> mm</string> |
212 |
| - </property> |
213 |
| - </widget> |
214 |
| - </item> |
215 |
| - <item row="10" column="0" colspan="2"> |
| 244 | + <item row="17" column="0" colspan="2"> |
216 | 245 | <widget class="QDoubleSpinBox" name="mBoxSizeSpinBox">
|
217 | 246 | <property name="prefix">
|
218 | 247 | <string>Box space </string>
|
|
222 | 251 | </property>
|
223 | 252 | </widget>
|
224 | 253 | </item>
|
225 |
| - <item row="11" column="0"> |
226 |
| - <widget class="QLabel" name="mUnitLabelLabel"> |
227 |
| - <property name="text"> |
228 |
| - <string>Unit label</string> |
| 254 | + <item row="19" column="0" colspan="2"> |
| 255 | + <layout class="QHBoxLayout" name="horizontalLayout2"> |
| 256 | + <property name="margin"> |
| 257 | + <number>0</number> |
229 | 258 | </property>
|
230 |
| - <property name="wordWrap"> |
231 |
| - <bool>true</bool> |
232 |
| - </property> |
233 |
| - <property name="buddy"> |
234 |
| - <cstring>mUnitLabelLineEdit</cstring> |
235 |
| - </property> |
236 |
| - </widget> |
237 |
| - </item> |
238 |
| - <item row="11" column="1"> |
239 |
| - <widget class="QLineEdit" name="mUnitLabelLineEdit"/> |
240 |
| - </item> |
241 |
| - <item row="12" column="0" colspan="2"> |
242 |
| - <widget class="QPushButton" name="mFontButton"> |
243 |
| - <property name="sizePolicy"> |
244 |
| - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
245 |
| - <horstretch>0</horstretch> |
246 |
| - <verstretch>0</verstretch> |
247 |
| - </sizepolicy> |
248 |
| - </property> |
249 |
| - <property name="text"> |
250 |
| - <string>Font...</string> |
251 |
| - </property> |
252 |
| - </widget> |
253 |
| - </item> |
254 |
| - <item row="13" column="0" colspan="2"> |
255 |
| - <widget class="QPushButton" name="mColorPushButton"> |
256 |
| - <property name="text"> |
257 |
| - <string>Color...</string> |
258 |
| - </property> |
259 |
| - </widget> |
| 259 | + <item> |
| 260 | + <widget class="QPushButton" name="mFontButton"> |
| 261 | + <property name="sizePolicy"> |
| 262 | + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
| 263 | + <horstretch>0</horstretch> |
| 264 | + <verstretch>0</verstretch> |
| 265 | + </sizepolicy> |
| 266 | + </property> |
| 267 | + <property name="text"> |
| 268 | + <string>Font...</string> |
| 269 | + </property> |
| 270 | + </widget> |
| 271 | + </item> |
| 272 | + <item> |
| 273 | + <widget class="QPushButton" name="mFontColorButton"> |
| 274 | + <property name="enabled"> |
| 275 | + <bool>false</bool> |
| 276 | + </property> |
| 277 | + <property name="text"> |
| 278 | + <string>Font color...</string> |
| 279 | + </property> |
| 280 | + </widget> |
| 281 | + </item> |
| 282 | + </layout> |
260 | 283 | </item>
|
261 |
| - <item row="14" column="0" colspan="2"> |
| 284 | + <item row="22" column="0" colspan="2"> |
262 | 285 | <spacer name="verticalSpacer">
|
263 | 286 | <property name="orientation">
|
264 | 287 | <enum>Qt::Vertical</enum>
|
|
271 | 294 | </property>
|
272 | 295 | </spacer>
|
273 | 296 | </item>
|
274 |
| - <item row="1" column="1"> |
275 |
| - <widget class="QComboBox" name="mUnitsComboBox"/> |
| 297 | + <item row="20" column="0" colspan="2"> |
| 298 | + <layout class="QHBoxLayout" name="horizontalLayout3"> |
| 299 | + <property name="margin"> |
| 300 | + <number>0</number> |
| 301 | + </property> |
| 302 | + <item> |
| 303 | + <widget class="QPushButton" name="mColorPushButton"> |
| 304 | + <property name="text"> |
| 305 | + <string>Fill color...</string> |
| 306 | + </property> |
| 307 | + </widget> |
| 308 | + </item> |
| 309 | + <item> |
| 310 | + <widget class="QPushButton" name="mStrokeColorPushButton"> |
| 311 | + <property name="text"> |
| 312 | + <string>Stroke color...</string> |
| 313 | + </property> |
| 314 | + </widget> |
| 315 | + </item> |
| 316 | + </layout> |
276 | 317 | </item>
|
277 | 318 | </layout>
|
278 | 319 | </widget>
|
|
0 commit comments