~librecad-dev/librecad/librecad

« back to all changes in this revision

Viewing changes to librecad/src/ui/forms/qg_snaptoolbar.ui

  • Committer: Scott Howard
  • Date: 2014-02-21 19:07:55 UTC
  • Revision ID: showard@debian.org-20140221190755-csjax9wb146hgdq4
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<ui version="4.0">
 
3
 <class>QG_SnapToolBar</class>
 
4
 <widget class="QWidget" name="QG_SnapToolBar">
 
5
  <property name="geometry">
 
6
   <rect>
 
7
    <x>0</x>
 
8
    <y>0</y>
 
9
    <width>375</width>
 
10
    <height>30</height>
 
11
   </rect>
 
12
  </property>
 
13
  <property name="sizePolicy">
 
14
   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
 
15
    <horstretch>0</horstretch>
 
16
    <verstretch>0</verstretch>
 
17
   </sizepolicy>
 
18
  </property>
 
19
  <property name="minimumSize">
 
20
   <size>
 
21
    <width>373</width>
 
22
    <height>24</height>
 
23
   </size>
 
24
  </property>
 
25
  <property name="windowTitle">
 
26
   <string>Snap</string>
 
27
  </property>
 
28
  <layout class="QHBoxLayout" name="horizontalLayout">
 
29
   <property name="spacing">
 
30
    <number>0</number>
 
31
   </property>
 
32
   <property name="leftMargin">
 
33
    <number>1</number>
 
34
   </property>
 
35
   <property name="topMargin">
 
36
    <number>0</number>
 
37
   </property>
 
38
   <property name="rightMargin">
 
39
    <number>0</number>
 
40
   </property>
 
41
   <property name="bottomMargin">
 
42
    <number>0</number>
 
43
   </property>
 
44
   <item>
 
45
    <widget class="QToolButton" name="bEndpoint">
 
46
     <property name="toolTip">
 
47
      <string>Snap to Endpoints</string>
 
48
     </property>
 
49
     <property name="text">
 
50
      <string/>
 
51
     </property>
 
52
     <property name="icon">
 
53
      <iconset resource="../../../res/extui/extui.qrc">
 
54
       <normaloff>:/extui/snapendpoint.png</normaloff>:/extui/snapendpoint.png</iconset>
 
55
     </property>
 
56
     <property name="checkable">
 
57
      <bool>true</bool>
 
58
     </property>
 
59
    </widget>
 
60
   </item>
 
61
   <item>
 
62
    <widget class="QToolButton" name="bMiddle">
 
63
     <property name="toolTip">
 
64
      <string>Snap to equidistant points of entity</string>
 
65
     </property>
 
66
     <property name="text">
 
67
      <string/>
 
68
     </property>
 
69
     <property name="icon">
 
70
      <iconset resource="../../../res/extui/extui.qrc">
 
71
       <normaloff>:/extui/snapmiddle.png</normaloff>:/extui/snapmiddle.png</iconset>
 
72
     </property>
 
73
     <property name="checkable">
 
74
      <bool>true</bool>
 
75
     </property>
 
76
    </widget>
 
77
   </item>
 
78
   <item>
 
79
    <widget class="QToolButton" name="bCenter">
 
80
     <property name="toolTip">
 
81
      <string>Snap to center points</string>
 
82
     </property>
 
83
     <property name="text">
 
84
      <string/>
 
85
     </property>
 
86
     <property name="icon">
 
87
      <iconset resource="../../../res/extui/extui.qrc">
 
88
       <normaloff>:/extui/snapcenter.png</normaloff>:/extui/snapcenter.png</iconset>
 
89
     </property>
 
90
     <property name="checkable">
 
91
      <bool>true</bool>
 
92
     </property>
 
93
    </widget>
 
94
   </item>
 
95
   <item>
 
96
    <widget class="QToolButton" name="bIntersection">
 
97
     <property name="toolTip">
 
98
      <string>Snap to intersections automatically</string>
 
99
     </property>
 
100
     <property name="text">
 
101
      <string/>
 
102
     </property>
 
103
     <property name="icon">
 
104
      <iconset resource="../../../res/extui/extui.qrc">
 
105
       <normaloff>:/extui/snapintersection.png</normaloff>:/extui/snapintersection.png</iconset>
 
106
     </property>
 
107
     <property name="checkable">
 
108
      <bool>true</bool>
 
109
     </property>
 
110
    </widget>
 
111
   </item>
 
112
   <item>
 
113
    <widget class="QToolButton" name="bOnEntity">
 
114
     <property name="toolTip">
 
115
      <string>Snap to closest point on entity</string>
 
116
     </property>
 
117
     <property name="text">
 
118
      <string/>
 
119
     </property>
 
120
     <property name="icon">
 
121
      <iconset resource="../../../res/extui/extui.qrc">
 
122
       <normaloff>:/extui/snaponentity.png</normaloff>:/extui/snaponentity.png</iconset>
 
123
     </property>
 
124
     <property name="checkable">
 
125
      <bool>true</bool>
 
126
     </property>
 
127
    </widget>
 
128
   </item>
 
129
   <item>
 
130
    <widget class="QToolButton" name="bDist">
 
131
     <property name="toolTip">
 
132
      <string>Snap to point with given distance to endpoint</string>
 
133
     </property>
 
134
     <property name="text">
 
135
      <string/>
 
136
     </property>
 
137
     <property name="icon">
 
138
      <iconset resource="../../../res/extui/extui.qrc">
 
139
       <normaloff>:/extui/snapdist.png</normaloff>:/extui/snapdist.png</iconset>
 
140
     </property>
 
141
     <property name="checkable">
 
142
      <bool>true</bool>
 
143
     </property>
 
144
    </widget>
 
145
   </item>
 
146
   <item>
 
147
    <widget class="QToolButton" name="bIntersectionManual">
 
148
     <property name="toolTip">
 
149
      <string>Snap to intersections manually</string>
 
150
     </property>
 
151
     <property name="text">
 
152
      <string/>
 
153
     </property>
 
154
     <property name="icon">
 
155
      <iconset resource="../../../res/extui/extui.qrc">
 
156
       <normaloff>:/extui/snapintersectionm.png</normaloff>:/extui/snapintersectionm.png</iconset>
 
157
     </property>
 
158
     <property name="checkable">
 
159
      <bool>true</bool>
 
160
     </property>
 
161
    </widget>
 
162
   </item>
 
163
   <item>
 
164
    <widget class="QToolButton" name="bGrid">
 
165
     <property name="toolTip">
 
166
      <string>Snap to grid</string>
 
167
     </property>
 
168
     <property name="text">
 
169
      <string/>
 
170
     </property>
 
171
     <property name="icon">
 
172
      <iconset resource="../../../res/extui/extui.qrc">
 
173
       <normaloff>:/extui/snapgrid.png</normaloff>:/extui/snapgrid.png</iconset>
 
174
     </property>
 
175
     <property name="checkable">
 
176
      <bool>true</bool>
 
177
     </property>
 
178
    </widget>
 
179
   </item>
 
180
   <item>
 
181
    <widget class="QToolButton" name="bResHorizontal">
 
182
     <property name="toolTip">
 
183
      <string>Restrict Horizontally</string>
 
184
     </property>
 
185
     <property name="text">
 
186
      <string/>
 
187
     </property>
 
188
     <property name="icon">
 
189
      <iconset resource="../../../res/extui/extui.qrc">
 
190
       <normaloff>:/extui/restricthorizontal.png</normaloff>:/extui/restricthorizontal.png</iconset>
 
191
     </property>
 
192
     <property name="checkable">
 
193
      <bool>true</bool>
 
194
     </property>
 
195
    </widget>
 
196
   </item>
 
197
   <item>
 
198
    <widget class="QToolButton" name="bResVertical">
 
199
     <property name="toolTip">
 
200
      <string>Restrict Vertically</string>
 
201
     </property>
 
202
     <property name="text">
 
203
      <string/>
 
204
     </property>
 
205
     <property name="icon">
 
206
      <iconset resource="../../../res/extui/extui.qrc">
 
207
       <normaloff>:/extui/restrictvertical.png</normaloff>:/extui/restrictvertical.png</iconset>
 
208
     </property>
 
209
     <property name="checkable">
 
210
      <bool>true</bool>
 
211
     </property>
 
212
    </widget>
 
213
   </item>
 
214
   <item>
 
215
    <widget class="QToolButton" name="bRelZero">
 
216
     <property name="toolTip">
 
217
      <string>Move relative Zero</string>
 
218
     </property>
 
219
     <property name="text">
 
220
      <string/>
 
221
     </property>
 
222
     <property name="icon">
 
223
      <iconset resource="../../../res/extui/extui.qrc">
 
224
       <normaloff>:/extui/relzeromove.png</normaloff>:/extui/relzeromove.png</iconset>
 
225
     </property>
 
226
     <property name="checkable">
 
227
      <bool>false</bool>
 
228
     </property>
 
229
    </widget>
 
230
   </item>
 
231
   <item>
 
232
    <widget class="QToolButton" name="bLockRelZero">
 
233
     <property name="toolTip">
 
234
      <string>Lock relative Zero</string>
 
235
     </property>
 
236
     <property name="text">
 
237
      <string/>
 
238
     </property>
 
239
     <property name="icon">
 
240
      <iconset resource="../../../res/extui/extui.qrc">
 
241
       <normaloff>:/extui/relzerolock.png</normaloff>:/extui/relzerolock.png</iconset>
 
242
     </property>
 
243
     <property name="checkable">
 
244
      <bool>true</bool>
 
245
     </property>
 
246
    </widget>
 
247
   </item>
 
248
   <item>
 
249
    <spacer name="horizontalSpacer">
 
250
     <property name="orientation">
 
251
      <enum>Qt::Horizontal</enum>
 
252
     </property>
 
253
     <property name="sizeHint" stdset="0">
 
254
      <size>
 
255
       <width>40</width>
 
256
       <height>20</height>
 
257
      </size>
 
258
     </property>
 
259
    </spacer>
 
260
   </item>
 
261
  </layout>
 
262
 </widget>
 
263
 <layoutdefault spacing="6" margin="11"/>
 
264
 <resources>
 
265
  <include location="../../../res/extui/extui.qrc"/>
 
266
 </resources>
 
267
 <connections>
 
268
  <connection>
 
269
   <sender>bGrid</sender>
 
270
   <signal>clicked()</signal>
 
271
   <receiver>QG_SnapToolBar</receiver>
 
272
   <slot>snapGrid()</slot>
 
273
   <hints>
 
274
    <hint type="sourcelabel">
 
275
     <x>20</x>
 
276
     <y>20</y>
 
277
    </hint>
 
278
    <hint type="destinationlabel">
 
279
     <x>20</x>
 
280
     <y>20</y>
 
281
    </hint>
 
282
   </hints>
 
283
  </connection>
 
284
  <connection>
 
285
   <sender>bEndpoint</sender>
 
286
   <signal>clicked()</signal>
 
287
   <receiver>QG_SnapToolBar</receiver>
 
288
   <slot>snapEndpoint()</slot>
 
289
   <hints>
 
290
    <hint type="sourcelabel">
 
291
     <x>20</x>
 
292
     <y>20</y>
 
293
    </hint>
 
294
    <hint type="destinationlabel">
 
295
     <x>20</x>
 
296
     <y>20</y>
 
297
    </hint>
 
298
   </hints>
 
299
  </connection>
 
300
  <connection>
 
301
   <sender>bOnEntity</sender>
 
302
   <signal>clicked()</signal>
 
303
   <receiver>QG_SnapToolBar</receiver>
 
304
   <slot>snapOnEntity()</slot>
 
305
   <hints>
 
306
    <hint type="sourcelabel">
 
307
     <x>20</x>
 
308
     <y>20</y>
 
309
    </hint>
 
310
    <hint type="destinationlabel">
 
311
     <x>20</x>
 
312
     <y>20</y>
 
313
    </hint>
 
314
   </hints>
 
315
  </connection>
 
316
  <connection>
 
317
   <sender>bCenter</sender>
 
318
   <signal>clicked()</signal>
 
319
   <receiver>QG_SnapToolBar</receiver>
 
320
   <slot>snapCenter()</slot>
 
321
   <hints>
 
322
    <hint type="sourcelabel">
 
323
     <x>20</x>
 
324
     <y>20</y>
 
325
    </hint>
 
326
    <hint type="destinationlabel">
 
327
     <x>20</x>
 
328
     <y>20</y>
 
329
    </hint>
 
330
   </hints>
 
331
  </connection>
 
332
  <connection>
 
333
   <sender>bMiddle</sender>
 
334
   <signal>clicked()</signal>
 
335
   <receiver>QG_SnapToolBar</receiver>
 
336
   <slot>snapMiddle()</slot>
 
337
   <hints>
 
338
    <hint type="sourcelabel">
 
339
     <x>20</x>
 
340
     <y>20</y>
 
341
    </hint>
 
342
    <hint type="destinationlabel">
 
343
     <x>20</x>
 
344
     <y>20</y>
 
345
    </hint>
 
346
   </hints>
 
347
  </connection>
 
348
  <connection>
 
349
   <sender>bDist</sender>
 
350
   <signal>clicked()</signal>
 
351
   <receiver>QG_SnapToolBar</receiver>
 
352
   <slot>snapDist()</slot>
 
353
   <hints>
 
354
    <hint type="sourcelabel">
 
355
     <x>20</x>
 
356
     <y>20</y>
 
357
    </hint>
 
358
    <hint type="destinationlabel">
 
359
     <x>20</x>
 
360
     <y>20</y>
 
361
    </hint>
 
362
   </hints>
 
363
  </connection>
 
364
  <connection>
 
365
   <sender>bIntersection</sender>
 
366
   <signal>clicked()</signal>
 
367
   <receiver>QG_SnapToolBar</receiver>
 
368
   <slot>snapIntersection()</slot>
 
369
   <hints>
 
370
    <hint type="sourcelabel">
 
371
     <x>20</x>
 
372
     <y>20</y>
 
373
    </hint>
 
374
    <hint type="destinationlabel">
 
375
     <x>20</x>
 
376
     <y>20</y>
 
377
    </hint>
 
378
   </hints>
 
379
  </connection>
 
380
  <connection>
 
381
   <sender>bRelZero</sender>
 
382
   <signal>clicked()</signal>
 
383
   <receiver>QG_SnapToolBar</receiver>
 
384
   <slot>setRelativeZero()</slot>
 
385
   <hints>
 
386
    <hint type="sourcelabel">
 
387
     <x>20</x>
 
388
     <y>20</y>
 
389
    </hint>
 
390
    <hint type="destinationlabel">
 
391
     <x>20</x>
 
392
     <y>20</y>
 
393
    </hint>
 
394
   </hints>
 
395
  </connection>
 
396
  <connection>
 
397
   <sender>bLockRelZero</sender>
 
398
   <signal>toggled(bool)</signal>
 
399
   <receiver>QG_SnapToolBar</receiver>
 
400
   <slot>lockRelativeZero(bool)</slot>
 
401
   <hints>
 
402
    <hint type="sourcelabel">
 
403
     <x>20</x>
 
404
     <y>20</y>
 
405
    </hint>
 
406
    <hint type="destinationlabel">
 
407
     <x>20</x>
 
408
     <y>20</y>
 
409
    </hint>
 
410
   </hints>
 
411
  </connection>
 
412
  <connection>
 
413
   <sender>bResHorizontal</sender>
 
414
   <signal>clicked()</signal>
 
415
   <receiver>QG_SnapToolBar</receiver>
 
416
   <slot>restrictHorizontal()</slot>
 
417
   <hints>
 
418
    <hint type="sourcelabel">
 
419
     <x>20</x>
 
420
     <y>20</y>
 
421
    </hint>
 
422
    <hint type="destinationlabel">
 
423
     <x>20</x>
 
424
     <y>20</y>
 
425
    </hint>
 
426
   </hints>
 
427
  </connection>
 
428
  <connection>
 
429
   <sender>bResVertical</sender>
 
430
   <signal>clicked()</signal>
 
431
   <receiver>QG_SnapToolBar</receiver>
 
432
   <slot>restrictVertical()</slot>
 
433
   <hints>
 
434
    <hint type="sourcelabel">
 
435
     <x>20</x>
 
436
     <y>20</y>
 
437
    </hint>
 
438
    <hint type="destinationlabel">
 
439
     <x>20</x>
 
440
     <y>20</y>
 
441
    </hint>
 
442
   </hints>
 
443
  </connection>
 
444
  <connection>
 
445
   <sender>bIntersectionManual</sender>
 
446
   <signal>clicked()</signal>
 
447
   <receiver>QG_SnapToolBar</receiver>
 
448
   <slot>snapIntersectionManual()</slot>
 
449
   <hints>
 
450
    <hint type="sourcelabel">
 
451
     <x>20</x>
 
452
     <y>20</y>
 
453
    </hint>
 
454
    <hint type="destinationlabel">
 
455
     <x>20</x>
 
456
     <y>20</y>
 
457
    </hint>
 
458
   </hints>
 
459
  </connection>
 
460
 </connections>
 
461
</ui>