10#ifndef CAPTURE_FILE_DIALOG_H
11#define CAPTURE_FILE_DIALOG_H
29#include <QRadioButton>
31#include <QDialogButtonBox>
120 void addMergeControls(QVBoxLayout &v_box);
126 void addFormatTypeSelector(QVBoxLayout &v_box);
132 void addDisplayFilterEdit(QString &display_filter);
138 void addPreview(QVBoxLayout &v_box);
146 QString fileExtensionType(
int et,
bool extension_globs =
true);
154 QString fileType(
int ft, QStringList &suffixes);
160 QStringList buildFileOpenTypeList(
void);
163 QVBoxLayout left_v_box_;
166 QVBoxLayout right_v_box_;
175 QLabel preview_format_;
178 QLabel preview_size_;
181 QLabel preview_first_elapsed_;
184 QList<QLabel *> preview_labels_;
187 QRadioButton merge_prepend_;
190 QRadioButton merge_chrono_;
193 QRadioButton merge_append_;
196 QComboBox format_type_;
199 QHash<QString, int> type_hash_;
202 QHash<QString, QStringList> type_suffixes_;
208 void addGzipControls(QVBoxLayout &v_box);
216 void addRangeControls(QVBoxLayout &v_box,
packet_range_t *range, QString selRange = QString());
230 QStringList buildFileSaveAsTypeList(
bool must_support_comments);
242 QPushButton *save_bt_;
253 void accept() Q_DECL_OVERRIDE;
259 int exec() Q_DECL_OVERRIDE;
268 int open(QString &file_name,
unsigned int &type, QString &display_filter);
293 int merge(QString &file_name, QString &display_filter);
299 void fixFilenameExtension();
305 void preview(
const QString & path);
310 void on_buttonBox_helpRequested();
A file dialog for opening, saving, and merging capture files with additional options.
Definition capture_file_dialog.h:38
int mergeType()
Retrieves the selected merge type.
Definition capture_file_dialog.cpp:769
ws_compression_type compressionType()
Retrieves the selected compression type.
Definition capture_file_dialog.cpp:505
int selectedFileType()
Retrieves the selected file type.
Definition capture_file_dialog.cpp:501
void accept() Q_DECL_OVERRIDE
Accepts the dialog and finalizes the operation.
Definition capture_file_dialog.cpp:201
int merge(QString &file_name, QString &display_filter)
Opens a file dialog to merge capture files.
Definition capture_file_dialog.cpp:693
int open(QString &file_name, unsigned int &type, QString &display_filter)
Opens a file dialog to open a capture file.
Definition capture_file_dialog.cpp:570
int exec() Q_DECL_OVERRIDE
Executes the dialog in a modal state.
Definition capture_file_dialog.cpp:225
check_savability_t saveAs(QString &file_name, bool must_support_comments)
Opens a file dialog to save the capture file.
Definition capture_file_dialog.cpp:602
check_savability_t exportSelectedPackets(QString &file_name, packet_range_t *range, QString selRange=QString())
Opens a file dialog to export specific packets.
Definition capture_file_dialog.cpp:643
static check_savability_t checkSaveAsWithComments(QWidget *parent, capture_file *cf, int file_type)
Checks whether the capture file can be saved with comments in the specified format.
Definition capture_file_dialog.cpp:76
UI element for selecting compression type from among those supported.
Definition compression_group_box.h:25
A line edit widget specialized for entering, validating, and managing display filters.
Definition display_filter_edit.h:36
UI element for controlling a range selection. The range provided in "initRange" is not owned by this ...
Definition packet_range_group_box.h:29
The WiresharkFileDialog class.
Definition wireshark_file_dialog.h:35
check_savability_t
Outcome of a "check if savable" prompt when closing or overwriting a capture file.
Definition file_dialog.h:22
topic_action_e
Identifies a help topic or navigable destination reachable from the UI help system.
Definition help_url.h:28
Represents a capture file and its associated metadata.
Definition cfile.h:84
Fully describes a packet range selection, including UI settings, derived counts, and dependency sets ...
Definition packet_range.h:46