2012-05-01 08:49:48 +02:00
|
|
|
RVListLabel < Label
|
|
|
|
background-color: alpha
|
|
|
|
text-offset: 2 0
|
|
|
|
focusable: true
|
|
|
|
@onFocusChange: function (self, focused) RuleViolation.onSelectReason(self, focused) end
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
$focus:
|
|
|
|
background-color: #ffffff22
|
|
|
|
color: #ffffff
|
|
|
|
|
|
|
|
RVLabel < Label
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
$first:
|
|
|
|
anchors.top: parent.top
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
$!first:
|
|
|
|
margin-top: 10
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
|
|
|
|
RVTextEdit < TextEdit
|
|
|
|
margin-top: 2
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
$first:
|
|
|
|
anchors.top: parent.top
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
$!first:
|
|
|
|
anchors.top: prev.bottom
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
MainWindow
|
|
|
|
id: ruleViolationWindow
|
|
|
|
size: 400 445
|
2012-07-24 07:30:08 +02:00
|
|
|
text: Rule Violation
|
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVLabel
|
|
|
|
!text: tr('Name:')
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVTextEdit
|
|
|
|
id: nameText
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVLabel
|
|
|
|
!text: tr('Statement:')
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVTextEdit
|
|
|
|
id: statementText
|
|
|
|
enabled: false
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVLabel
|
|
|
|
!text: tr('Reason:')
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
TextList
|
|
|
|
id: reasonList
|
|
|
|
height: 100
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-top: 2
|
|
|
|
focusable: false
|
|
|
|
vertical-scrollbar: reasonListScrollBar
|
|
|
|
|
|
|
|
VerticalScrollBar
|
|
|
|
id: reasonListScrollBar
|
|
|
|
anchors.top: reasonList.top
|
|
|
|
anchors.bottom: reasonList.bottom
|
|
|
|
anchors.right: reasonList.right
|
|
|
|
step: 14
|
2012-07-24 07:30:08 +02:00
|
|
|
pixels-scroll: true
|
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVLabel
|
|
|
|
!text: tr('Action:')
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
TextList
|
|
|
|
id: actionList
|
|
|
|
height: 60
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-top: 2
|
|
|
|
focusable: false
|
|
|
|
vertical-scrollbar: actionListScrollBar
|
|
|
|
|
|
|
|
VerticalScrollBar
|
|
|
|
id: actionListScrollBar
|
|
|
|
anchors.top: actionList.top
|
|
|
|
anchors.bottom: actionList.bottom
|
|
|
|
anchors.right: actionList.right
|
|
|
|
step: 14
|
2012-07-24 07:30:08 +02:00
|
|
|
pixels-scroll: true
|
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
CheckBox
|
|
|
|
id: ipBanCheckBox
|
|
|
|
!text: tr('IP Address Banishment')
|
|
|
|
margin-top: 10
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVLabel
|
|
|
|
!text: tr('Comment:')
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
RVTextEdit
|
|
|
|
id: commentText
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
Button
|
|
|
|
!text: tr('Cancel')
|
|
|
|
width: 64
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
@onClick: RuleViolation.hide()
|
2012-07-24 07:30:08 +02:00
|
|
|
|
2012-05-01 08:49:48 +02:00
|
|
|
Button
|
|
|
|
!text: tr('Ok')
|
|
|
|
width: 64
|
|
|
|
margin-right: 5
|
|
|
|
anchors.right: prev.left
|
2012-07-24 07:30:08 +02:00
|
|
|
anchors.bottom: parent.bottom
|
2012-05-01 08:49:48 +02:00
|
|
|
@onClick: RuleViolation.report()
|