76 static check_savability_t checkSaveAsWithComments(QWidget *
80 int selectedFileType();
81 wtap_compression_type compressionType();
86 void addMergeControls(QVBoxLayout &v_box);
87 void addFormatTypeSelector(QVBoxLayout &v_box);
88 void addDisplayFilterEdit(QString &display_filter);
89 void addPreview(QVBoxLayout &v_box);
90 QString fileExtensionType(
int et,
bool extension_globs =
true);
91 QString fileType(
int ft, QStringList &suffixes);
92 QStringList buildFileOpenTypeList(
void);
94 QVBoxLayout left_v_box_;
95 QVBoxLayout right_v_box_;
100 QLabel preview_format_;
101 QLabel preview_size_;
102 QLabel preview_first_elapsed_;
103 QList<QLabel *> preview_labels_;
105 QRadioButton merge_prepend_;
106 QRadioButton merge_chrono_;
107 QRadioButton merge_append_;
109 QComboBox format_type_;
110 QHash<QString, int> type_hash_;
111 QHash<QString, QStringList> type_suffixes_;
113 void addGzipControls(QVBoxLayout &v_box);
114 void addRangeControls(QVBoxLayout &v_box,
packet_range_t *range, QString selRange = QString());
115 QDialogButtonBox *addHelpButton(topic_action_e help_topic);
117 QStringList buildFileSaveAsTypeList(
bool must_support_comments);
124 QPushButton *save_bt_;
125 topic_action_e help_topic_;
131 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 void fixFilenameExtension();
140 void preview(
const QString & path);
141 void on_buttonBox_helpRequested();