|
60 | 60 | <property name="geometry">
|
61 | 61 | <rect>
|
62 | 62 | <x>0</x>
|
63 |
| - <y>-275</y> |
| 63 | + <y>0</y> |
64 | 64 | <width>438</width>
|
65 | 65 | <height>914</height>
|
66 | 66 | </rect>
|
|
143 | 143 | <property name="collapsed" stdset="0">
|
144 | 144 | <bool>false</bool>
|
145 | 145 | </property>
|
146 |
| - <layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1"> |
147 |
| - <item row="1" column="0"> |
148 |
| - <widget class="QLabel" name="mUnitLabelLabel"> |
| 146 | + <layout class="QGridLayout" name="gridLayout_2" columnstretch="0,0"> |
| 147 | + <item row="0" column="0"> |
| 148 | + <widget class="QLabel" name="label_12"> |
149 | 149 | <property name="text">
|
150 |
| - <string>&Label</string> |
151 |
| - </property> |
152 |
| - <property name="wordWrap"> |
153 |
| - <bool>true</bool> |
154 |
| - </property> |
155 |
| - <property name="buddy"> |
156 |
| - <cstring>mUnitLabelLineEdit</cstring> |
| 150 | + <string>Scalebar units</string> |
157 | 151 | </property>
|
158 | 152 | </widget>
|
159 | 153 | </item>
|
160 |
| - <item row="1" column="1"> |
161 |
| - <widget class="QLineEdit" name="mUnitLabelLineEdit"/> |
162 |
| - </item> |
163 | 154 | <item row="2" column="0">
|
164 |
| - <widget class="QLabel" name="mMapUnitsPerBarUnitLabel"> |
| 155 | + <widget class="QLabel" name="mUnitLabelLabel"> |
165 | 156 | <property name="text">
|
166 |
| - <string>Map &units per bar unit</string> |
| 157 | + <string>&Label for units</string> |
167 | 158 | </property>
|
168 | 159 | <property name="wordWrap">
|
169 |
| - <bool>false</bool> |
| 160 | + <bool>true</bool> |
170 | 161 | </property>
|
171 | 162 | <property name="buddy">
|
172 |
| - <cstring>mMapUnitsPerBarUnitSpinBox</cstring> |
| 163 | + <cstring>mUnitLabelLineEdit</cstring> |
173 | 164 | </property>
|
174 | 165 | </widget>
|
175 | 166 | </item>
|
176 |
| - <item row="2" column="1"> |
| 167 | + <item row="1" column="1"> |
177 | 168 | <widget class="QgsDoubleSpinBox" name="mMapUnitsPerBarUnitSpinBox">
|
| 169 | + <property name="toolTip"> |
| 170 | + <string>Specifies how many scalebar units per labeled unit. Eg, if your scalebar units are set to "meters", a multiplier of 1000 will result in the scalebar labels in kilometers.</string> |
| 171 | + </property> |
178 | 172 | <property name="decimals">
|
179 | 173 | <number>6</number>
|
180 | 174 | </property>
|
|
186 | 180 | </property>
|
187 | 181 | </widget>
|
188 | 182 | </item>
|
189 |
| - <item row="0" column="0" colspan="2"> |
190 |
| - <widget class="QComboBox" name="mUnitsComboBox"/> |
| 183 | + <item row="2" column="1"> |
| 184 | + <widget class="QLineEdit" name="mUnitLabelLineEdit"> |
| 185 | + <property name="toolTip"> |
| 186 | + <string>Text used for labeling the scalebar units, eg "m" or "km". This should be matched to the reflect the multiplier above. </string> |
| 187 | + </property> |
| 188 | + </widget> |
| 189 | + </item> |
| 190 | + <item row="0" column="1"> |
| 191 | + <widget class="QComboBox" name="mUnitsComboBox"> |
| 192 | + <property name="toolTip"> |
| 193 | + <string>Specifies the underlying units used for scalebar calculations, eg "meters" or "feet"</string> |
| 194 | + </property> |
| 195 | + </widget> |
| 196 | + </item> |
| 197 | + <item row="1" column="0"> |
| 198 | + <widget class="QLabel" name="mMapUnitsPerBarUnitLabel"> |
| 199 | + <property name="text"> |
| 200 | + <string>Label unit multiplier</string> |
| 201 | + </property> |
| 202 | + <property name="wordWrap"> |
| 203 | + <bool>false</bool> |
| 204 | + </property> |
| 205 | + <property name="buddy"> |
| 206 | + <cstring>mMapUnitsPerBarUnitSpinBox</cstring> |
| 207 | + </property> |
| 208 | + </widget> |
191 | 209 | </item>
|
192 | 210 | </layout>
|
193 | 211 | </widget>
|
|
216 | 234 | </item>
|
217 | 235 | <item row="2" column="2">
|
218 | 236 | <widget class="QgsDoubleSpinBox" name="mSegmentSizeSpinBox">
|
| 237 | + <property name="toolTip"> |
| 238 | + <string>Number of scalebar units per scalebar segment</string> |
| 239 | + </property> |
219 | 240 | <property name="suffix">
|
220 | 241 | <string> units</string>
|
221 | 242 | </property>
|
|
664 | 685 | <extends>QDoubleSpinBox</extends>
|
665 | 686 | <header>qgsdoublespinbox.h</header>
|
666 | 687 | </customwidget>
|
667 |
| - <customwidget> |
668 |
| - <class>QgsSpinBox</class> |
669 |
| - <extends>QSpinBox</extends> |
670 |
| - <header>qgsspinbox.h</header> |
671 |
| - </customwidget> |
672 | 688 | <customwidget>
|
673 | 689 | <class>QgsPenJoinStyleComboBox</class>
|
674 | 690 | <extends>QComboBox</extends>
|
|
679 | 695 | <extends>QComboBox</extends>
|
680 | 696 | <header>qgspenstylecombobox.h</header>
|
681 | 697 | </customwidget>
|
| 698 | + <customwidget> |
| 699 | + <class>QgsSpinBox</class> |
| 700 | + <extends>QSpinBox</extends> |
| 701 | + <header>qgsspinbox.h</header> |
| 702 | + </customwidget> |
682 | 703 | <customwidget>
|
683 | 704 | <class>QgsCollapsibleGroupBoxBasic</class>
|
684 | 705 | <extends>QGroupBox</extends>
|
|
693 | 714 | <tabstop>mStyleComboBox</tabstop>
|
694 | 715 | <tabstop>mGroupBoxUnits</tabstop>
|
695 | 716 | <tabstop>mUnitsComboBox</tabstop>
|
696 |
| - <tabstop>mUnitLabelLineEdit</tabstop> |
697 | 717 | <tabstop>mMapUnitsPerBarUnitSpinBox</tabstop>
|
| 718 | + <tabstop>mUnitLabelLineEdit</tabstop> |
698 | 719 | <tabstop>mGroupBoxSegments</tabstop>
|
699 | 720 | <tabstop>mSegmentsLeftSpinBox</tabstop>
|
700 | 721 | <tabstop>mNumberOfSegmentsSpinBox</tabstop>
|
|
0 commit comments