1
<?xml version="1.0" encoding="UTF-8"?>
4
<widget class="QWidget" name="WarnCfg">
5
<property name="geometry">
13
<layout class="QVBoxLayout" name="verticalLayout_5">
15
<widget class="QGroupBox" name="groupBox">
16
<property name="title">
17
<string>Notification Rules</string>
19
<layout class="QVBoxLayout" name="verticalLayout_4">
21
<layout class="QHBoxLayout" name="horizontalLayout_5">
23
<widget class="QLabel" name="trafficTypeLabel">
24
<property name="text">
25
<string>Traffic type:</string>
30
<widget class="QComboBox" name="trafficType">
32
<property name="text">
37
<property name="text">
38
<string>Offpeak</string>
42
<property name="text">
43
<string>Peak and offpeak</string>
51
<layout class="QHBoxLayout" name="horizontalLayout_7">
53
<widget class="QLabel" name="label">
54
<property name="text">
55
<string>Traffic direction:</string>
60
<widget class="QComboBox" name="trafficDirection">
62
<property name="text">
63
<string>Incoming</string>
67
<property name="text">
68
<string>Outgoing</string>
72
<property name="text">
73
<string>Incoming and outgoing</string>
81
<layout class="QHBoxLayout" name="horizontalLayout_4">
83
<layout class="QHBoxLayout" name="horizontalLayout_3">
85
<layout class="QVBoxLayout" name="verticalLayout_2">
87
<widget class="QLabel" name="label_4">
88
<property name="sizePolicy">
89
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
90
<horstretch>0</horstretch>
91
<verstretch>0</verstretch>
94
<property name="text">
95
<string>Notify when traffic exceeds:</string>
100
<widget class="QLabel" name="warnPer">
101
<property name="text">
102
<string>within:</string>
104
<property name="alignment">
105
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
112
<spacer name="horizontalSpacer_12">
113
<property name="orientation">
114
<enum>Qt::Horizontal</enum>
116
<property name="sizeHint" stdset="0">
127
<layout class="QVBoxLayout" name="verticalLayout">
129
<layout class="QHBoxLayout" name="horizontalLayout">
131
<widget class="KDoubleNumInput" name="threshold">
132
<property name="sizePolicy">
133
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
134
<horstretch>0</horstretch>
135
<verstretch>0</verstretch>
138
<property name="whatsThis">
139
<string>When traffic for a month or billing period exceeds this limit, KNemo will emit a notification. The notification will appear once per session.</string>
141
<property name="minimum">
142
<double>0.100000000000000</double>
144
<property name="singleStep">
145
<double>0.100000000000000</double>
147
<property name="specialValueText">
150
<property name="decimals">
156
<widget class="QComboBox" name="trafficUnits">
157
<property name="sizePolicy">
158
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
159
<horstretch>0</horstretch>
160
<verstretch>0</verstretch>
163
<property name="currentIndex">
171
<layout class="QHBoxLayout" name="horizontalLayout_2">
173
<widget class="KIntSpinBox" name="periodCount">
174
<property name="minimum">
177
<property name="maximum">
178
<number>1000</number>
183
<widget class="QComboBox" name="periodUnits">
184
<property name="sizePolicy">
185
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
186
<horstretch>0</horstretch>
187
<verstretch>0</verstretch>
202
<widget class="QGroupBox" name="groupBox_2">
203
<property name="title">
204
<string>Notification Text</string>
206
<layout class="QVBoxLayout" name="verticalLayout_3">
208
<widget class="QCheckBox" name="customTextCheck">
209
<property name="text">
210
<string>Custom notification text</string>
215
<widget class="KTextEdit" name="customTextEdit">
216
<property name="enabled">
222
<widget class="QLabel" name="legend">
223
<property name="enabled">
235
<class>KIntSpinBox</class>
236
<extends>QSpinBox</extends>
237
<header>knuminput.h</header>
240
<class>KDoubleNumInput</class>
241
<extends>QWidget</extends>
242
<header>knuminput.h</header>
245
<class>KTextEdit</class>
246
<extends>QTextEdit</extends>
247
<header>ktextedit.h</header>
251
<tabstop>trafficType</tabstop>
252
<tabstop>trafficDirection</tabstop>
253
<tabstop>threshold</tabstop>
254
<tabstop>trafficUnits</tabstop>
255
<tabstop>periodCount</tabstop>
256
<tabstop>periodUnits</tabstop>
257
<tabstop>customTextCheck</tabstop>
258
<tabstop>customTextEdit</tabstop>
263
<sender>customTextCheck</sender>
264
<signal>toggled(bool)</signal>
265
<receiver>legend</receiver>
266
<slot>setEnabled(bool)</slot>
268
<hint type="sourcelabel">
272
<hint type="destinationlabel">
279
<sender>customTextCheck</sender>
280
<signal>toggled(bool)</signal>
281
<receiver>customTextEdit</receiver>
282
<slot>setEnabled(bool)</slot>
284
<hint type="sourcelabel">
288
<hint type="destinationlabel">