forked from CoppeliaRobotics/simUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
widgets.xml
1096 lines (1096 loc) · 48 KB
/
widgets.xml
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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="widgets.xsl"?>
<elements>
<element>
<name>ui</name>
<description>Root element (related to Custom UI window).</description>
<see-also>
<element>stretch</element>
<element>br</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>modal</name>
<type>bool</type>
<default>false</default>
<description>If true, the dialog window will be modal.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>title</name>
<type>string</type>
<default>Custom UI</default>
<description>Title of the Custom UI window.</description>
</attribute>
<attribute>
<name>resizable</name>
<type>bool</type>
<default>false</default>
<description>Make window resizable if true.</description>
</attribute>
<attribute>
<name>closeable</name>
<type>bool</type>
<default>false</default>
<description>Make window closeable if true.</description>
</attribute>
<attribute>
<name>layout</name>
<type><one-of><value>vbox</value><value>hbox</value><value>form</value><value>grid</value><value>none</value></one-of></type>
<default>vbox</default>
<description>Layout of the widget. When layout is 'none', specify widget placement using the geometry attribute, like: geometry="x,y,width,height".</description>
</attribute>
<attribute>
<name>placement</name>
<type><one-of><value>center</value><value>relative</value><value>absolute</value></one-of></type>
<default>center</default>
<description>Placement of the window widget. It will affect how the position attribute is interpreted.</description>
</attribute>
<attribute>
<name>position</name>
<type>int[2]</type>
<default>50,50</default>
<description>Position of the window widget.</description>
</attribute>
<attribute>
<name>size</name>
<type>int[2]</type>
<default>-1,-1</default>
<description>Initial size of the window widget. -1,-1 will use the default behavior (automatically compute the optimal size).</description>
</attribute>
<attribute>
<name>activate</name>
<type>bool</type>
<default>true</default>
<description>If false, the window is shown without activating it (Qt flag WA_ShowWithoutActivating).</description>
</attribute>
<attribute>
<name>on-close</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the close event. Arguments of the function are: (uiHandle). When a callback is specified, the window will not close upon pressing the close button. It may be hidden or destroyed explicitly in the callback.</description>
</attribute>
</attributes>
</element>
<element>
<name>button</name>
<description>Push button widget.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>text</name>
<type>string</type>
<default>???</default>
<description>Text on the button.</description>
</attribute>
<attribute>
<name>default</name>
<type>bool</type>
<default>false</default>
<description>If true, this is the default button of the dialog window.</description>
</attribute>
<attribute>
<name>auto-repeat</name>
<type>bool</type>
<default>false</default>
<description>If auto-repeat is enabled, then the click() signal is emitted at regular intervals when the button is down.</description>
</attribute>
<attribute>
<name>auto-repeat-delay</name>
<type>int</type>
<default>0</default>
<description>Defines the initial delay in milliseconds before auto-repetition kicks in.</description>
</attribute>
<attribute>
<name>auto-repeat-interval</name>
<type>int</type>
<default>200</default>
<description>Defines the length of the auto-repetition interval in milliseconds.</description>
</attribute>
<attribute>
<name>checkable</name>
<type>bool</type>
<default>false</default>
<description>If true, the button is checkable.</description>
</attribute>
<attribute>
<name>checked</name>
<type>bool</type>
<default>false</default>
<description>If true, the button is initially checked.</description>
</attribute>
<attribute>
<name>auto-exclusive</name>
<type>bool</type>
<default>false</default>
<description>If true, checkable buttons that belong to the same parent widget behave as if they were part of the same exclusive button group. In an exclusive button group, only one button can be checked at any time; checking another button automatically unchecks the previously checked one.</description>
</attribute>
<attribute>
<name>on-click</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the click event. Arguments of the function are: (uiHandle, id).</description>
</attribute>
<attribute>
<name>icon</name>
<type>string</type>
<default />
<description>Name of a icon to use. The only icon name scheme supported is default://SP_xxx where SP_xxx is a constant from http://doc.qt.io/qt-5/qstyle.html#StandardPixmap-enum</description>
</attribute>
</attributes>
</element>
<element>
<name>checkbox</name>
<description>Checkbox widget.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>text</name>
<type>string</type>
<default>???</default>
<description>Text on the checkbox label.</description>
</attribute>
<attribute>
<name>checked</name>
<type>bool</type>
<default>false</default>
<description>If true, the checkbox is initially checked.</description>
</attribute>
<attribute>
<name>checkable</name>
<type>bool</type>
<default>true</default>
<description>If true, the button is checkable.</description>
</attribute>
<attribute>
<name>auto-exclusive</name>
<type>bool</type>
<default>false</default>
<description>If true, checkable buttons that belong to the same parent widget behave as if they were part of the same exclusive button group. In an exclusive button group, only one button can be checked at any time; checking another button automatically unchecks the previously checked one.</description>
</attribute>
<attribute>
<name>on-change</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the change event. Arguments of the function are: (uiHandle, id, newValue).</description>
</attribute>
</attributes>
</element>
<element>
<name>combobox</name>
<description>A combobox widget. It allows to select one from many items from a dropdown menu. Items can be added as child XML nodes, e.g. <item>Item text</item>, or dynamically via the Lua API.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>checkable</name>
<type>bool</type>
<default>true</default>
<description>If true, the button is checkable.</description>
</attribute>
<attribute>
<name>auto-exclusive</name>
<type>bool</type>
<default>true</default>
<description>If true, checkable buttons that belong to the same parent widget behave as if they were part of the same exclusive button group. In an exclusive button group, only one button can be checked at any time; checking another button automatically unchecks the previously checked one.</description>
</attribute>
<attribute>
<name>on-change</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the change event. Arguments of the function are: (uiHandle, id, newValue).</description>
</attribute>
</attributes>
</element>
<element>
<name>edit</name>
<description>A widget for text input.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>value</name>
<type>string</type>
<default>???</default>
<description>Initial text.</description>
</attribute>
<attribute>
<name>password</name>
<type>bool</type>
<default>false</default>
<description>If true, display platform-dependent password mask characters instead of the characters actually entered.</description>
</attribute>
<attribute>
<name>on-change</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the change event. Arguments of the function are: (uiHandle, id, newValue).</description>
</attribute>
<attribute>
<name>on-editing-finished</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the editing finished event. Arguments of the function are: (uiHandle, id, newValue).</description>
</attribute>
</attributes>
</element>
<element>
<name>group</name>
<description>A widget for grouping other widgets. Other widgets are specified as children of the <group> node. It has its own layout, so it can be used to use a different layout only for a group of widgets. It is also required to group a set of radiobutton widgets.</description>
<see-also>
<element>stretch</element>
<element>br</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>flat</name>
<type>bool</type>
<default>false</default>
<description>If true, the group will have no visual appearance (text will be ignored). Otherwise, it will have some visual appearance, depending on the platform.</description>
</attribute>
<attribute>
<name>layout</name>
<type><one-of><value>vbox</value><value>hbox</value><value>form</value><value>grid</value><value>none</value></one-of></type>
<default>vbox</default>
<description>Layout of the widget. When layout is 'none', specify widget placement using the geometry attribute, like: geometry="x,y,width,height".</description>
</attribute>
</attributes>
</element>
<element>
<name>hslider</name>
<description>A horizontal slider widget.</description>
<see-also>
<element>vslider</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>minimum</name>
<type>int</type>
<default>0</default>
<description>Minimum value.</description>
</attribute>
<attribute>
<name>maximum</name>
<type>int</type>
<default>100</default>
<description>Maximum value.</description>
</attribute>
<attribute>
<name>tick-interval</name>
<type>int</type>
<default>0</default>
<description>Tick interval.</description>
</attribute>
<attribute>
<name>tick-position</name>
<type><one-of><value>none</value><value>both-sides</value><value>above</value><value>below</value><value>left</value><value>right</value></one-of></type>
<default>none</default>
<description>In which direction to draw ticks.</description>
</attribute>
<attribute>
<name>inverted</name>
<type>bool</type>
<default>false</default>
<description>If true, minimum and maximum will be swapped.</description>
</attribute>
<attribute>
<name>on-change</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the change event. Arguments of the function are: (uiHandle, id, newValue).</description>
</attribute>
</attributes>
</element>
<element>
<name>image</name>
<description>A image display widget.</description>
<see-also>
<element>label</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>file</name>
<type>string</type>
<default></default>
<description>Display the image from the specified file.</description>
</attribute>
<attribute>
<name>width</name>
<type>int</type>
<default>-1</default>
<description>Desired width for the initial image.</description>
</attribute>
<attribute>
<name>height</name>
<type>int</type>
<default>-1</default>
<description>Desired height for the initial image.</description>
</attribute>
<attribute>
<name>on-mouse-down</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the mouseDown event. Arguments of the function are: (uiHandle, id, type, flags, x, y).</description>
</attribute>
<attribute>
<name>on-mouse-up</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the mouseUp event. Arguments of the function are: (uiHandle, id, type, flags, x, y).</description>
</attribute>
<attribute>
<name>on-mouse-move</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the mouseMove event. Arguments of the function are: (uiHandle, id, type, flags, x, y).</description>
</attribute>
</attributes>
</element>
<element>
<name>label</name>
<description>A static text widget.</description>
<see-also>
<element>edit</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>text</name>
<type>string</type>
<default>???</default>
<description>Text on the label.</description>
</attribute>
<attribute>
<name>wordwrap</name>
<type>bool</type>
<default>false</default>
<description>If true, long text will wrap in multiple lines, otherwise will be cut.</description>
</attribute>
<attribute>
<name>on-link-activated</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the linkActivated event. Arguments of the function are: (uiHandle, id, linkHref).</description>
</attribute>
</attributes>
</element>
<element>
<name>plot</name>
<description>A widget for displaying time series charts.</description>
<attributes>
<attribute>
<name>background-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the background, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the color of the window's background.</description>
</attribute>
<attribute>
<name>foreground-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the foreground elements (i.e.: axes, axes labels, tick labels, tick marks and grid lines), as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color. This value can be overridden by any of the specific attributes for the individual elements.</description>
</attribute>
<attribute>
<name>axis-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the axes, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color. Can be overridden by axis-x-color and axis-y-color.</description>
</attribute>
<attribute>
<name>label-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the axis labels, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color. Can be overridden by label-x-color and label-y-color.</description>
</attribute>
<attribute>
<name>grid-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the grid, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color. Can be overridden by grid-x-color and grid-y-color.</description>
</attribute>
<attribute>
<name>tick-label-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the tick labels, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>axis-x-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the X axis, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>axis-y-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the Y axis, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>label-x-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the X label, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>label-y-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the Y label, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>grid-x-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the X grid, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>grid-y-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the Y grid, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>tick-label-x-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the X tick labels, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>tick-label-y-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the Y tick labels, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the default color.</description>
</attribute>
<attribute>
<name>square</name>
<type>bool</type>
<default>false</default>
<description></description>
</attribute>
<attribute>
<name>max-buffer-size</name>
<type>int</type>
<default>1000</default>
<description>Maximum size of the buffer(s).</description>
</attribute>
<attribute>
<name>cyclic-buffer</name>
<type>bool</type>
<default>false</default>
<description>If true, buffers will be cyclic when full.</description>
</attribute>
<attribute>
<name>ticks</name>
<type>bool</type>
<default>true</default>
<description>If true, x and y tickmarks will be visible.</description>
</attribute>
<attribute>
<name>x-ticks</name>
<type>bool</type>
<default>true</default>
<description>If true, x tickmarks will be visible.</description>
</attribute>
<attribute>
<name>y-ticks</name>
<type>bool</type>
<default>true</default>
<description>If true, y tickmarks will be visible.</description>
</attribute>
<attribute>
<name>tick-labels</name>
<type>bool</type>
<default>true</default>
<description>If true, x and y tick labels will be visible.</description>
</attribute>
<attribute>
<name>x-tick-labels</name>
<type>bool</type>
<default>true</default>
<description>If true, x tick labels will be visible.</description>
</attribute>
<attribute>
<name>y-tick-labels</name>
<type>bool</type>
<default>true</default>
<description>If true, y tick labels will be visible.</description>
</attribute>
<attribute>
<name>on-click</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the click event on a curve data point. Arguments of the function are: (uiHandle, id, curveName, dataIndex, xValue, yValue).</description>
</attribute>
<attribute>
<name>on-legend-click</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the click event on a legend item. Arguments of the function are: (uiHandle, id, curveName).</description>
</attribute>
</attributes>
</element>
<element>
<name>progressbar</name>
<description>A progress indicator widget.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>minimum</name>
<type>int</type>
<default>0</default>
<description>Minimum value of the progress.</description>
</attribute>
<attribute>
<name>maximum</name>
<type>int</type>
<default>100</default>
<description>Maximum value of the progress.</description>
</attribute>
<attribute>
<name>orientation</name>
<type><one-of><value>horizontal</value><value>vertical</value></one-of></type>
<default>horizontal</default>
<description>Orientation.</description>
</attribute>
<attribute>
<name>inverted</name>
<type>bool</type>
<default>true</default>
<description>If true, the progress ends will be inverted.</description>
</attribute>
<attribute>
<name>value</name>
<type>int</type>
<default>0</default>
<description>Initial value.</description>
</attribute>
<attribute>
<name>text-visible</name>
<type>bool</type>
<default>true</default>
<description>Visibility of progress text.</description>
</attribute>
</attributes>
</element>
<element>
<name>radiobutton</name>
<description>A radio button widget.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>text</name>
<type>string</type>
<default>???</default>
<description>Text on the button.</description>
</attribute>
<attribute>
<name>checked</name>
<type>bool</type>
<default>false</default>
<description>If true, this button will be initially checked.</description>
</attribute>
<attribute>
<name>on-click</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the click event. Arguments of the function are: (uiHandle, id).</description>
</attribute>
</attributes>
</element>
<element>
<name>scene3d</name>
<description>A widget for displaying a 3D scene.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>clear-color</name>
<type>int[3]</type>
<default>-1,-1,-1</default>
<description>Color of the background, as three RGB components in the 0...255 range. The special value -1,-1,-1 means to use the color of the window's background.</description>
</attribute>
<attribute>
<name>on-click</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the click event. Arguments of the function are: (uiHandle, id, nodeId).</description>
</attribute>
</attributes>
</element>
<element>
<name>spinbox</name>
<description>A widget for numeric input, with increase/decrease buttons.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>minimum</name>
<type>int or float</type>
<default>0</default>
<description>Minimum value.</description>
</attribute>
<attribute>
<name>maximum</name>
<type>int or float</type>
<default>100</default>
<description>Maximum value.</description>
</attribute>
<attribute>
<name>prefix</name>
<type>string</type>
<default />
<description>String prefix in the displayed value.</description>
</attribute>
<attribute>
<name>suffix</name>
<type>string</type>
<default />
<description>String suffix in the displayed value.</description>
</attribute>
<attribute>
<name>step</name>
<type>int or float</type>
<default>1</default>
<description>Step (increment/decrement) when using the buttons.</description>
</attribute>
<attribute>
<name>float</name>
<type>bool</type>
<default>autodetect</default>
<description>If true, the spinbox will display a floating point value. If false, the spinbox will display integer values. If omitted, this property will be automatically determined by minimum/maximum/step values: if any of those is not a round integer, the spinbox will be float.</description>
</attribute>
<attribute>
<name>on-change</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the change event. Arguments of the function are: (uiHandle, id, newValue).</description>
</attribute>
</attributes>
</element>
<element>
<name>table</name>
<description>A table widget. Can optionally contain a <header> elements and <row> elements. Each <header>/<row> element contains only <item> elements. <item> elements may have an optional "editable" attribute of type bool.</description>
<attributes>
<attribute>
<name>show-horizontal-header</name>
<type>bool</type>
<default>true</default>
<description>If true, column headers will be visible.</description>
</attribute>
<attribute>
<name>show-vertical-header</name>
<type>bool</type>
<default>false</default>
<description>If true, row headers will be visible. The 'label' attribute of the <row> can be used to change the displayed text of the row header. The default row header is the line number.</description>
</attribute>
<attribute>
<name>autosize-horizontal-header</name>
<type>bool</type>
<default>false</default>
<description>If true, column headers will resize to fit contents.</description>
</attribute>
<attribute>
<name>autosize-vertical-header</name>
<type>bool</type>
<default>true</default>
<description>If true, row headers will resize to fit contents.</description>
</attribute>
<attribute>
<name>show-grid</name>
<type>bool</type>
<default>true</default>
<description>If true, grid will be visible.</description>
</attribute>
<attribute>
<name>selection-mode</name>
<type><one-of><value>items</value><value>rows</value><value>columns</value></one-of></type>
<default>items</default>
<description>Controls the selection behavior, i.e. if the user can select individual items, entire rows, or entire columns.</description>
</attribute>
<attribute>
<name>editable</name>
<type>bool</type>
<default>true</default>
<description>If true, cells will be editable.</description>
</attribute>
<attribute>
<name>sortable</name>
<type>bool</type>
<default>false</default>
<description>If true, it will be possible to sort data by columns by clicking on column headers.</description>
</attribute>
<attribute>
<name>on-cell-activate</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the cell activate event. Arguments of the function are: (uiHandle, id, row, column, cellValue).</description>
</attribute>
<attribute>
<name>on-selection-change</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the selection change event. Arguments of the function are: (uiHandle, id, row, column). If selection mode is 'rows', column will be -1 and vice versa.</description>
</attribute>
<attribute>
<name>on-key-press</name>
<type>string</type>
<default />
<description>Name of a Lua function to handle the key press event. Arguments of the function are: (uiHandle, id, key, text).</description>
</attribute>
</attributes>
</element>
<element>
<name>tabs</name>
<description>A tabs widget. Must contain only <tab> child elements.</description>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
</attributes>
<see-also>
<element>tab</element>
</see-also>
</element>
<element>
<name>tab</name>
<description>A tab for the tabs widget. Can only be contained in a <tabs> element.
Can contain widgets, just like <ui> and <group>, and has its own layout.</description>
<see-also>
<element>stretch</element>
<element>br</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>title</name>
<type>string</type>
<default>???</default>
<description>Title of the tab.</description>
</attribute>
<attribute>
<name>layout</name>
<type><one-of><value>vbox</value><value>hbox</value><value>form</value><value>grid</value><value>none</value></one-of></type>
<default>vbox</default>
<description>Layout of the widget. When layout is 'none', specify widget placement using the geometry attribute, like: geometry="x,y,width,height".</description>
</attribute>
</attributes>
</element>
<element>
<name>text-browser</name>
<description>A text browser widget.</description>
<see-also>
<element>edit</element>
</see-also>
<attributes>
<attribute>
<name>enabled</name>
<type>bool</type>
<default>true</default>
<description>Enable status of widget.</description>
</attribute>
<attribute>
<name>style</name>
<type>string</type>
<default />
<description>Qt stylesheet.</description>
</attribute>
<attribute>
<name>text</name>
<type>string</type>
<default></default>
<description>Initial text content.</description>
</attribute>
<attribute>
<name>html</name>
<type>bool</type>
<default>true</default>
<description>if true, text will be treated as HTML</description>
</attribute>
<attribute>
<name>read-only</name>
<type>bool</type>
<default>true</default>
<description>if true, text will be read-only</description>
</attribute>
<attribute>
<name>on-change</name>
<type>string</type>
<default></default>
<description>Name of a Lua function to handle the change event. Arguments of the function are: (uiHandle, id, newText).</description>
</attribute>
<attribute>
<name>on-link-activated</name>
<type>string</type>
<default></default>
<description>Name of a Lua function to handle the linkActivated event. Arguments of the function are: (uiHandle, id, linkHref).</description>
</attribute>
</attributes>
</element>
<element>
<name>tree</name>
<description>A tree widget. Must contain one <header> element and many <row> elements. Each <header>/<row> element contains only <item> elements. <row> elements can have 'id' and 'parent-id' attributes (positive integers) to set relationships between items, and a 'expanded' attribute (bool) to initially expand the item.</description>
<attributes>
<attribute>
<name>show-header</name>
<type>bool</type>
<default>true</default>
<description>If true, column headers will be visible.</description>