10 #ifndef CAPTURE_FILE_DIALOG_H 11 #define CAPTURE_FILE_DIALOG_H 14 #include <ui/qt/widgets/display_filter_edit.h> 15 #include "packet_range_group_box.h" 19 #include <ui/packet_range.h> 21 #include <ui/qt/models/packet_list_record.h> 24 #include "ui/file_dialog.h" 26 #include <QFileDialog> 27 #include <QVBoxLayout> 29 #include <QRadioButton> 31 #include <QDialogButtonBox> 63 static check_savability_t checkSaveAsWithComments(QWidget *
70 int selectedFileType();
75 QString &display_filter_;
77 #if !defined(Q_OS_WIN) 78 void addMergeControls(QVBoxLayout &v_box);
79 void addFormatTypeSelector(QVBoxLayout &v_box);
80 void addDisplayFilterEdit();
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);
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 gboolean compressed_;
130 void accept() Q_DECL_OVERRIDE;
132 int exec() Q_DECL_OVERRIDE;
133 int open(QString &file_name,
unsigned int &type);
134 check_savability_t saveAs(QString &file_name,
bool must_support_comments);
135 check_savability_t exportSelectedPackets(QString &file_name,
packet_range_t *range);
136 int merge(QString &file_name);
139 #if !defined(Q_OS_WIN) 140 void fixFilenameExtension();
141 void preview(
const QString & path);
142 void on_buttonBox_helpRequested();
146 #endif // CAPTURE_FILE_DIALOG_H
Definition: capture_file_dialog.h:34
Definition: packet_range_group_box.h:26
Definition: packet_range.h:38
Definition: display_filter_edit.h:26