itemselector.otui

main 73 lines · 1.3 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1ItemSelectorWindow < MainWindow
2 id: itemSelector
3 size: 260 120
4 !text: tr("Select item")
5
6 Item
7 id: item
8 virtual: true
9 size: 32 32
10 margin-top: 10
11 anchors.top: parent.top
12 anchors.left: parent.left
13
14 SpinBox
15 id: itemId
16 anchors.top: parent.top
17 anchors.left: prev.right
18 margin-top: 15
19 margin-left: 5
20 padding-left: 5
21 width: 70
22 minimum: 0
23 maximum: 999999
24 focusable: true
25
26 Label
27 anchors.top: parent.top
28 anchors.left: prev.left
29 anchors.right: prev.right
30 text-align: center
31 !text: tr("Item ID")
32
33 SpinBox
34 id: itemCount
35 anchors.top: parent.top
36 anchors.left: prev.right
37 margin-top: 15
38 margin-left: 5
39 padding-left: 5
40 width: 120
41 minimum: 1
42 maximum: 100
43 focusable: true
44
45 Label
46 anchors.top: parent.top
47 anchors.left: prev.left
48 anchors.right: prev.right
49 text-align: center
50 !text: tr("Count / SubType")
51
52 Button
53 id: clearButton
54 !text: tr('Clear')
55 anchors.bottom: parent.bottom
56 anchors.left: parent.left
57 width: 60
58
59 Button
60 id: okButton
61 !text: tr('Ok')
62 anchors.bottom: parent.bottom
63 anchors.right: next.left
64 margin-right: 10
65 width: 60
66
67 Button
68 id: cancelButton
69 !text: tr('Cancel')
70 anchors.bottom: parent.bottom
71 anchors.right: parent.right
72 width: 60
73
Top