-
Notifications
You must be signed in to change notification settings - Fork 0
/
annotationinfodialog.ui
359 lines (359 loc) · 13.4 KB
/
annotationinfodialog.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" stdsetdef="1">
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>AnnotationInfoDialog</class>
<widget class="QDialog" name="AnnotationInfoDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>308</width>
<height>229</height>
</rect>
</property>
<property name="windowTitle">
<string>Annotation Information</string>
</property>
<property name="windowIcon">
<pixmap>lignumCAD.png</pixmap>
</property>
<property name="sizeGripEnabled">
<bool>true</bool>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="nameTextLabel">
<property name="text">
<string>&Name:</string>
</property>
<property name="buddy" stdset="0">
<cstring>nameEdit</cstring>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="colorButton">
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="toolTip" stdset="0">
<string>Choose the text color.</string>
</property>
<property name="whatsThis" stdset="0">
<string><p><b>Text Color</b></p>
<p>Set the current color of the annotation text. This works two ways: if some portion of the text is highlighted, it will be rendered in the given color. Otherwise, all text typed after the present position of the cursor will be drawn in the given color.</p></string>
</property>
</widget>
</item>
<item row="1" column="3">
<spacer name="Spacer3">
<property name="sizeHint">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item row="2" column="0" rowspan="1" colspan="4">
<widget class="QTextEdit" name="annotationTextEdit">
<property name="acceptRichText">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0" rowspan="1" colspan="4">
<layout class="QHBoxLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="buttonHelp">
<property name="text">
<string>&Help</string>
</property>
<property name="shortcut">
<number>276824136</number>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="Horizontal Spacing2">
<property name="sizeHint">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonOk">
<property name="text">
<string>&OK</string>
</property>
<property name="shortcut">
<number>276824143</number>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonCancel">
<property name="text">
<string>&Cancel</string>
</property>
<property name="shortcut">
<number>276824131</number>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1" rowspan="1" colspan="3">
<widget class="QLineEdit" name="nameEdit">
<property name="toolTip" stdset="0">
<string>Choose a name for the annotation.</string>
</property>
<property name="whatsThis" stdset="0">
<string><p><b>Name</b></p>
<p>Edit the name of the annotation. The annotation's name will be updated when the dialog is accepted. If there is already a annotation on this page which has the same name, the name change will be rejected.</p></string>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="QToolButton" name="boldButton">
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>B</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
<property name="toolTip" stdset="0">
<string>Set the current selection to bold.</string>
</property>
<property name="whatsThis" stdset="0">
<string><p><b>Bold</b></p>
<p>Set (or unset) the current style of the annotation text to bold. This works two ways: if some portion of the text is highlighted, it will be rendered in bold face (or it will have the bold property removed). Otherwise, all text typed after the present position of the cursor will be bold (or not).</p></string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="italicButton">
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>I</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
<property name="toolTip" stdset="0">
<string>Set the current selection to italic.</string>
</property>
<property name="whatsThis" stdset="0">
<string><p><b>Italic</b></p>
<p>Set (or unset) the current style of the annotation text to italic. This works two ways: if some portion of the text is highlighted, it will be rendered in italic face (or it will have the italic property removed). Otherwise, all text typed after the present position of the cursor will be italic (or not).</p></string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="underlineButton">
<property name="font">
<font>
<underline>true</underline>
</font>
</property>
<property name="text">
<string>U</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
<property name="toolTip" stdset="0">
<string>Set the current selection to underlined.</string>
</property>
<property name="whatsThis" stdset="0">
<string><p><b>Underline</b></p>
<p>Set (or unset) the current style of the annotation text to underline. This works two ways: if some portion of the text is highlighted, it will be rendered with underlining (or it will have the underlining property removed). Otherwise, all text typed after the present position of the cursor will be underlined (or not).</p></string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="sizesComboBox">
<property name="toolTip" stdset="0">
<string>Choose the size of the text.</string>
</property>
<property name="whatsThis" stdset="0">
<string><p><b>Character Size</b></p>
<p>Set the current point size of the annotation text. (A <i>point</i> is 1/72". Note that these are effectively <i>paper</i> units; that is, text will be rendered at the same size regardless of the scale of the view.) This works two ways: if some portion of the text is highlighted, it will be rendered at the given point size. Otherwise, all text typed after the present position of the cursor will be drawn at that point size.</p></string>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>nameEdit</tabstop>
<tabstop>annotationTextEdit</tabstop>
<tabstop>sizesComboBox</tabstop>
<tabstop>colorButton</tabstop>
<tabstop>buttonHelp</tabstop>
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
</tabstops>
<connections>
<connection>
<sender>buttonOk</sender>
<signal>clicked()</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>accept()</slot>
</connection>
<connection>
<sender>buttonCancel</sender>
<signal>clicked()</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>reject()</slot>
</connection>
<connection>
<sender>boldButton</sender>
<signal>toggled(bool)</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>boldButton_toggled(bool)</slot>
</connection>
<connection>
<sender>italicButton</sender>
<signal>toggled(bool)</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>italicButton_toggled(bool)</slot>
</connection>
<connection>
<sender>underlineButton</sender>
<signal>toggled(bool)</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>underlineButton_toggled(bool)</slot>
</connection>
<connection>
<sender>colorButton</sender>
<signal>clicked()</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>colorButton_clicked()</slot>
</connection>
<connection>
<sender>annotationTextEdit</sender>
<signal>currentColorChanged(QColor)</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>annotationTextEdit_currentColorChanged(QColor)</slot>
</connection>
<connection>
<sender>annotationTextEdit</sender>
<signal>currentFontChanged(QFont)</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>annotationTextEdit_currentFontChanged(QFont)</slot>
</connection>
<connection>
<sender>sizesComboBox</sender>
<signal>activated(QString)</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>sizesComboBox_activated(QString)</slot>
</connection>
<connection>
<sender>buttonHelp</sender>
<signal>clicked()</signal>
<receiver>AnnotationInfoDialog</receiver>
<slot>buttonHelp_clicked()</slot>
</connection>
</connections>
</ui>