]> Shamusworld >> Repos - architektonas/blob - src/forms/cadtoolbarlines.ui
Successfully refactored CadToolBarLines to use predefined actions.
[architektonas] / src / forms / cadtoolbarlines.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>CadToolBarLines</class>
4  <widget class="QWidget" name="CadToolBarLines">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>56</width>
10     <height>338</height>
11    </rect>
12   </property>
13   <property name="sizePolicy">
14    <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
15     <horstretch>0</horstretch>
16     <verstretch>0</verstretch>
17    </sizepolicy>
18   </property>
19   <property name="minimumSize">
20    <size>
21     <width>56</width>
22     <height>336</height>
23    </size>
24   </property>
25   <property name="windowTitle">
26    <string>Lines</string>
27   </property>
28   <widget class="QToolButton" name="bBack">
29    <property name="geometry">
30     <rect>
31      <x>0</x>
32      <y>0</y>
33      <width>56</width>
34      <height>20</height>
35     </rect>
36    </property>
37    <property name="toolTip">
38     <string>Back to main menu</string>
39    </property>
40    <property name="text">
41     <string/>
42    </property>
43    <property name="icon">
44     <iconset resource="res/architektonas.qrc">
45      <normaloff>:res/qg_back.xpm</normaloff>:res/qg_back.xpm</iconset>
46    </property>
47   </widget>
48   <widget class="QToolButton" name="bNormal">
49    <property name="geometry">
50     <rect>
51      <x>0</x>
52      <y>20</y>
53      <width>28</width>
54      <height>28</height>
55     </rect>
56    </property>
57    <property name="toolTip">
58     <string>Line with two points</string>
59    </property>
60    <property name="text">
61     <string/>
62    </property>
63    <property name="icon">
64     <iconset resource="res/architektonas.qrc">
65      <normaloff>:res/qg_linesnormal.xpm</normaloff>:res/qg_linesnormal.xpm</iconset>
66    </property>
67   </widget>
68   <widget class="QToolButton" name="bAngle">
69    <property name="geometry">
70     <rect>
71      <x>28</x>
72      <y>20</y>
73      <width>28</width>
74      <height>28</height>
75     </rect>
76    </property>
77    <property name="toolTip">
78     <string>Line with given angle</string>
79    </property>
80    <property name="text">
81     <string/>
82    </property>
83    <property name="icon">
84     <iconset resource="res/architektonas.qrc">
85      <normaloff>:res/qg_linesangle.xpm</normaloff>:res/qg_linesangle.xpm</iconset>
86    </property>
87   </widget>
88   <widget class="QToolButton" name="bHorizontal">
89    <property name="geometry">
90     <rect>
91      <x>0</x>
92      <y>48</y>
93      <width>28</width>
94      <height>28</height>
95     </rect>
96    </property>
97    <property name="toolTip">
98     <string>Horizontal lines</string>
99    </property>
100    <property name="text">
101     <string/>
102    </property>
103    <property name="icon">
104     <iconset resource="res/architektonas.qrc">
105      <normaloff>:res/qg_lineshor.xpm</normaloff>:res/qg_lineshor.xpm</iconset>
106    </property>
107   </widget>
108   <widget class="QToolButton" name="bVertical">
109    <property name="geometry">
110     <rect>
111      <x>28</x>
112      <y>48</y>
113      <width>28</width>
114      <height>28</height>
115     </rect>
116    </property>
117    <property name="toolTip">
118     <string>Vertical lines</string>
119    </property>
120    <property name="text">
121     <string/>
122    </property>
123    <property name="icon">
124     <iconset resource="res/architektonas.qrc">
125      <normaloff>:res/qg_linesver.xpm</normaloff>:res/qg_linesver.xpm</iconset>
126    </property>
127   </widget>
128   <widget class="QToolButton" name="bRectangle">
129    <property name="geometry">
130     <rect>
131      <x>0</x>
132      <y>76</y>
133      <width>28</width>
134      <height>28</height>
135     </rect>
136    </property>
137    <property name="toolTip">
138     <string>Rectangles</string>
139    </property>
140    <property name="text">
141     <string/>
142    </property>
143    <property name="icon">
144     <iconset resource="res/architektonas.qrc">
145      <normaloff>:res/qg_linesrect.xpm</normaloff>:res/qg_linesrect.xpm</iconset>
146    </property>
147   </widget>
148   <widget class="QToolButton" name="bBisector">
149    <property name="geometry">
150     <rect>
151      <x>28</x>
152      <y>76</y>
153      <width>28</width>
154      <height>28</height>
155     </rect>
156    </property>
157    <property name="toolTip">
158     <string>Bisectors</string>
159    </property>
160    <property name="text">
161     <string/>
162    </property>
163    <property name="icon">
164     <iconset resource="res/architektonas.qrc">
165      <normaloff>:res/qg_linesbisector.xpm</normaloff>:res/qg_linesbisector.xpm</iconset>
166    </property>
167   </widget>
168   <widget class="QToolButton" name="bParallel">
169    <property name="geometry">
170     <rect>
171      <x>0</x>
172      <y>104</y>
173      <width>28</width>
174      <height>28</height>
175     </rect>
176    </property>
177    <property name="toolTip">
178     <string>Parallels with distance</string>
179    </property>
180    <property name="text">
181     <string/>
182    </property>
183    <property name="icon">
184     <iconset resource="res/architektonas.qrc">
185      <normaloff>:res/qg_linespara.xpm</normaloff>:res/qg_linespara.xpm</iconset>
186    </property>
187   </widget>
188   <widget class="QToolButton" name="bTangent1">
189    <property name="geometry">
190     <rect>
191      <x>0</x>
192      <y>132</y>
193      <width>28</width>
194      <height>28</height>
195     </rect>
196    </property>
197    <property name="toolTip">
198     <string>Tangents from point to circle</string>
199    </property>
200    <property name="text">
201     <string/>
202    </property>
203    <property name="icon">
204     <iconset resource="res/architektonas.qrc">
205      <normaloff>:res/qg_linestan1.xpm</normaloff>:res/qg_linestan1.xpm</iconset>
206    </property>
207   </widget>
208   <widget class="QToolButton" name="bTangent2">
209    <property name="geometry">
210     <rect>
211      <x>28</x>
212      <y>132</y>
213      <width>28</width>
214      <height>28</height>
215     </rect>
216    </property>
217    <property name="toolTip">
218     <string>Tangents from circle to circle</string>
219    </property>
220    <property name="text">
221     <string/>
222    </property>
223    <property name="icon">
224     <iconset resource="res/architektonas.qrc">
225      <normaloff>:res/qg_linestan2.xpm</normaloff>:res/qg_linestan2.xpm</iconset>
226    </property>
227   </widget>
228   <widget class="QToolButton" name="bOrthogonal">
229    <property name="geometry">
230     <rect>
231      <x>0</x>
232      <y>160</y>
233      <width>28</width>
234      <height>28</height>
235     </rect>
236    </property>
237    <property name="toolTip">
238     <string>Orthogonal lines</string>
239    </property>
240    <property name="text">
241     <string/>
242    </property>
243    <property name="icon">
244     <iconset resource="res/architektonas.qrc">
245      <normaloff>:res/qg_linesorthogonal.xpm</normaloff>:res/qg_linesorthogonal.xpm</iconset>
246    </property>
247   </widget>
248   <widget class="QToolButton" name="bRelAngle">
249    <property name="geometry">
250     <rect>
251      <x>28</x>
252      <y>160</y>
253      <width>28</width>
254      <height>28</height>
255     </rect>
256    </property>
257    <property name="toolTip">
258     <string>Lines with relative angles</string>
259    </property>
260    <property name="text">
261     <string/>
262    </property>
263    <property name="icon">
264     <iconset resource="res/architektonas.qrc">
265      <normaloff>:res/qg_linesrelativeangle.xpm</normaloff>:res/qg_linesrelativeangle.xpm</iconset>
266    </property>
267   </widget>
268   <widget class="QToolButton" name="bPolygon">
269    <property name="geometry">
270     <rect>
271      <x>0</x>
272      <y>188</y>
273      <width>28</width>
274      <height>28</height>
275     </rect>
276    </property>
277    <property name="toolTip">
278     <string>Polygons with Center and Corner</string>
279    </property>
280    <property name="text">
281     <string/>
282    </property>
283    <property name="icon">
284     <iconset resource="res/architektonas.qrc">
285      <normaloff>:res/qg_linespolygon.xpm</normaloff>:res/qg_linespolygon.xpm</iconset>
286    </property>
287   </widget>
288   <widget class="QToolButton" name="bPolygon2">
289    <property name="geometry">
290     <rect>
291      <x>28</x>
292      <y>188</y>
293      <width>28</width>
294      <height>28</height>
295     </rect>
296    </property>
297    <property name="toolTip">
298     <string>Polygons with two Corners</string>
299    </property>
300    <property name="text">
301     <string/>
302    </property>
303    <property name="icon">
304     <iconset resource="res/architektonas.qrc">
305      <normaloff>:res/qg_linespolygon2.xpm</normaloff>:res/qg_linespolygon2.xpm</iconset>
306    </property>
307   </widget>
308   <widget class="QToolButton" name="bFree">
309    <property name="geometry">
310     <rect>
311      <x>0</x>
312      <y>216</y>
313      <width>28</width>
314      <height>28</height>
315     </rect>
316    </property>
317    <property name="toolTip">
318     <string>Freehand lines</string>
319    </property>
320    <property name="text">
321     <string/>
322    </property>
323    <property name="icon">
324     <iconset resource="res/architektonas.qrc">
325      <normaloff>:res/qg_linesfree.xpm</normaloff>:res/qg_linesfree.xpm</iconset>
326    </property>
327   </widget>
328   <widget class="QToolButton" name="bParallelThrough">
329    <property name="geometry">
330     <rect>
331      <x>28</x>
332      <y>104</y>
333      <width>28</width>
334      <height>28</height>
335     </rect>
336    </property>
337    <property name="toolTip">
338     <string>Parallels through point</string>
339    </property>
340    <property name="text">
341     <string/>
342    </property>
343    <property name="icon">
344     <iconset resource="res/architektonas.qrc">
345      <normaloff>:res/qg_linesparathrough.xpm</normaloff>:res/qg_linesparathrough.xpm</iconset>
346    </property>
347   </widget>
348  </widget>
349  <layoutdefault spacing="6" margin="11"/>
350  <resources/>
351  <connections>
352   <connection>
353    <sender>bNormal</sender>
354    <signal>clicked()</signal>
355    <receiver>CadToolBarLines</receiver>
356    <slot>drawLine()</slot>
357    <hints>
358     <hint type="sourcelabel">
359      <x>20</x>
360      <y>20</y>
361     </hint>
362     <hint type="destinationlabel">
363      <x>20</x>
364      <y>20</y>
365     </hint>
366    </hints>
367   </connection>
368   <connection>
369    <sender>bFree</sender>
370    <signal>clicked()</signal>
371    <receiver>CadToolBarLines</receiver>
372    <slot>drawLineFree()</slot>
373    <hints>
374     <hint type="sourcelabel">
375      <x>20</x>
376      <y>20</y>
377     </hint>
378     <hint type="destinationlabel">
379      <x>20</x>
380      <y>20</y>
381     </hint>
382    </hints>
383   </connection>
384   <connection>
385    <sender>bParallel</sender>
386    <signal>clicked()</signal>
387    <receiver>CadToolBarLines</receiver>
388    <slot>drawLineParallel()</slot>
389    <hints>
390     <hint type="sourcelabel">
391      <x>20</x>
392      <y>20</y>
393     </hint>
394     <hint type="destinationlabel">
395      <x>20</x>
396      <y>20</y>
397     </hint>
398    </hints>
399   </connection>
400   <connection>
401    <sender>bAngle</sender>
402    <signal>clicked()</signal>
403    <receiver>CadToolBarLines</receiver>
404    <slot>drawLineAngle()</slot>
405    <hints>
406     <hint type="sourcelabel">
407      <x>20</x>
408      <y>20</y>
409     </hint>
410     <hint type="destinationlabel">
411      <x>20</x>
412      <y>20</y>
413     </hint>
414    </hints>
415   </connection>
416   <connection>
417    <sender>bHorizontal</sender>
418    <signal>clicked()</signal>
419    <receiver>CadToolBarLines</receiver>
420    <slot>drawLineHorizontal()</slot>
421    <hints>
422     <hint type="sourcelabel">
423      <x>20</x>
424      <y>20</y>
425     </hint>
426     <hint type="destinationlabel">
427      <x>20</x>
428      <y>20</y>
429     </hint>
430    </hints>
431   </connection>
432   <connection>
433    <sender>bBisector</sender>
434    <signal>clicked()</signal>
435    <receiver>CadToolBarLines</receiver>
436    <slot>drawLineBisector()</slot>
437    <hints>
438     <hint type="sourcelabel">
439      <x>20</x>
440      <y>20</y>
441     </hint>
442     <hint type="destinationlabel">
443      <x>20</x>
444      <y>20</y>
445     </hint>
446    </hints>
447   </connection>
448   <connection>
449    <sender>bTangent1</sender>
450    <signal>clicked()</signal>
451    <receiver>CadToolBarLines</receiver>
452    <slot>drawLineTangent1()</slot>
453    <hints>
454     <hint type="sourcelabel">
455      <x>20</x>
456      <y>20</y>
457     </hint>
458     <hint type="destinationlabel">
459      <x>20</x>
460      <y>20</y>
461     </hint>
462    </hints>
463   </connection>
464   <connection>
465    <sender>bTangent2</sender>
466    <signal>clicked()</signal>
467    <receiver>CadToolBarLines</receiver>
468    <slot>drawLineTangent2()</slot>
469    <hints>
470     <hint type="sourcelabel">
471      <x>20</x>
472      <y>20</y>
473     </hint>
474     <hint type="destinationlabel">
475      <x>20</x>
476      <y>20</y>
477     </hint>
478    </hints>
479   </connection>
480   <connection>
481    <sender>bRectangle</sender>
482    <signal>clicked()</signal>
483    <receiver>CadToolBarLines</receiver>
484    <slot>drawLineRectangle()</slot>
485    <hints>
486     <hint type="sourcelabel">
487      <x>20</x>
488      <y>20</y>
489     </hint>
490     <hint type="destinationlabel">
491      <x>20</x>
492      <y>20</y>
493     </hint>
494    </hints>
495   </connection>
496   <connection>
497    <sender>bBack</sender>
498    <signal>clicked()</signal>
499    <receiver>CadToolBarLines</receiver>
500    <slot>back()</slot>
501    <hints>
502     <hint type="sourcelabel">
503      <x>20</x>
504      <y>20</y>
505     </hint>
506     <hint type="destinationlabel">
507      <x>20</x>
508      <y>20</y>
509     </hint>
510    </hints>
511   </connection>
512   <connection>
513    <sender>bRelAngle</sender>
514    <signal>clicked()</signal>
515    <receiver>CadToolBarLines</receiver>
516    <slot>drawLineRelAngle()</slot>
517    <hints>
518     <hint type="sourcelabel">
519      <x>20</x>
520      <y>20</y>
521     </hint>
522     <hint type="destinationlabel">
523      <x>20</x>
524      <y>20</y>
525     </hint>
526    </hints>
527   </connection>
528   <connection>
529    <sender>bVertical</sender>
530    <signal>clicked()</signal>
531    <receiver>CadToolBarLines</receiver>
532    <slot>drawLineVertical()</slot>
533    <hints>
534     <hint type="sourcelabel">
535      <x>20</x>
536      <y>20</y>
537     </hint>
538     <hint type="destinationlabel">
539      <x>20</x>
540      <y>20</y>
541     </hint>
542    </hints>
543   </connection>
544   <connection>
545    <sender>bOrthogonal</sender>
546    <signal>clicked()</signal>
547    <receiver>CadToolBarLines</receiver>
548    <slot>drawLineOrthogonal()</slot>
549    <hints>
550     <hint type="sourcelabel">
551      <x>20</x>
552      <y>20</y>
553     </hint>
554     <hint type="destinationlabel">
555      <x>20</x>
556      <y>20</y>
557     </hint>
558    </hints>
559   </connection>
560   <connection>
561    <sender>bPolygon</sender>
562    <signal>clicked()</signal>
563    <receiver>CadToolBarLines</receiver>
564    <slot>drawLinePolygon()</slot>
565    <hints>
566     <hint type="sourcelabel">
567      <x>20</x>
568      <y>20</y>
569     </hint>
570     <hint type="destinationlabel">
571      <x>20</x>
572      <y>20</y>
573     </hint>
574    </hints>
575   </connection>
576   <connection>
577    <sender>bPolygon2</sender>
578    <signal>clicked()</signal>
579    <receiver>CadToolBarLines</receiver>
580    <slot>drawLinePolygon2()</slot>
581    <hints>
582     <hint type="sourcelabel">
583      <x>20</x>
584      <y>20</y>
585     </hint>
586     <hint type="destinationlabel">
587      <x>20</x>
588      <y>20</y>
589     </hint>
590    </hints>
591   </connection>
592   <connection>
593    <sender>bParallelThrough</sender>
594    <signal>clicked()</signal>
595    <receiver>CadToolBarLines</receiver>
596    <slot>drawLineParallelThrough()</slot>
597    <hints>
598     <hint type="sourcelabel">
599      <x>20</x>
600      <y>20</y>
601     </hint>
602     <hint type="destinationlabel">
603      <x>20</x>
604      <y>20</y>
605     </hint>
606    </hints>
607   </connection>
608  </connections>
609 </ui>