ruleviolation.otui

main 120 lines · 2.2 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1RVListLabel < Label
2 background-color: alpha
3 text-offset: 2 0
4 focusable: true
5
6 $focus:
7 background-color: #ffffff22
8 color: #ffffff
9
10RVLabel < Label
11 anchors.left: parent.left
12 anchors.right: parent.right
13
14 $first:
15 anchors.top: parent.top
16
17 $!first:
18 margin-top: 10
19 anchors.top: prev.bottom
20
21RVTextEdit < TextEdit
22 margin-top: 2
23 anchors.left: parent.left
24 anchors.right: parent.right
25
26 $first:
27 anchors.top: parent.top
28
29 $!first:
30 anchors.top: prev.bottom
31
32MainWindow
33 id: ruleViolationWindow
34 size: 400 445
35 text: Rule Violation
36 @onEscape: hide()
37
38 RVLabel
39 !text: tr('Name') .. ':'
40
41 RVTextEdit
42 id: nameText
43
44 RVLabel
45 !text: tr('Statement') .. ':'
46
47 RVTextEdit
48 id: statementText
49 enabled: false
50
51 RVLabel
52 !text: tr('Reason') .. ':'
53
54 TextList
55 id: reasonList
56 height: 100
57 anchors.top: prev.bottom
58 anchors.left: parent.left
59 anchors.right: parent.right
60 margin-top: 2
61 focusable: false
62 vertical-scrollbar: reasonListScrollBar
63
64 VerticalScrollBar
65 id: reasonListScrollBar
66 anchors.top: reasonList.top
67 anchors.bottom: reasonList.bottom
68 anchors.right: reasonList.right
69 step: 14
70 pixels-scroll: true
71
72 RVLabel
73 !text: tr('Action') .. ':'
74
75 TextList
76 id: actionList
77 height: 60
78 anchors.top: prev.bottom
79 anchors.left: parent.left
80 anchors.right: parent.right
81 margin-top: 2
82 focusable: false
83 vertical-scrollbar: actionListScrollBar
84
85 VerticalScrollBar
86 id: actionListScrollBar
87 anchors.top: actionList.top
88 anchors.bottom: actionList.bottom
89 anchors.right: actionList.right
90 step: 14
91 pixels-scroll: true
92
93 CheckBox
94 id: ipBanCheckBox
95 !text: tr('IP Address Banishment')
96 margin-top: 10
97 anchors.top: prev.bottom
98 anchors.left: parent.left
99 anchors.right: parent.right
100
101 RVLabel
102 !text: tr('Comment') .. ':'
103
104 RVTextEdit
105 id: commentText
106
107 Button
108 !text: tr('Cancel')
109 width: 64
110 anchors.right: parent.right
111 anchors.bottom: parent.bottom
112 @onClick: hide()
113
114 Button
115 !text: tr('Ok')
116 width: 64
117 margin-right: 5
118 anchors.right: prev.left
119 anchors.bottom: parent.bottom
120 @onClick: report()
Top