1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <class>ImportTextDialog
</class>
4 <widget class=
"QDialog" name=
"ImportTextDialog">
5 <property name=
"geometry">
13 <property name=
"maximumSize">
15 <width>16777215</width>
19 <property name=
"sizeGripEnabled">
22 <property name=
"modal">
25 <layout class=
"QVBoxLayout" name=
"verticalLayout_2">
27 <layout class=
"QHBoxLayout" name=
"horizontalLayout_2">
29 <widget class=
"QLabel" name=
"label">
30 <property name=
"text">
31 <string>File:
</string>
36 <widget class=
"QLineEdit" name=
"textFileLineEdit">
37 <property name=
"sizePolicy">
38 <sizepolicy hsizetype=
"MinimumExpanding" vsizetype=
"Fixed">
39 <horstretch>0</horstretch>
40 <verstretch>0</verstretch>
43 <property name=
"toolTip">
44 <string>Set name of text file to import
</string>
49 <widget class=
"QPushButton" name=
"textFileBrowseButton">
50 <property name=
"toolTip">
51 <string>Browse for text file to import
</string>
53 <property name=
"text">
54 <string>Browse…
</string>
61 <widget class=
"QTabWidget" name=
"modeTabWidget">
62 <property name=
"sizePolicy">
63 <sizepolicy hsizetype=
"Expanding" vsizetype=
"Expanding">
64 <horstretch>0</horstretch>
65 <verstretch>0</verstretch>
68 <property name=
"currentIndex">
71 <widget class=
"QWidget" name=
"tab">
72 <attribute name=
"title">
73 <string>Hex Dump
</string>
75 <attribute name=
"toolTip">
76 <string>Import a standard hex dump as exported by Wireshark
</string>
78 <layout class=
"QHBoxLayout" name=
"horizontalLayout_7">
80 <layout class=
"QVBoxLayout" name=
"verticalLayout_3">
82 <layout class=
"QGridLayout" name=
"gridLayout_2">
83 <property name=
"verticalSpacing">
86 <item row=
"2" column=
"1">
87 <widget class=
"QRadioButton" name=
"octalOffsetButton">
88 <property name=
"toolTip">
89 <string>Offsets in the text file are in octal notation
</string>
91 <property name=
"text">
92 <string>Octal
</string>
96 <item row=
"0" column=
"0">
97 <widget class=
"QLabel" name=
"label_2">
98 <property name=
"text">
99 <string>Offsets:
</string>
103 <item row=
"0" column=
"1">
104 <widget class=
"QRadioButton" name=
"hexOffsetButton">
105 <property name=
"toolTip">
106 <string>Offsets in the text file are in hexadecimal notation
</string>
108 <property name=
"text">
109 <string>Hexadecimal
</string>
111 <property name=
"checked">
116 <item row=
"1" column=
"1">
117 <widget class=
"QRadioButton" name=
"decimalOffsetButton">
118 <property name=
"toolTip">
119 <string>Offsets in the text file are in decimal notation
</string>
121 <property name=
"text">
122 <string>Decimal
</string>
126 <item row=
"0" column=
"2" rowspan=
"4">
127 <spacer name=
"horizontalSpacer_2">
128 <property name=
"orientation">
129 <enum>Qt::Horizontal
</enum>
131 <property name=
"sizeHint" stdset=
"0">
139 <item row=
"3" column=
"1">
140 <widget class=
"QRadioButton" name=
"noOffsetButton">
141 <property name=
"toolTip">
142 <string>The text file has no offset
</string>
144 <property name=
"text">
145 <string>None
</string>
149 <item row=
"3" column=
"2">
150 <widget class=
"QLabel" name=
"noOffsetLabel">
151 <property name=
"font">
153 <italic>false
</italic>
156 <property name=
"text">
164 <layout class=
"QHBoxLayout" name=
"horizontalLayout_5" stretch=
"0,0,0">
166 <widget class=
"QLabel" name=
"directionIndicationLabel">
167 <property name=
"toolTip">
168 <string>Whether or not the file contains information indicating the direction (inbound or outbound) of the packet.
</string>
170 <property name=
"text">
171 <string>Direction indication:
</string>
176 <widget class=
"QCheckBox" name=
"directionIndicationCheckBox">
177 <property name=
"toolTip">
178 <string>Whether or not the file contains information indicating the direction (inbound or outbound) of the packet.
</string>
183 <spacer name=
"horizontalSpacer_5">
184 <property name=
"orientation">
185 <enum>Qt::Horizontal
</enum>
187 <property name=
"sizeHint" stdset=
"0">
198 <layout class=
"QHBoxLayout" name=
"asciiLayout" stretch=
"0,0,0">
200 <widget class=
"QLabel" name=
"asciiIdentificationLabel">
201 <property name=
"toolTip">
202 <string><html
><head/
><body
><p
>Whether to do extra processing detecting the start of the ASCII representation at the end of a hex+ASCII line even if it looks like hex bytes.
</p
><p
>Do not enable if the hex dump does not contain ASCII.
</p
></body
></html
></string>
204 <property name=
"text">
205 <string>ASCII identification:
</string>
210 <widget class=
"QCheckBox" name=
"asciiIdentificationCheckBox">
211 <property name=
"toolTip">
212 <string><html
><head/
><body
><p
>Whether to do extra processing detecting the start of the ASCII representation at the end of a hex+ASCII line even if it looks like hex bytes.
</p
><p
>Do not enable if the hex dump does not contain ASCII.
</p
></body
></html
></string>
217 <spacer name=
"asciiSpacer">
218 <property name=
"orientation">
219 <enum>Qt::Horizontal
</enum>
221 <property name=
"sizeHint" stdset=
"0">
232 <spacer name=
"verticalSpacer">
233 <property name=
"orientation">
234 <enum>Qt::Vertical
</enum>
236 <property name=
"sizeHint" stdset=
"0">
248 <widget class=
"QWidget" name=
"tab_2">
249 <attribute name=
"title">
250 <string>Regular Expression
</string>
252 <attribute name=
"toolTip">
253 <string>Import a file formatted according to a custom regular expression
</string>
255 <layout class=
"QHBoxLayout" name=
"horizontalLayout_10">
257 <layout class=
"QVBoxLayout" name=
"verticalLayout">
259 <widget class=
"QLabel" name=
"label_6">
260 <property name=
"text">
261 <string>Packet format regular expression
</string>
266 <widget class=
"QTextEdit" name=
"regexTextEdit">
267 <property name=
"sizePolicy">
268 <sizepolicy hsizetype=
"Expanding" vsizetype=
"Expanding">
269 <horstretch>0</horstretch>
270 <verstretch>0</verstretch>
273 <property name=
"maximumSize">
275 <width>16777215</width>
276 <height>16777215</height>
279 <property name=
"sizeIncrement">
285 <property name=
"baseSize">
291 <property name=
"toolTip">
292 <string><html
><head/
><body
><p
>Perl compatible regular expression capturing a single packet in the file with named groups identifieing data to import. Anchors ^ and $ also match before/after newlines
</p
><p
>Required is only a data group, also supported are time, dir and seqno.
</p
><p
>Regex flags: DUPNAMES, MULTILINE and NOEMPTY
</p
></body
></html
></string>
294 <property name=
"lineWidth">
297 <property name=
"acceptRichText">
300 <property name=
"placeholderText">
301 <string notr=
"true">^(?
<dir
>(
<|
>))\s*(?
<time
>(\d\d\:){
2}\d\d)\s+(?
<seqno
>\d{
5})\s+(?
<data
>[
0-
9a-fA-F]*)$\s+
</string>
306 <widget class=
"ElidedLabel" name=
"regexHintLabel">
307 <property name=
"enabled">
310 <property name=
"text">
311 <string>This is regexHintLabel, it will be set to default_regex_hint
</string>
313 <property name=
"wordWrap">
319 <layout class=
"QHBoxLayout" name=
"horizontalLayout_8" stretch=
"0,0,0,0,0">
320 <property name=
"sizeConstraint">
321 <enum>QLayout::SetDefaultConstraint
</enum>
324 <widget class=
"QLabel" name=
"label_7">
325 <property name=
"text">
326 <string>Data encoding:
</string>
331 <widget class=
"QComboBox" name=
"dataEncodingComboBox">
332 <property name=
"toolTip">
333 <string>How data is encoded
</string>
338 <widget class=
"QLabel" name=
"label_3">
339 <property name=
"text">
340 <string><small
><i
>recommended regex:
</small
></i
></string>
345 <widget class=
"QLabel" name=
"encodingRegexExample">
346 <property name=
"text">
347 <string>encodingRegexExample
</string>
349 <property name=
"textInteractionFlags">
350 <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
</set>
355 <spacer name=
"horizontalSpacer_7">
356 <property name=
"orientation">
357 <enum>Qt::Horizontal
</enum>
359 <property name=
"sizeHint" stdset=
"0">
370 <layout class=
"QHBoxLayout" name=
"horizontalLayout_6" stretch=
"0,0,0,0">
372 <widget class=
"QLabel" name=
"dirIndicationLabel">
373 <property name=
"toolTip">
376 <property name=
"text">
377 <string>Direction indication:
</string>
382 <widget class=
"QLineEdit" name=
"dirInIndicationLineEdit">
383 <property name=
"baseSize">
389 <property name=
"toolTip">
390 <string>List of characters indicating incoming packets
</string>
392 <property name=
"maxLength">
395 <property name=
"placeholderText">
396 <string>iI
<</string>
401 <widget class=
"QLineEdit" name=
"dirOutIndicationLineEdit">
402 <property name=
"enabled">
405 <property name=
"toolTip">
406 <string>List of characters indicating outgoing packets
</string>
408 <property name=
"placeholderText">
409 <string>oO
></string>
414 <spacer name=
"horizontalSpacer_6">
415 <property name=
"orientation">
416 <enum>Qt::Horizontal
</enum>
418 <property name=
"sizeHint" stdset=
"0">
435 <layout class=
"QHBoxLayout" name=
"horizontalLayout_9" stretch=
"0,0,0,0">
437 <widget class=
"QLabel" name=
"timestampLabel">
438 <property name=
"toolTip">
439 <string>The format in which to parse timestamps in the text file (e.g. %H:%M:%S.). Format specifiers are based on strptime(
3)
</string>
441 <property name=
"text">
442 <string>Timestamp format:
</string>
447 <widget class=
"QLineEdit" name=
"timestampFormatLineEdit">
448 <property name=
"toolTip">
449 <string><html
><head/
><body
><p
>The format in which to parse timestamps in the text file (e.g. %H:%M:%S.%f).
</p
><p
>Format specifiers are based on strptime(
3) with the addition of %f for second fractions. The precision of %f is determined from its length.
</p
></body
></html
></string>
451 <property name=
"placeholderText">
452 <string>%H:%M:%S.%f
</string>
457 <widget class=
"QLabel" name=
"timestampExampleLabel">
458 <property name=
"text">
459 <string>timestampExampleLabel
</string>
464 <spacer name=
"horizontalSpacer_8">
465 <property name=
"orientation">
466 <enum>Qt::Horizontal
</enum>
468 <property name=
"sizeHint" stdset=
"0">
479 <widget class=
"QGroupBox" name=
"groupBox_2">
480 <property name=
"title">
481 <string>Encapsulation
</string>
483 <property name=
"flat">
486 <layout class=
"QFormLayout" name=
"formLayout">
487 <property name=
"fieldGrowthPolicy">
488 <enum>QFormLayout::FieldsStayAtSizeHint
</enum>
490 <item row=
"0" column=
"0" colspan=
"2">
491 <layout class=
"QHBoxLayout" name=
"horizontalLayout">
493 <widget class=
"QLabel" name=
"label_4">
494 <property name=
"text">
495 <string>Encapsulation Type:
</string>
500 <widget class=
"QComboBox" name=
"encapComboBox">
501 <property name=
"toolTip">
502 <string>Encapsulation type of the frames in the import capture file
</string>
507 <spacer name=
"horizontalSpacer_3">
508 <property name=
"orientation">
509 <enum>Qt::Horizontal
</enum>
511 <property name=
"sizeHint" stdset=
"0">
521 <item row=
"1" column=
"0" colspan=
"2">
522 <layout class=
"QGridLayout" name=
"headerGridLayout">
523 <property name=
"verticalSpacing">
526 <item row=
"0" column=
"0" colspan=
"3">
527 <widget class=
"QRadioButton" name=
"noDummyButton">
528 <property name=
"toolTip">
529 <string>Leave frames unchanged
</string>
531 <property name=
"text">
532 <string>No dummy header
</string>
534 <property name=
"checked">
539 <item row=
"0" column=
"3" rowspan=
"8">
540 <spacer name=
"horizontalSpacer_4">
541 <property name=
"orientation">
542 <enum>Qt::Horizontal
</enum>
544 <property name=
"sizeHint" stdset=
"0">
552 <item row=
"1" column=
"0">
553 <widget class=
"QRadioButton" name=
"ethernetButton">
554 <property name=
"toolTip">
555 <string>Prefix each frame with an Ethernet header
</string>
557 <property name=
"text">
558 <string>Ethernet
</string>
562 <item row=
"2" column=
"0">
563 <widget class=
"QRadioButton" name=
"ipv4Button">
564 <property name=
"toolTip">
565 <string>Prefix each frame with an Ethernet and IP header
</string>
567 <property name=
"text">
572 <item row=
"5" column=
"0">
573 <widget class=
"QRadioButton" name=
"udpButton">
574 <property name=
"toolTip">
575 <string>Prefix each frame with an Ethernet, IP and UDP header
</string>
577 <property name=
"text">
582 <item row=
"6" column=
"0">
583 <widget class=
"QRadioButton" name=
"tcpButton">
584 <property name=
"toolTip">
585 <string>Prefix each frame with an Ethernet, IP and TCP header
</string>
587 <property name=
"text">
592 <item row=
"7" column=
"0">
593 <widget class=
"QRadioButton" name=
"sctpButton">
594 <property name=
"toolTip">
595 <string>Prefix each frame with an Ethernet, IP and SCTP header
</string>
597 <property name=
"text">
598 <string>SCTP
</string>
602 <item row=
"8" column=
"0">
603 <widget class=
"QRadioButton" name=
"sctpDataButton">
604 <property name=
"toolTip">
605 <string>Prefix each frame with an Ethernet, IP and SCTP (DATA) header
</string>
607 <property name=
"text">
608 <string>SCTP (Data)
</string>
612 <item row=
"9" column=
"0">
613 <widget class=
"QRadioButton" name=
"exportPduButton">
614 <property name=
"text">
615 <string>ExportPDU
</string>
619 <item row=
"1" column=
"1">
620 <widget class=
"QLabel" name=
"ethertypeLabel">
621 <property name=
"text">
622 <string>Ethertype (hex):
</string>
626 <item row=
"2" column=
"1">
627 <widget class=
"QLabel" name=
"protocolLabel">
628 <property name=
"text">
629 <string>Protocol (dec):
</string>
633 <item row=
"3" column=
"1">
634 <widget class=
"QLabel" name=
"sourceAddressLabel">
635 <property name=
"text">
636 <string>Source address:
</string>
640 <item row=
"4" column=
"1">
641 <widget class=
"QLabel" name=
"destinationAddressLabel">
642 <property name=
"text">
643 <string>Destination address:
</string>
647 <item row=
"5" column=
"1">
648 <widget class=
"QLabel" name=
"sourcePortLabel">
649 <property name=
"text">
650 <string>Source port:
</string>
654 <item row=
"6" column=
"1">
655 <widget class=
"QLabel" name=
"destinationPortLabel">
656 <property name=
"text">
657 <string>Destination port:
</string>
661 <item row=
"7" column=
"1">
662 <widget class=
"QLabel" name=
"tagLabel">
663 <property name=
"text">
664 <string>Tag:
</string>
668 <item row=
"8" column=
"1">
669 <widget class=
"QLabel" name=
"ppiLabel">
670 <property name=
"text">
671 <string>PPI:
</string>
675 <item row=
"9" column=
"1">
676 <widget class=
"QLabel" name=
"payloadLabel">
677 <property name=
"text">
678 <string>Dissector
</string>
682 <item row=
"1" column=
"2">
683 <widget class=
"SyntaxLineEdit" name=
"ethertypeLineEdit">
684 <property name=
"toolTip">
685 <string>The Ethertype value of each frame
</string>
687 <property name=
"cursorPosition">
692 <item row=
"2" column=
"2">
693 <widget class=
"SyntaxLineEdit" name=
"protocolLineEdit">
694 <property name=
"toolTip">
695 <string>The IP protocol ID for each frame
</string>
699 <item row=
"3" column=
"2" colspan=
"3">
700 <widget class=
"SyntaxLineEdit" name=
"sourceAddressLineEdit">
701 <property name=
"toolTip">
702 <string>The IP source address for each frame
</string>
706 <item row=
"4" column=
"2" colspan=
"3">
707 <widget class=
"SyntaxLineEdit" name=
"destinationAddressLineEdit">
708 <property name=
"toolTip">
709 <string>The IP destination address for each frame
</string>
713 <item row=
"5" column=
"2">
714 <widget class=
"SyntaxLineEdit" name=
"sourcePortLineEdit">
715 <property name=
"toolTip">
716 <string>The UDP, TCP or SCTP source port for each frame
</string>
720 <item row=
"6" column=
"2">
721 <widget class=
"SyntaxLineEdit" name=
"destinationPortLineEdit">
722 <property name=
"toolTip">
723 <string>The UDP, TCP or SCTP destination port for each frame
</string>
727 <item row=
"7" column=
"2">
728 <widget class=
"SyntaxLineEdit" name=
"tagLineEdit">
729 <property name=
"toolTip">
730 <string>The SCTP verification tag for each frame
</string>
734 <item row=
"8" column=
"2">
735 <widget class=
"SyntaxLineEdit" name=
"ppiLineEdit">
736 <property name=
"toolTip">
737 <string>The SCTP DATA payload protocol identifier for each frame
</string>
741 <item row=
"9" column=
"2" colspan=
"3">
742 <widget class=
"QComboBox" name=
"dissectorComboBox">
743 <property name=
"toolTip">
744 <string>The dissector to use for each frame
</string>
748 <item row=
"2" column=
"3">
749 <widget class=
"QLabel" name=
"ipVersionLabel">
750 <property name=
"text">
751 <string>IP version:
</string>
755 <item row=
"2" column=
"4">
756 <widget class=
"QComboBox" name=
"ipVersionComboBox">
757 <property name=
"toolTip">
758 <string>The IP Version to use for the dummy IP header
</string>
768 <layout class=
"QHBoxLayout" name=
"interfaceLayout">
770 <widget class=
"QLabel" name=
"interfaceLabel">
771 <property name=
"text">
772 <string>Interface name:
</string>
777 <widget class=
"QLineEdit" name=
"interfaceLineEdit">
778 <property name=
"toolTip">
779 <string>The name of the interface to write to the import capture file
</string>
781 <property name=
"placeholderText">
782 <string>Fake IF, Import from Hex Dump
</string>
789 <layout class=
"QHBoxLayout" name=
"maxLengthLayout">
791 <widget class=
"QLabel" name=
"maxLengthLabel">
792 <property name=
"text">
793 <string>Maximum frame length:
</string>
798 <widget class=
"SyntaxLineEdit" name=
"maxLengthLineEdit">
799 <property name=
"toolTip">
800 <string>The maximum size of the frames to write to the import capture file (max
256kiB)
</string>
802 <property name=
"alignment">
803 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
810 <widget class=
"QDialogButtonBox" name=
"buttonBox">
811 <property name=
"orientation">
812 <enum>Qt::Horizontal
</enum>
814 <property name=
"standardButtons">
815 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Open
</set>
823 <class>ElidedLabel
</class>
824 <extends>QLabel
</extends>
825 <header>widgets/elided_label.h
</header>
828 <class>SyntaxLineEdit
</class>
829 <extends>QLineEdit
</extends>
830 <header>widgets/syntax_line_edit.h
</header>
836 <sender>buttonBox
</sender>
837 <signal>accepted()
</signal>
838 <receiver>ImportTextDialog
</receiver>
839 <slot>accept()
</slot>
841 <hint type=
"sourcelabel">
845 <hint type=
"destinationlabel">
852 <sender>buttonBox
</sender>
853 <signal>rejected()
</signal>
854 <receiver>ImportTextDialog
</receiver>
855 <slot>reject()
</slot>
857 <hint type=
"sourcelabel">
861 <hint type=
"destinationlabel">