10 #ifndef IMPORT_TEXT_DIALOG_H
11 #define IMPORT_TEXT_DIALOG_H
24 #include <QPushButton>
25 #include <QRadioButton>
26 #include <QButtonGroup>
39 QString &capfileName();
42 void enableHeaderWidgets(uint encapsulation = WTAP_ENCAP_ETHERNET);
45 void enableFieldWidgets(
bool enable_direction_input =
true,
bool enable_time_input =
true);
47 void check_line_edit(
SyntaxLineEdit *le,
bool &ok_enable,
const QString &num_str,
int base, guint max_val,
bool is_short, guint *val_ptr);
48 void checkAddress(
SyntaxLineEdit *le,
bool &ok_enable,
const QString &addr_str, ws_in4_addr *val_ptr);
50 bool checkDateTimeFormat(
const QString &time_format);
52 void loadSettingsFile();
53 void saveSettingsFile();
54 void applyDialogSettings();
55 void storeDialogSettings();
57 void updateImportButtonState();
59 Ui::ImportTextDialog *ti_ui_;
62 QPushButton *import_button_;
63 QButtonGroup *encap_buttons;
65 QString capfile_name_;
67 bool timestamp_format_ok_;
72 bool in_indication_ok_;
73 bool out_indication_ok_;
91 void on_textFileBrowseButton_clicked();
92 void on_textFileLineEdit_textChanged(
const QString &arg1);
93 void on_modeTabWidget_currentChanged(
int index);
94 void on_timestampFormatLineEdit_textChanged(
const QString &arg1);
97 void on_noOffsetButton_toggled(
bool checked);
98 void on_directionIndicationCheckBox_toggled(
bool checked);
99 void on_asciiIdentificationCheckBox_toggled(
bool checked);
102 void on_regexTextEdit_textChanged();
103 void on_dataEncodingComboBox_currentIndexChanged(
int index);
104 void on_dirInIndicationLineEdit_textChanged(
const QString &arg1);
105 void on_dirOutIndicationLineEdit_textChanged(
const QString &arg1);
108 void on_encapComboBox_currentIndexChanged(
int index);
109 void encap_buttonsToggled(QAbstractButton *button,
bool checked);
110 void on_ipVersionComboBox_currentIndexChanged(
int index);
111 void on_ethertypeLineEdit_textChanged(
const QString ðertype_str);
112 void on_protocolLineEdit_textChanged(
const QString &protocol_str);
113 void on_sourceAddressLineEdit_textChanged(
const QString &source_addr_str);
114 void on_destinationAddressLineEdit_textChanged(
const QString &destination_addr_str);
115 void on_sourcePortLineEdit_textChanged(
const QString &source_port_str);
116 void on_destinationPortLineEdit_textChanged(
const QString &destination_port_str);
117 void on_tagLineEdit_textChanged(
const QString &tag_str);
118 void on_ppiLineEdit_textChanged(
const QString &ppi_str);
121 void on_maxLengthLineEdit_textChanged(
const QString &max_frame_len_str);
122 void on_buttonBox_helpRequested();
Definition: import_text_dialog.h:33
Definition: syntax_line_edit.h:23
Definition: inet_ipv6.h:21
Definition: text_import.h:65