~ubuntu-branches/ubuntu/natty/knemo/natty

« back to all changes in this revision

Viewing changes to src/kcm/warncfg.ui

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-02-22 16:36:22 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222163622-d8i62gy1stn7tydv
Tags: 0.7.0-0ubuntu1
* New upstream release.
* Switch to source format 3.0 (quilt).
* Make knemo depend on libqt4-sql-sqlite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<ui version="4.0">
 
3
 <class>WarnCfg</class>
 
4
 <widget class="QWidget" name="WarnCfg">
 
5
  <property name="geometry">
 
6
   <rect>
 
7
    <x>0</x>
 
8
    <y>0</y>
 
9
    <width>417</width>
 
10
    <height>366</height>
 
11
   </rect>
 
12
  </property>
 
13
  <layout class="QVBoxLayout" name="verticalLayout_5">
 
14
   <item>
 
15
    <widget class="QGroupBox" name="groupBox">
 
16
     <property name="title">
 
17
      <string>Notification Rules</string>
 
18
     </property>
 
19
     <layout class="QVBoxLayout" name="verticalLayout_4">
 
20
      <item>
 
21
       <layout class="QHBoxLayout" name="horizontalLayout_5">
 
22
        <item>
 
23
         <widget class="QLabel" name="trafficTypeLabel">
 
24
          <property name="text">
 
25
           <string>Traffic type:</string>
 
26
          </property>
 
27
         </widget>
 
28
        </item>
 
29
        <item>
 
30
         <widget class="QComboBox" name="trafficType">
 
31
          <item>
 
32
           <property name="text">
 
33
            <string>Peak</string>
 
34
           </property>
 
35
          </item>
 
36
          <item>
 
37
           <property name="text">
 
38
            <string>Offpeak</string>
 
39
           </property>
 
40
          </item>
 
41
          <item>
 
42
           <property name="text">
 
43
            <string>Peak and offpeak</string>
 
44
           </property>
 
45
          </item>
 
46
         </widget>
 
47
        </item>
 
48
       </layout>
 
49
      </item>
 
50
      <item>
 
51
       <layout class="QHBoxLayout" name="horizontalLayout_7">
 
52
        <item>
 
53
         <widget class="QLabel" name="label">
 
54
          <property name="text">
 
55
           <string>Traffic direction:</string>
 
56
          </property>
 
57
         </widget>
 
58
        </item>
 
59
        <item>
 
60
         <widget class="QComboBox" name="trafficDirection">
 
61
          <item>
 
62
           <property name="text">
 
63
            <string>Incoming</string>
 
64
           </property>
 
65
          </item>
 
66
          <item>
 
67
           <property name="text">
 
68
            <string>Outgoing</string>
 
69
           </property>
 
70
          </item>
 
71
          <item>
 
72
           <property name="text">
 
73
            <string>Incoming and outgoing</string>
 
74
           </property>
 
75
          </item>
 
76
         </widget>
 
77
        </item>
 
78
       </layout>
 
79
      </item>
 
80
      <item>
 
81
       <layout class="QHBoxLayout" name="horizontalLayout_4">
 
82
        <item>
 
83
         <layout class="QHBoxLayout" name="horizontalLayout_3">
 
84
          <item>
 
85
           <layout class="QVBoxLayout" name="verticalLayout_2">
 
86
            <item>
 
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>
 
92
               </sizepolicy>
 
93
              </property>
 
94
              <property name="text">
 
95
               <string>Notify when traffic exceeds:</string>
 
96
              </property>
 
97
             </widget>
 
98
            </item>
 
99
            <item>
 
100
             <widget class="QLabel" name="warnPer">
 
101
              <property name="text">
 
102
               <string>within:</string>
 
103
              </property>
 
104
              <property name="alignment">
 
105
               <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 
106
              </property>
 
107
             </widget>
 
108
            </item>
 
109
           </layout>
 
110
          </item>
 
111
          <item>
 
112
           <spacer name="horizontalSpacer_12">
 
113
            <property name="orientation">
 
114
             <enum>Qt::Horizontal</enum>
 
115
            </property>
 
116
            <property name="sizeHint" stdset="0">
 
117
             <size>
 
118
              <width>13</width>
 
119
              <height>13</height>
 
120
             </size>
 
121
            </property>
 
122
           </spacer>
 
123
          </item>
 
124
         </layout>
 
125
        </item>
 
126
        <item>
 
127
         <layout class="QVBoxLayout" name="verticalLayout">
 
128
          <item>
 
129
           <layout class="QHBoxLayout" name="horizontalLayout">
 
130
            <item>
 
131
             <widget class="KDoubleNumInput" name="threshold">
 
132
              <property name="sizePolicy">
 
133
               <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 
134
                <horstretch>0</horstretch>
 
135
                <verstretch>0</verstretch>
 
136
               </sizepolicy>
 
137
              </property>
 
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>
 
140
              </property>
 
141
              <property name="minimum">
 
142
               <double>0.100000000000000</double>
 
143
              </property>
 
144
              <property name="singleStep">
 
145
               <double>0.100000000000000</double>
 
146
              </property>
 
147
              <property name="specialValueText">
 
148
               <string/>
 
149
              </property>
 
150
              <property name="decimals">
 
151
               <number>1</number>
 
152
              </property>
 
153
             </widget>
 
154
            </item>
 
155
            <item>
 
156
             <widget class="QComboBox" name="trafficUnits">
 
157
              <property name="sizePolicy">
 
158
               <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
 
159
                <horstretch>0</horstretch>
 
160
                <verstretch>0</verstretch>
 
161
               </sizepolicy>
 
162
              </property>
 
163
              <property name="currentIndex">
 
164
               <number>-1</number>
 
165
              </property>
 
166
             </widget>
 
167
            </item>
 
168
           </layout>
 
169
          </item>
 
170
          <item>
 
171
           <layout class="QHBoxLayout" name="horizontalLayout_2">
 
172
            <item>
 
173
             <widget class="KIntSpinBox" name="periodCount">
 
174
              <property name="minimum">
 
175
               <number>1</number>
 
176
              </property>
 
177
              <property name="maximum">
 
178
               <number>1000</number>
 
179
              </property>
 
180
             </widget>
 
181
            </item>
 
182
            <item>
 
183
             <widget class="QComboBox" name="periodUnits">
 
184
              <property name="sizePolicy">
 
185
               <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
 
186
                <horstretch>0</horstretch>
 
187
                <verstretch>0</verstretch>
 
188
               </sizepolicy>
 
189
              </property>
 
190
             </widget>
 
191
            </item>
 
192
           </layout>
 
193
          </item>
 
194
         </layout>
 
195
        </item>
 
196
       </layout>
 
197
      </item>
 
198
     </layout>
 
199
    </widget>
 
200
   </item>
 
201
   <item>
 
202
    <widget class="QGroupBox" name="groupBox_2">
 
203
     <property name="title">
 
204
      <string>Notification Text</string>
 
205
     </property>
 
206
     <layout class="QVBoxLayout" name="verticalLayout_3">
 
207
      <item>
 
208
       <widget class="QCheckBox" name="customTextCheck">
 
209
        <property name="text">
 
210
         <string>Custom notification text</string>
 
211
        </property>
 
212
       </widget>
 
213
      </item>
 
214
      <item>
 
215
       <widget class="KTextEdit" name="customTextEdit">
 
216
        <property name="enabled">
 
217
         <bool>false</bool>
 
218
        </property>
 
219
       </widget>
 
220
      </item>
 
221
      <item>
 
222
       <widget class="QLabel" name="legend">
 
223
        <property name="enabled">
 
224
         <bool>false</bool>
 
225
        </property>
 
226
       </widget>
 
227
      </item>
 
228
     </layout>
 
229
    </widget>
 
230
   </item>
 
231
  </layout>
 
232
 </widget>
 
233
 <customwidgets>
 
234
  <customwidget>
 
235
   <class>KIntSpinBox</class>
 
236
   <extends>QSpinBox</extends>
 
237
   <header>knuminput.h</header>
 
238
  </customwidget>
 
239
  <customwidget>
 
240
   <class>KDoubleNumInput</class>
 
241
   <extends>QWidget</extends>
 
242
   <header>knuminput.h</header>
 
243
  </customwidget>
 
244
  <customwidget>
 
245
   <class>KTextEdit</class>
 
246
   <extends>QTextEdit</extends>
 
247
   <header>ktextedit.h</header>
 
248
  </customwidget>
 
249
 </customwidgets>
 
250
 <tabstops>
 
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>
 
259
 </tabstops>
 
260
 <resources/>
 
261
 <connections>
 
262
  <connection>
 
263
   <sender>customTextCheck</sender>
 
264
   <signal>toggled(bool)</signal>
 
265
   <receiver>legend</receiver>
 
266
   <slot>setEnabled(bool)</slot>
 
267
   <hints>
 
268
    <hint type="sourcelabel">
 
269
     <x>201</x>
 
270
     <y>246</y>
 
271
    </hint>
 
272
    <hint type="destinationlabel">
 
273
     <x>241</x>
 
274
     <y>350</y>
 
275
    </hint>
 
276
   </hints>
 
277
  </connection>
 
278
  <connection>
 
279
   <sender>customTextCheck</sender>
 
280
   <signal>toggled(bool)</signal>
 
281
   <receiver>customTextEdit</receiver>
 
282
   <slot>setEnabled(bool)</slot>
 
283
   <hints>
 
284
    <hint type="sourcelabel">
 
285
     <x>140</x>
 
286
     <y>247</y>
 
287
    </hint>
 
288
    <hint type="destinationlabel">
 
289
     <x>151</x>
 
290
     <y>286</y>
 
291
    </hint>
 
292
   </hints>
 
293
  </connection>
 
294
 </connections>
 
295
</ui>