10 #ifndef CAPTURE_FILE_DIALOG_H
11 #define CAPTURE_FILE_DIALOG_H
26 #include <QVBoxLayout>
28 #include <QRadioButton>
30 #include <QDialogButtonBox>
75 static check_savability_t checkSaveAsWithComments(QWidget *
79 int selectedFileType();
80 wtap_compression_type compressionType();
85 void addMergeControls(QVBoxLayout &v_box);
86 void addFormatTypeSelector(QVBoxLayout &v_box);
87 void addDisplayFilterEdit(QString &display_filter);
88 void addPreview(QVBoxLayout &v_box);
89 QString fileExtensionType(
int et,
bool extension_globs =
true);
90 QString fileType(
int ft, QStringList &suffixes);
91 QStringList buildFileOpenTypeList(
void);
93 QVBoxLayout left_v_box_;
94 QVBoxLayout right_v_box_;
99 QLabel preview_format_;
100 QLabel preview_size_;
101 QLabel preview_first_elapsed_;
102 QList<QLabel *> preview_labels_;
104 QRadioButton merge_prepend_;
105 QRadioButton merge_chrono_;
106 QRadioButton merge_append_;
108 QComboBox format_type_;
109 QHash<QString, int> type_hash_;
110 QHash<QString, QStringList> type_suffixes_;
112 void addGzipControls(QVBoxLayout &v_box);
113 void addRangeControls(QVBoxLayout &v_box,
packet_range_t *range, QString selRange = QString());
114 QDialogButtonBox *addHelpButton(topic_action_e help_topic);
116 QStringList buildFileSaveAsTypeList(
bool must_support_comments);
123 QPushButton *save_bt_;
124 topic_action_e help_topic_;
130 void accept() Q_DECL_OVERRIDE;
131 int exec() Q_DECL_OVERRIDE;
132 int open(QString &file_name,
unsigned int &type, QString &display_filter);
133 check_savability_t saveAs(QString &file_name,
bool must_support_comments);
134 check_savability_t exportSelectedPackets(QString &file_name,
packet_range_t *range, QString selRange = QString());
135 int merge(QString &file_name, QString &display_filter);
138 void fixFilenameExtension();
139 void preview(
const QString & path);
140 void on_buttonBox_helpRequested();
Definition: capture_file_dialog.h:34
Definition: display_filter_edit.h:28
Definition: packet_range_group_box.h:29
The WiresharkFileDialog class.
Definition: wireshark_file_dialog.h:36
Definition: packet_range.h:39