aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/import_text_dialog.ui
blob: 0dedc55f14e80377d8bb26e48915bf096ef31d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>ImportTextDialog</class>
 <widget class="QDialog" name="ImportTextDialog">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>472</width>
    <height>486</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="maximumSize">
   <size>
    <width>16777215</width>
    <height>486</height>
   </size>
  </property>
  <property name="sizeGripEnabled">
   <bool>true</bool>
  </property>
  <property name="modal">
   <bool>true</bool>
  </property>
  <layout class="QFormLayout" name="formLayout_3">
   <property name="fieldGrowthPolicy">
    <enum>QFormLayout::FieldsStayAtSizeHint</enum>
   </property>
   <item row="0" column="0" colspan="2">
    <widget class="QGroupBox" name="groupBox">
     <property name="title">
      <string>Import From</string>
     </property>
     <property name="flat">
      <bool>true</bool>
     </property>
     <layout class="QFormLayout" name="formLayout_2">
      <item row="1" column="0" colspan="2">
       <layout class="QHBoxLayout" name="horizontalLayout_2">
        <item>
         <widget class="QLabel" name="label">
          <property name="text">
           <string>File:</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLineEdit" name="textFileLineEdit">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="toolTip">
           <string>Set name of text file to import</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QPushButton" name="textFileBrowseButton">
          <property name="toolTip">
           <string>Browse for text file to import</string>
          </property>
          <property name="text">
           <string>Browse…</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item row="2" column="0" colspan="2">
       <layout class="QGridLayout" name="gridLayout_2">
        <item row="2" column="1">
         <widget class="QRadioButton" name="octalOffsetButton">
          <property name="toolTip">
           <string>Offsets in the text file are in octal notation</string>
          </property>
          <property name="text">
           <string>Octal</string>
          </property>
         </widget>
        </item>
        <item row="0" column="0">
         <widget class="QLabel" name="label_2">
          <property name="text">
           <string>Offsets:</string>
          </property>
         </widget>
        </item>
        <item row="0" column="1">
         <widget class="QRadioButton" name="hexOffsetButton">
          <property name="toolTip">
           <string>Offsets in the text file are in hexadecimal notation</string>
          </property>
          <property name="text">
           <string>Hexadecimal</string>
          </property>
          <property name="checked">
           <bool>true</bool>
          </property>
         </widget>
        </item>
        <item row="1" column="1">
         <widget class="QRadioButton" name="decimalOffsetButton">
          <property name="toolTip">
           <string>Offsets in the text file are in decimal notation</string>
          </property>
          <property name="text">
           <string>Decimal</string>
          </property>
         </widget>
        </item>
        <item row="0" column="2" rowspan="3">
         <spacer name="horizontalSpacer_2">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="3" column="1">
         <widget class="QRadioButton" name="noOffsetButton">
          <property name="toolTip">
           <string>The text file has no offset</string>
          </property>
          <property name="text">
           <string>None</string>
          </property>
         </widget>
        </item>
        <item row="3" column="2">
         <widget class="QLabel" name="noOffsetLabel">
          <property name="font">
           <font>
            <italic>false</italic>
           </font>
          </property>
          <property name="text">
           <string/>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item row="4" column="0" colspan="2">
       <layout class="QHBoxLayout" name="horizontalLayout_3">
        <item>
         <widget class="QLabel" name="label_3">
          <property name="toolTip">
           <string>The format in which to parse timestamps in the text file (eg. %H:%M:%S.). Format specifiers are based on strptime(3)</string>
          </property>
          <property name="text">
           <string>Timestamp format:</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLineEdit" name="dateTimeLineEdit">
          <property name="toolTip">
           <string>The format in which to parse timestamps in the text file (eg. %H:%M:%S.). Format specifiers are based on strptime(3)</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="timestampExampleLabel">
          <property name="text">
           <string/>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="horizontalSpacer">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
       </layout>
      </item>
      <item row="5" column="0" colspan="2">
       <layout class="QHBoxLayout" name="horizontalLayout_5" stretch="0,0,0">
        <item>
         <widget class="QLabel" name="directionIndicationLabel">
          <property name="toolTip">
           <string>Whether or not the file contains information indicating the direction (inbound or outbound) of the packet.</string>
          </property>
          <property name="text">
           <string>Direction indication:</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QCheckBox" name="directionIndicationCheckBox">
          <property name="toolTip">
           <string>Whether or not the file contains information indicating the direction (inbound or outbound) of the packet.</string>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="horizontalSpacer_5">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
       </layout>
      </item>
     </layout>
    </widget>
   </item>
   <item row="1" column="0" colspan="2">
    <widget class="QGroupBox" name="groupBox_2">
     <property name="title">
      <string>Encapsulation</string>
     </property>
     <property name="flat">
      <bool>true</bool>
     </property>
     <layout class="QFormLayout" name="formLayout">
      <property name="fieldGrowthPolicy">
       <enum>QFormLayout::FieldsStayAtSizeHint</enum>
      </property>
      <item row="0" column="0" colspan="2">
       <layout class="QHBoxLayout" name="horizontalLayout">
        <item>
         <widget class="QLabel" name="label_4">
          <property name="text">
           <string>Encapsulation Type:</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QComboBox" name="encapComboBox">
          <property name="toolTip">
           <string>Encapsulation type of the frames in the import capture file</string>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="horizontalSpacer_3">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
       </layout>
      </item>
      <item row="1" column="0" colspan="2">
       <layout class="QGridLayout" name="headerGridLayout">
        <item row="3" column="2">
         <widget class="SyntaxLineEdit" name="sourcePortLineEdit">
          <property name="toolTip">
           <string>The UDP, TCP or SCTP source port for each frame</string>
          </property>
         </widget>
        </item>
        <item row="6" column="2">
         <widget class="SyntaxLineEdit" name="ppiLineEdit">
          <property name="toolTip">
           <string>The SCTP DATA payload protocol identifier for each frame</string>
          </property>
         </widget>
        </item>
        <item row="4" column="2">
         <widget class="SyntaxLineEdit" name="destinationPortLineEdit">
          <property name="toolTip">
           <string>The UDP, TCP or SCTP destination port for each frame</string>
          </property>
         </widget>
        </item>
        <item row="1" column="0">
         <widget class="QRadioButton" name="ethernetButton">
          <property name="toolTip">
           <string>Prefix each frame with an Ethernet header</string>
          </property>
          <property name="text">
           <string>Ethernet</string>
          </property>
         </widget>
        </item>
        <item row="5" column="0">
         <widget class="QRadioButton" name="sctpButton">
          <property name="toolTip">
           <string>Prefix each frame with an Ethernet, IPv4 and SCTP header</string>
          </property>
          <property name="text">
           <string>SCTP</string>
          </property>
         </widget>
        </item>
        <item row="6" column="1">
         <widget class="QLabel" name="ppiLabel">
          <property name="text">
           <string>PPI:</string>
          </property>
         </widget>
        </item>
        <item row="2" column="1">
         <widget class="QLabel" name="protocolLabel">
          <property name="text">
           <string>Protocol (dec):</string>
          </property>
         </widget>
        </item>
        <item row="0" column="0" colspan="3">
         <widget class="QRadioButton" name="noDummyButton">
          <property name="toolTip">
           <string>Leave frames unchanged</string>
          </property>
          <property name="text">
           <string>No dummy header</string>
          </property>
          <property name="checked">
           <bool>true</bool>
          </property>
         </widget>
        </item>
        <item row="0" column="3" rowspan="7">
         <spacer name="horizontalSpacer_4">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="5" column="1">
         <widget class="QLabel" name="tagLabel">
          <property name="text">
           <string>Tag:</string>
          </property>
         </widget>
        </item>
        <item row="3" column="0">
         <widget class="QRadioButton" name="udpButton">
          <property name="toolTip">
           <string>Prefix each frame with an Ethernet, IPv4 and UDP header</string>
          </property>
          <property name="text">
           <string>UDP</string>
          </property>
         </widget>
        </item>
        <item row="3" column="1">
         <widget class="QLabel" name="sourcePortLabel">
          <property name="text">
           <string>Source port:</string>
          </property>
         </widget>
        </item>
        <item row="1" column="2">
         <widget class="SyntaxLineEdit" name="ethertypeLineEdit">
          <property name="toolTip">
           <string>The Ethertype value of each frame</string>
          </property>
          <property name="cursorPosition">
           <number>0</number>
          </property>
         </widget>
        </item>
        <item row="4" column="0">
         <widget class="QRadioButton" name="tcpButton">
          <property name="toolTip">
           <string>Prefix each frame with an Ethernet, IPv4 and TCP header</string>
          </property>
          <property name="text">
           <string>TCP</string>
          </property>
         </widget>
        </item>
        <item row="5" column="2">
         <widget class="SyntaxLineEdit" name="tagLineEdit">
          <property name="toolTip">
           <string>The SCTP verification tag for each frame</string>
          </property>
         </widget>
        </item>
        <item row="4" column="1">
         <widget class="QLabel" name="destinationPortLabel">
          <property name="text">
           <string>Destination port:</string>
          </property>
         </widget>
        </item>
        <item row="1" column="1">
         <widget class="QLabel" name="ethertypeLabel">
          <property name="text">
           <string>Ethertype (hex):</string>
          </property>
         </widget>
        </item>
        <item row="2" column="2">
         <widget class="SyntaxLineEdit" name="protocolLineEdit">
          <property name="toolTip">
           <string>The IPv4 protocol ID for each frame</string>
          </property>
         </widget>
        </item>
        <item row="6" column="0">
         <widget class="QRadioButton" name="sctpDataButton">
          <property name="toolTip">
           <string>Prefix each frame with an Ethernet, IPv4 and SCTP (DATA) header</string>
          </property>
          <property name="text">
           <string>SCTP (Data)</string>
          </property>
         </widget>
        </item>
        <item row="2" column="0">
         <widget class="QRadioButton" name="ipv4Button">
          <property name="toolTip">
           <string>Prefix each frame with an Ethernet and IPv4 header</string>
          </property>
          <property name="text">
           <string>IPv4</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
     </layout>
    </widget>
   </item>
   <item row="2" column="1">
    <layout class="QHBoxLayout" name="horizontalLayout_4">
     <item>
      <widget class="QLabel" name="label_11">
       <property name="text">
        <string>Maximum frame length:</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="SyntaxLineEdit" name="maxLengthLineEdit">
       <property name="toolTip">
        <string>The maximum size of the frames to write to the import capture file (max 64000)</string>
       </property>
      </widget>
     </item>
    </layout>
   </item>
   <item row="3" column="0" colspan="2">
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Open</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>SyntaxLineEdit</class>
   <extends>QLineEdit</extends>
   <header>syntax_line_edit.h</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>ImportTextDialog</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>248</x>
     <y>254</y>
    </hint>
    <hint type="destinationlabel">
     <x>157</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>ImportTextDialog</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>316</x>
     <y>260</y>
    </hint>
    <hint type="destinationlabel">
     <x>286</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>