1
<?xml version="1.0" encoding="UTF-8"?>
4
<widget class="QDialog" name="Dialog">
5
<property name="geometry">
13
<property name="windowTitle">
14
<string>Annotation Styles Editor</string>
16
<layout class="QVBoxLayout" name="verticalLayout">
18
<widget class="QGroupBox" name="groupBox">
19
<property name="title">
20
<string>Style name</string>
22
<layout class="QHBoxLayout" name="horizontalLayout">
24
<widget class="QComboBox" name="comboBoxStyles">
25
<property name="sizePolicy">
26
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
27
<horstretch>0</horstretch>
28
<verstretch>0</verstretch>
31
<property name="minimumSize">
37
<property name="toolTip">
38
<string>The name of your style. Existing style names can be edited.</string>
40
<property name="editable">
44
<property name="text">
49
<property name="text">
50
<string>Add new...</string>
56
<widget class="QPushButton" name="pushButtonRename">
57
<property name="enabled">
60
<property name="sizePolicy">
61
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
62
<horstretch>0</horstretch>
63
<verstretch>0</verstretch>
66
<property name="minimumSize">
72
<property name="maximumSize">
75
<height>16777215</height>
78
<property name="toolTip">
79
<string>Renames the selected style</string>
81
<property name="text">
82
<string>Rename</string>
87
<widget class="QPushButton" name="pushButtonDelete">
88
<property name="enabled">
91
<property name="sizePolicy">
92
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
93
<horstretch>0</horstretch>
94
<verstretch>0</verstretch>
97
<property name="minimumSize">
103
<property name="maximumSize">
106
<height>16777215</height>
109
<property name="toolTip">
110
<string>Deletes the selected style</string>
112
<property name="text">
113
<string>Delete</string>
118
<widget class="QPushButton" name="pushButtonImport">
119
<property name="toolTip">
120
<string>Import styles from json file</string>
122
<property name="text">
128
<widget class="QPushButton" name="pushButtonExport">
129
<property name="toolTip">
130
<string>Export styles to json file</string>
132
<property name="text">
141
<widget class="QScrollArea" name="scrollArea">
142
<property name="frameShadow">
143
<enum>QFrame::Plain</enum>
145
<property name="verticalScrollBarPolicy">
146
<enum>Qt::ScrollBarAsNeeded</enum>
148
<property name="widgetResizable">
151
<widget class="QWidget" name="scrollAreaWidgetContents">
152
<property name="geometry">
160
<layout class="QVBoxLayout" name="verticalLayout_2">
162
<widget class="QGroupBox" name="groupBox_2">
163
<property name="title">
164
<string>Text</string>
166
<layout class="QGridLayout" name="gridLayout">
167
<item row="0" column="0">
168
<widget class="QLabel" name="label">
169
<property name="toolTip">
170
<string>The font to use for texts and dimensions</string>
172
<property name="text">
173
<string>Font name</string>
177
<item row="0" column="1">
178
<widget class="QFontComboBox" name="FontName">
179
<property name="sizePolicy">
180
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
181
<horstretch>0</horstretch>
182
<verstretch>0</verstretch>
185
<property name="minimumSize">
191
<property name="toolTip">
192
<string>The font to use for texts and dimensions</string>
196
<item row="1" column="0">
197
<widget class="QLabel" name="label_2">
198
<property name="toolTip">
199
<string>The font size in system units</string>
201
<property name="text">
202
<string>Font size</string>
206
<item row="1" column="1">
207
<widget class="Gui::InputField" name="FontSize">
208
<property name="toolTip">
209
<string>The font size in system units</string>
211
<property name="unit" stdset="0">
212
<string notr="true"/>
216
<item row="2" column="0">
217
<widget class="QLabel" name="label_3">
218
<property name="toolTip">
219
<string>The line spacing for multi-line texts and labels (relative to the font size)</string>
221
<property name="text">
222
<string>Line spacing</string>
226
<item row="2" column="1">
227
<widget class="QDoubleSpinBox" name="LineSpacing">
228
<property name="toolTip">
229
<string>The line spacing for multi-line texts and labels (relative to the font size)</string>
233
<item row="3" column="0">
234
<widget class="QLabel" name="label_4">
235
<property name="toolTip">
236
<string>The color of texts, dimension texts and label texts</string>
238
<property name="text">
239
<string>Text color</string>
243
<item row="3" column="1">
244
<widget class="Gui::ColorButton" name="TextColor">
245
<property name="toolTip">
246
<string>The color of texts, dimension texts and label texts</string>
254
<widget class="QGroupBox" name="groupBox_3">
255
<property name="title">
256
<string>Lines and arrows</string>
258
<layout class="QGridLayout" name="gridLayout_2">
259
<item row="0" column="0">
260
<widget class="QLabel" name="label_5">
261
<property name="toolTip">
262
<string>If it is checked it will display the dimension line</string>
264
<property name="text">
265
<string>Show line</string>
269
<item row="0" column="1">
270
<widget class="QCheckBox" name="ShowLine">
271
<property name="toolTip">
272
<string>If it is checked it will display the dimension line</string>
274
<property name="layoutDirection">
275
<enum>Qt::LeftToRight</enum>
277
<property name="text">
280
<property name="checked">
285
<item row="2" column="0">
286
<widget class="QLabel" name="label_6">
287
<property name="toolTip">
288
<string>The width of the lines</string>
290
<property name="text">
291
<string>Line width</string>
295
<item row="2" column="1">
296
<widget class="QSpinBox" name="LineWidth">
297
<property name="toolTip">
298
<string>The width of the lines</string>
300
<property name="suffix">
305
<item row="3" column="0">
306
<widget class="QLabel" name="label_7">
307
<property name="toolTip">
308
<string>The type of arrows or markers to use for dimensions and labels</string>
310
<property name="text">
311
<string>Arrow type</string>
315
<item row="3" column="1">
316
<widget class="QComboBox" name="ArrowType">
317
<property name="sizePolicy">
318
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
319
<horstretch>0</horstretch>
320
<verstretch>0</verstretch>
323
<property name="minimumSize">
329
<property name="toolTip">
330
<string>The type of arrows or markers to use for dimensions and labels</string>
333
<property name="text">
338
<property name="text">
339
<string>Circle</string>
343
<property name="text">
344
<string>Arrow</string>
348
<property name="text">
349
<string>Tick</string>
353
<property name="text">
354
<string>Tick-2</string>
359
<item row="4" column="0">
360
<widget class="QLabel" name="label_8">
361
<property name="toolTip">
362
<string>The size of the arrows or markers in system units</string>
364
<property name="text">
365
<string>Arrow size</string>
369
<item row="4" column="1">
370
<widget class="Gui::InputField" name="ArrowSize">
371
<property name="toolTip">
372
<string>The size of the arrows or markers in system units</string>
374
<property name="unit" stdset="0">
375
<string notr="true"/>
379
<item row="5" column="0">
380
<widget class="QLabel" name="label_9">
381
<property name="toolTip">
382
<string>The color of lines and arrows</string>
384
<property name="text">
385
<string>Line and arrow color</string>
389
<item row="5" column="1">
390
<widget class="Gui::ColorButton" name="LineColor">
391
<property name="toolTip">
392
<string>The color of lines and arrows</string>
400
<widget class="QGroupBox" name="groupBox_4">
401
<property name="title">
402
<string>Units</string>
404
<layout class="QGridLayout" name="gridLayout_3">
405
<item row="0" column="0">
406
<widget class="QLabel" name="label_10">
407
<property name="toolTip">
408
<string>A multiplier factor that affects the size of texts and markers</string>
410
<property name="text">
411
<string>Scale multiplier</string>
415
<item row="0" column="1">
416
<widget class="QDoubleSpinBox" name="ScaleMultiplier">
417
<property name="toolTip">
418
<string>A multiplier factor that affects the size of texts and markers</string>
422
<item row="1" column="0">
423
<widget class="QLabel" name="label_11">
424
<property name="toolTip">
425
<string>If it is checked it will show the unit next to the dimension value</string>
427
<property name="text">
428
<string>Show unit</string>
432
<item row="1" column="1">
433
<widget class="QCheckBox" name="ShowUnit">
434
<property name="toolTip">
435
<string>If it is checked it will show the unit next to the dimension value</string>
437
<property name="layoutDirection">
438
<enum>Qt::LeftToRight</enum>
440
<property name="text">
445
<item row="2" column="0">
446
<widget class="QLabel" name="label_12">
447
<property name="toolTip">
448
<string>Specify a valid length unit like mm, m, in, ft, to force displaying the dimension value in this unit</string>
450
<property name="text">
451
<string>Unit override</string>
455
<item row="2" column="1">
456
<widget class="QLineEdit" name="UnitOverride">
457
<property name="toolTip">
458
<string>Specify a valid length unit like mm, m, in, ft, to force displaying the dimension value in this unit</string>
462
<item row="3" column="0">
463
<widget class="QLabel" name="label_13">
464
<property name="toolTip">
465
<string>The number of decimals to show for dimension values</string>
467
<property name="text">
468
<string>Decimals</string>
472
<item row="3" column="1">
473
<widget class="QSpinBox" name="Decimals">
474
<property name="toolTip">
475
<string>The number of decimals to show for dimension values</string>
483
<widget class="QGroupBox" name="groupBox_5">
484
<property name="title">
485
<string>Dimension details</string>
487
<layout class="QGridLayout" name="gridLayout_4">
488
<item row="0" column="0">
489
<widget class="QLabel" name="label_14">
490
<property name="toolTip">
491
<string>The distance the dimension line is additionally extended</string>
493
<property name="text">
494
<string>Dimension overshoot</string>
498
<item row="0" column="1">
499
<widget class="Gui::InputField" name="DimOvershoot">
500
<property name="toolTip">
501
<string>The distance the dimension line is additionally extended</string>
503
<property name="unit" stdset="0">
504
<string notr="true"/>
508
<item row="1" column="0">
509
<widget class="QLabel" name="label_15">
510
<property name="toolTip">
511
<string>The length of the extension lines</string>
513
<property name="text">
514
<string>Extension lines</string>
518
<item row="1" column="1">
519
<widget class="Gui::InputField" name="ExtLines">
520
<property name="toolTip">
521
<string>The length of the extension lines</string>
523
<property name="unit" stdset="0">
524
<string notr="true"/>
528
<item row="2" column="0">
529
<widget class="QLabel" name="label_16">
530
<property name="toolTip">
531
<string>The distance the extension lines are additionally extended beyond the dimension line</string>
533
<property name="text">
534
<string>Extension overshoot</string>
538
<item row="2" column="1">
539
<widget class="Gui::InputField" name="ExtOvershoot">
540
<property name="toolTip">
541
<string>The distance the extension lines are additionally extended beyond the dimension line</string>
543
<property name="unit" stdset="0">
544
<string notr="true"/>
548
<item row="3" column="0">
549
<widget class="QLabel" name="label_17">
550
<property name="toolTip">
551
<string>The distance between the dimension text and the dimension line</string>
553
<property name="text">
554
<string>Text spacing</string>
558
<item row="3" column="1">
559
<widget class="Gui::InputField" name="TextSpacing">
560
<property name="toolTip">
561
<string>The distance between the dimension text and the dimension line</string>
563
<property name="unit" stdset="0">
564
<string notr="true"/>
576
<widget class="QDialogButtonBox" name="buttonBox">
577
<property name="orientation">
578
<enum>Qt::Horizontal</enum>
580
<property name="standardButtons">
581
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
589
<class>Gui::InputField</class>
590
<extends>QLineEdit</extends>
591
<header>Gui/InputField.h</header>
594
<class>Gui::ColorButton</class>
595
<extends>QPushButton</extends>
596
<header>Gui/Widgets.h</header>
602
<sender>buttonBox</sender>
603
<signal>accepted()</signal>
604
<receiver>Dialog</receiver>
605
<slot>accept()</slot>
607
<hint type="sourcelabel">
611
<hint type="destinationlabel">
618
<sender>buttonBox</sender>
619
<signal>rejected()</signal>
620
<receiver>Dialog</receiver>
621
<slot>reject()</slot>
623
<hint type="sourcelabel">
627
<hint type="destinationlabel">