~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to ui/CSettingsDialog.ui

  • Committer: Nathan Osman
  • Date: 2012-06-18 15:36:04 UTC
  • Revision ID: admin@quickmediasolutions.com-20120618153604-zhah626i56drwin5
Added a lot of skeleton code including the settings dialog and implemented the tray icon.

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>CSettingsDialog</class>
 
4
 <widget class="QDialog" name="CSettingsDialog">
 
5
  <property name="geometry">
 
6
   <rect>
 
7
    <x>0</x>
 
8
    <y>0</y>
 
9
    <width>450</width>
 
10
    <height>400</height>
 
11
   </rect>
 
12
  </property>
 
13
  <property name="windowTitle">
 
14
   <string>NitroShare Settings</string>
 
15
  </property>
 
16
  <layout class="QVBoxLayout" name="verticalLayout">
 
17
   <item>
 
18
    <widget class="QTabWidget" name="Tabs">
 
19
     <property name="currentIndex">
 
20
      <number>3</number>
 
21
     </property>
 
22
     <widget class="QWidget" name="GeneralTab">
 
23
      <attribute name="title">
 
24
       <string>General</string>
 
25
      </attribute>
 
26
      <layout class="QVBoxLayout" name="verticalLayout_2">
 
27
       <item>
 
28
        <widget class="QCheckBox" name="LoadAtStartup">
 
29
         <property name="text">
 
30
          <string>Load at startup</string>
 
31
         </property>
 
32
        </widget>
 
33
       </item>
 
34
       <item>
 
35
        <spacer name="Spacer1">
 
36
         <property name="orientation">
 
37
          <enum>Qt::Vertical</enum>
 
38
         </property>
 
39
         <property name="sizeHint" stdset="0">
 
40
          <size>
 
41
           <width>20</width>
 
42
           <height>40</height>
 
43
          </size>
 
44
         </property>
 
45
        </spacer>
 
46
       </item>
 
47
      </layout>
 
48
     </widget>
 
49
     <widget class="QWidget" name="NotificationsTab">
 
50
      <attribute name="title">
 
51
       <string>Notifications</string>
 
52
      </attribute>
 
53
      <layout class="QVBoxLayout" name="verticalLayout_3">
 
54
       <item>
 
55
        <widget class="QLabel" name="NotificationsLabel">
 
56
         <property name="text">
 
57
          <string>Display notifications for the following events:</string>
 
58
         </property>
 
59
        </widget>
 
60
       </item>
 
61
       <item>
 
62
        <widget class="QCheckBox" name="NotifyNewPC">
 
63
         <property name="text">
 
64
          <string>A new PC running NitroShare joins the network</string>
 
65
         </property>
 
66
        </widget>
 
67
       </item>
 
68
       <item>
 
69
        <widget class="QCheckBox" name="NotifyFilesReceived">
 
70
         <property name="text">
 
71
          <string>Files are received</string>
 
72
         </property>
 
73
        </widget>
 
74
       </item>
 
75
       <item>
 
76
        <widget class="QCheckBox" name="NotifyError">
 
77
         <property name="text">
 
78
          <string>An error occurs </string>
 
79
         </property>
 
80
        </widget>
 
81
       </item>
 
82
       <item>
 
83
        <spacer name="Spacer2">
 
84
         <property name="orientation">
 
85
          <enum>Qt::Vertical</enum>
 
86
         </property>
 
87
         <property name="sizeHint" stdset="0">
 
88
          <size>
 
89
           <width>20</width>
 
90
           <height>40</height>
 
91
          </size>
 
92
         </property>
 
93
        </spacer>
 
94
       </item>
 
95
      </layout>
 
96
     </widget>
 
97
     <widget class="QWidget" name="SecurityTab">
 
98
      <attribute name="title">
 
99
       <string>Security</string>
 
100
      </attribute>
 
101
      <layout class="QVBoxLayout" name="verticalLayout_4">
 
102
       <item>
 
103
        <widget class="QRadioButton" name="AcceptAll">
 
104
         <property name="text">
 
105
          <string>Automatically accept all files</string>
 
106
         </property>
 
107
        </widget>
 
108
       </item>
 
109
       <item>
 
110
        <widget class="QRadioButton" name="AcceptPattern">
 
111
         <property name="text">
 
112
          <string>Accept files that match the regular expression below:</string>
 
113
         </property>
 
114
        </widget>
 
115
       </item>
 
116
       <item>
 
117
        <layout class="QVBoxLayout" name="RegExLayout">
 
118
         <property name="leftMargin">
 
119
          <number>20</number>
 
120
         </property>
 
121
         <property name="rightMargin">
 
122
          <number>20</number>
 
123
         </property>
 
124
         <item>
 
125
          <widget class="QLineEdit" name="AcceptRegEx"/>
 
126
         </item>
 
127
        </layout>
 
128
       </item>
 
129
       <item>
 
130
        <widget class="QRadioButton" name="AcceptPrompt">
 
131
         <property name="text">
 
132
          <string>Always prompt before accepting files</string>
 
133
         </property>
 
134
        </widget>
 
135
       </item>
 
136
       <item>
 
137
        <widget class="QRadioButton" name="AcceptNone">
 
138
         <property name="text">
 
139
          <string>Do not accept any files</string>
 
140
         </property>
 
141
        </widget>
 
142
       </item>
 
143
       <item>
 
144
        <spacer name="Spacer3">
 
145
         <property name="orientation">
 
146
          <enum>Qt::Vertical</enum>
 
147
         </property>
 
148
         <property name="sizeHint" stdset="0">
 
149
          <size>
 
150
           <width>20</width>
 
151
           <height>40</height>
 
152
          </size>
 
153
         </property>
 
154
        </spacer>
 
155
       </item>
 
156
      </layout>
 
157
     </widget>
 
158
     <widget class="QWidget" name="NetworkTab">
 
159
      <attribute name="title">
 
160
       <string>Network</string>
 
161
      </attribute>
 
162
      <layout class="QVBoxLayout" name="verticalLayout_6">
 
163
       <item>
 
164
        <layout class="QHBoxLayout" name="InterfaceLayout">
 
165
         <item>
 
166
          <widget class="QLabel" name="InterfaceLabel">
 
167
           <property name="text">
 
168
            <string>Network interface:</string>
 
169
           </property>
 
170
          </widget>
 
171
         </item>
 
172
         <item>
 
173
          <widget class="QComboBox" name="InterfaceList">
 
174
           <property name="sizePolicy">
 
175
            <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 
176
             <horstretch>0</horstretch>
 
177
             <verstretch>0</verstretch>
 
178
            </sizepolicy>
 
179
           </property>
 
180
          </widget>
 
181
         </item>
 
182
        </layout>
 
183
       </item>
 
184
       <item>
 
185
        <widget class="Line" name="Line1">
 
186
         <property name="orientation">
 
187
          <enum>Qt::Horizontal</enum>
 
188
         </property>
 
189
        </widget>
 
190
       </item>
 
191
       <item>
 
192
        <widget class="QLabel" name="Warning">
 
193
         <property name="text">
 
194
          <string>&lt;b&gt;Warning:&lt;/b&gt; changing the settings below may cause NitroShare to stop functioning. Proceed with caution.</string>
 
195
         </property>
 
196
         <property name="wordWrap">
 
197
          <bool>true</bool>
 
198
         </property>
 
199
        </widget>
 
200
       </item>
 
201
       <item>
 
202
        <widget class="Line" name="Line2">
 
203
         <property name="orientation">
 
204
          <enum>Qt::Horizontal</enum>
 
205
         </property>
 
206
        </widget>
 
207
       </item>
 
208
       <item>
 
209
        <widget class="QLabel" name="MulticastLabel">
 
210
         <property name="text">
 
211
          <string>Multicast IP address and port:</string>
 
212
         </property>
 
213
        </widget>
 
214
       </item>
 
215
       <item>
 
216
        <layout class="QHBoxLayout" name="MulticastLayout">
 
217
         <item>
 
218
          <widget class="QLineEdit" name="MulticastIP">
 
219
           <property name="inputMask">
 
220
            <string/>
 
221
           </property>
 
222
           <property name="text">
 
223
            <string/>
 
224
           </property>
 
225
           <property name="maxLength">
 
226
            <number>15</number>
 
227
           </property>
 
228
           <property name="alignment">
 
229
            <set>Qt::AlignCenter</set>
 
230
           </property>
 
231
          </widget>
 
232
         </item>
 
233
         <item>
 
234
          <widget class="QLineEdit" name="MulticastPort">
 
235
           <property name="sizePolicy">
 
236
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
 
237
             <horstretch>0</horstretch>
 
238
             <verstretch>0</verstretch>
 
239
            </sizepolicy>
 
240
           </property>
 
241
           <property name="inputMask">
 
242
            <string>00000; </string>
 
243
           </property>
 
244
           <property name="maxLength">
 
245
            <number>5</number>
 
246
           </property>
 
247
           <property name="alignment">
 
248
            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 
249
           </property>
 
250
          </widget>
 
251
         </item>
 
252
        </layout>
 
253
       </item>
 
254
       <item>
 
255
        <layout class="QHBoxLayout" name="BroadcastLayout">
 
256
         <item>
 
257
          <widget class="QLabel" name="BroadcastLabel">
 
258
           <property name="sizePolicy">
 
259
            <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
 
260
             <horstretch>0</horstretch>
 
261
             <verstretch>0</verstretch>
 
262
            </sizepolicy>
 
263
           </property>
 
264
           <property name="text">
 
265
            <string>Broadcast interval (in seconds):</string>
 
266
           </property>
 
267
          </widget>
 
268
         </item>
 
269
         <item>
 
270
          <widget class="QLineEdit" name="BroadcastInterval">
 
271
           <property name="sizePolicy">
 
272
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
 
273
             <horstretch>0</horstretch>
 
274
             <verstretch>0</verstretch>
 
275
            </sizepolicy>
 
276
           </property>
 
277
           <property name="maxLength">
 
278
            <number>5</number>
 
279
           </property>
 
280
           <property name="alignment">
 
281
            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 
282
           </property>
 
283
          </widget>
 
284
         </item>
 
285
        </layout>
 
286
       </item>
 
287
       <item>
 
288
        <widget class="QLabel" name="TransmissionLabel">
 
289
         <property name="text">
 
290
          <string>File transmission port range:</string>
 
291
         </property>
 
292
        </widget>
 
293
       </item>
 
294
       <item>
 
295
        <layout class="QHBoxLayout" name="TransmissionLayout">
 
296
         <item>
 
297
          <widget class="QLineEdit" name="TransmissionStartPort">
 
298
           <property name="sizePolicy">
 
299
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
 
300
             <horstretch>0</horstretch>
 
301
             <verstretch>0</verstretch>
 
302
            </sizepolicy>
 
303
           </property>
 
304
           <property name="inputMask">
 
305
            <string>00000; </string>
 
306
           </property>
 
307
           <property name="alignment">
 
308
            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 
309
           </property>
 
310
          </widget>
 
311
         </item>
 
312
         <item>
 
313
          <widget class="QLabel" name="Dash">
 
314
           <property name="text">
 
315
            <string>-</string>
 
316
           </property>
 
317
          </widget>
 
318
         </item>
 
319
         <item>
 
320
          <widget class="QLineEdit" name="TransmissionEndPort">
 
321
           <property name="sizePolicy">
 
322
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
 
323
             <horstretch>0</horstretch>
 
324
             <verstretch>0</verstretch>
 
325
            </sizepolicy>
 
326
           </property>
 
327
           <property name="inputMask">
 
328
            <string>00000; </string>
 
329
           </property>
 
330
           <property name="alignment">
 
331
            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 
332
           </property>
 
333
          </widget>
 
334
         </item>
 
335
         <item>
 
336
          <spacer name="Spacer4">
 
337
           <property name="orientation">
 
338
            <enum>Qt::Horizontal</enum>
 
339
           </property>
 
340
           <property name="sizeHint" stdset="0">
 
341
            <size>
 
342
             <width>40</width>
 
343
             <height>20</height>
 
344
            </size>
 
345
           </property>
 
346
          </spacer>
 
347
         </item>
 
348
        </layout>
 
349
       </item>
 
350
       <item>
 
351
        <spacer name="Spacer5">
 
352
         <property name="orientation">
 
353
          <enum>Qt::Vertical</enum>
 
354
         </property>
 
355
         <property name="sizeHint" stdset="0">
 
356
          <size>
 
357
           <width>20</width>
 
358
           <height>40</height>
 
359
          </size>
 
360
         </property>
 
361
        </spacer>
 
362
       </item>
 
363
      </layout>
 
364
     </widget>
 
365
    </widget>
 
366
   </item>
 
367
   <item>
 
368
    <widget class="QDialogButtonBox" name="ButtonBox">
 
369
     <property name="orientation">
 
370
      <enum>Qt::Horizontal</enum>
 
371
     </property>
 
372
     <property name="standardButtons">
 
373
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
 
374
     </property>
 
375
    </widget>
 
376
   </item>
 
377
  </layout>
 
378
 </widget>
 
379
 <resources/>
 
380
 <connections>
 
381
  <connection>
 
382
   <sender>ButtonBox</sender>
 
383
   <signal>accepted()</signal>
 
384
   <receiver>CSettingsDialog</receiver>
 
385
   <slot>accept()</slot>
 
386
   <hints>
 
387
    <hint type="sourcelabel">
 
388
     <x>248</x>
 
389
     <y>254</y>
 
390
    </hint>
 
391
    <hint type="destinationlabel">
 
392
     <x>157</x>
 
393
     <y>274</y>
 
394
    </hint>
 
395
   </hints>
 
396
  </connection>
 
397
  <connection>
 
398
   <sender>ButtonBox</sender>
 
399
   <signal>rejected()</signal>
 
400
   <receiver>CSettingsDialog</receiver>
 
401
   <slot>reject()</slot>
 
402
   <hints>
 
403
    <hint type="sourcelabel">
 
404
     <x>316</x>
 
405
     <y>260</y>
 
406
    </hint>
 
407
    <hint type="destinationlabel">
 
408
     <x>286</x>
 
409
     <y>274</y>
 
410
    </hint>
 
411
   </hints>
 
412
  </connection>
 
413
 </connections>
 
414
</ui>