10 #ifndef CAPTURE_FILE_DIALOG_H
11 #define CAPTURE_FILE_DIALOG_H
28 #include <QVBoxLayout>
30 #include <QRadioButton>
32 #include <QDialogButtonBox>
64 static check_savability_t checkSaveAsWithComments(QWidget *
71 int selectedFileType();
72 wtap_compression_type compressionType();
77 #if !defined(Q_OS_WIN)
78 void addMergeControls(QVBoxLayout &v_box);
79 void addFormatTypeSelector(QVBoxLayout &v_box);
80 void addDisplayFilterEdit(QString &display_filter);
81 void addPreview(QVBoxLayout &v_box);
82 QString fileExtensionType(
int et,
bool extension_globs =
true);
83 QString fileType(
int ft, QStringList &suffixes);
84 QStringList buildFileOpenTypeList(
void);
86 QVBoxLayout left_v_box_;
87 QVBoxLayout right_v_box_;
92 QLabel preview_format_;
94 QLabel preview_first_elapsed_;
95 QList<QLabel *> preview_labels_;
97 QRadioButton merge_prepend_;
98 QRadioButton merge_chrono_;
99 QRadioButton merge_append_;
101 QComboBox format_type_;
102 QHash<QString, int> type_hash_;
103 QHash<QString, QStringList> type_suffixes_;
105 void addGzipControls(QVBoxLayout &v_box);
106 void addRangeControls(QVBoxLayout &v_box,
packet_range_t *range, QString selRange = QString());
107 QDialogButtonBox *addHelpButton(topic_action_e help_topic);
109 QStringList buildFileSaveAsTypeList(
bool must_support_comments);
116 QPushButton *save_bt_;
117 topic_action_e help_topic_;
122 wtap_compression_type compression_type_;
130 void accept() Q_DECL_OVERRIDE;
132 int exec() Q_DECL_OVERRIDE;
133 int open(QString &file_name,
unsigned int &type, QString &display_filter);
134 check_savability_t saveAs(QString &file_name,
bool must_support_comments);
135 check_savability_t exportSelectedPackets(QString &file_name,
packet_range_t *range, QString selRange = QString());
136 int merge(QString &file_name, QString &display_filter);
139 #if !defined(Q_OS_WIN)
140 void fixFilenameExtension();
141 void preview(
const QString & path);
142 void on_buttonBox_helpRequested();
Definition: capture_file_dialog.h:36
Definition: display_filter_edit.h:28
Definition: packet_range_group_box.h:31
The WiresharkFileDialog class.
Definition: wireshark_file_dialog.h:30
Definition: packet_range.h:39