10 #ifndef CAPTURE_FILE_DIALOG_H
11 #define CAPTURE_FILE_DIALOG_H
28 #include <QVBoxLayout>
30 #include <QRadioButton>
32 #include <QDialogButtonBox>
77 static check_savability_t checkSaveAsWithComments(QWidget *
84 int selectedFileType();
85 wtap_compression_type compressionType();
90 #if !defined(Q_OS_WIN)
91 void addMergeControls(QVBoxLayout &v_box);
92 void addFormatTypeSelector(QVBoxLayout &v_box);
93 void addDisplayFilterEdit(QString &display_filter);
94 void addPreview(QVBoxLayout &v_box);
95 QString fileExtensionType(
int et,
bool extension_globs =
true);
96 QString fileType(
int ft, QStringList &suffixes);
97 QStringList buildFileOpenTypeList(
void);
99 QVBoxLayout left_v_box_;
100 QVBoxLayout right_v_box_;
105 QLabel preview_format_;
106 QLabel preview_size_;
107 QLabel preview_first_elapsed_;
108 QList<QLabel *> preview_labels_;
110 QRadioButton merge_prepend_;
111 QRadioButton merge_chrono_;
112 QRadioButton merge_append_;
114 QComboBox format_type_;
115 QHash<QString, int> type_hash_;
116 QHash<QString, QStringList> type_suffixes_;
118 void addGzipControls(QVBoxLayout &v_box);
119 void addRangeControls(QVBoxLayout &v_box,
packet_range_t *range, QString selRange = QString());
120 QDialogButtonBox *addHelpButton(topic_action_e help_topic);
122 QStringList buildFileSaveAsTypeList(
bool must_support_comments);
129 QPushButton *save_bt_;
130 topic_action_e help_topic_;
135 wtap_compression_type compression_type_;
143 void accept() Q_DECL_OVERRIDE;
145 int exec() Q_DECL_OVERRIDE;
146 int open(QString &file_name,
unsigned int &type, QString &display_filter);
147 check_savability_t saveAs(QString &file_name,
bool must_support_comments);
148 check_savability_t exportSelectedPackets(QString &file_name,
packet_range_t *range, QString selRange = QString());
149 int merge(QString &file_name, QString &display_filter);
152 #if !defined(Q_OS_WIN)
153 void fixFilenameExtension();
154 void preview(
const QString & path);
155 void on_buttonBox_helpRequested();
Definition: capture_file_dialog.h:36
Definition: display_filter_edit.h:28
Definition: packet_range_group_box.h:29
The WiresharkFileDialog class.
Definition: wireshark_file_dialog.h:30
Definition: packet_range.h:39