1ChoiceListLabel < Label
2 font: verdana-11px-monochrome
3 background-color: alpha
4 text-offset: 2 0
5 focusable: true
6
7 $focus:
8 background-color: #00000055
9 color: #ffffff
10
11ChoiceList < TextList
12 id: choiceList
13 vertical-scrollbar: choiceScrollBar
14 anchors.fill: parent
15 anchors.top: prev.bottom
16 anchors.bottom: next.top
17 margin-top: 4
18 margin-bottom: 10
19 focusable: false
20 visible: false
21
22ChoiceScrollBar < VerticalScrollBar
23 id: choiceScrollBar
24 anchors.top: choiceList.top
25 anchors.bottom: choiceList.bottom
26 anchors.right: choiceList.right
27 step: 14
28 pixels-scroll: true
29 visible: false
30
31ModalButton < Button
32 text-auto-resize: true
33 margin-top: 2
34 margin-bottom: 2
35 margin-left: 2
36
37 $pressed:
38 text-offset: 0 0
39
40ModalDialog < MainWindow
41 id: modalDialog
42 size: 280 97
43 &minimumWidth: 300
44 &maximumWidth: 600
45 &minimumChoices: 4
46 &maximumChoices: 10
47
48 Label
49 id: messageLabel
50 anchors.top: parent.top
51 anchors.left: parent.left
52 anchors.right: parent.right
53 text-align: left
54 text-auto-resize: true
55 text-wrap: true
56
57 ChoiceList
58
59 HorizontalSeparator
60 anchors.left: parent.left
61 anchors.right: parent.right
62 anchors.bottom: next.top
63 margin-bottom: 5
64
65 Panel
66 id: buttonsPanel
67 anchors.left: parent.left
68 anchors.right: parent.right
69 anchors.bottom: parent.bottom
70 height: 24
71 layout: horizontalBox
72 align-right: true
73
74 ChoiceScrollBar
75