Qt: Manually connect our "File" menu actions.
This commit is contained in:
parent
720090fb86
commit
de387814bb
|
@ -598,6 +598,7 @@ main_ui_->goToLineEdit->setValidator(goToLineQiv);
|
||||||
connect(mainApp, SIGNAL(zoomMonospaceFont(QFont)),
|
connect(mainApp, SIGNAL(zoomMonospaceFont(QFont)),
|
||||||
proto_tree_, SLOT(setMonospaceFont(QFont)));
|
proto_tree_, SLOT(setMonospaceFont(QFont)));
|
||||||
|
|
||||||
|
connectFileMenuActions();
|
||||||
connectEditMenuActions();
|
connectEditMenuActions();
|
||||||
|
|
||||||
connect(main_ui_->actionGoNextPacket, SIGNAL(triggered()),
|
connect(main_ui_->actionGoNextPacket, SIGNAL(triggered()),
|
||||||
|
|
|
@ -388,27 +388,10 @@ private slots:
|
||||||
// We might want move these to main_window_actions.cpp similar to
|
// We might want move these to main_window_actions.cpp similar to
|
||||||
// gtk/main_menubar.c
|
// gtk/main_menubar.c
|
||||||
|
|
||||||
void on_actionFileOpen_triggered();
|
void connectFileMenuActions();
|
||||||
void on_actionFileMerge_triggered();
|
void exportPacketBytes();
|
||||||
void on_actionFileImportFromHexDump_triggered();
|
void exportPDU();
|
||||||
void on_actionFileClose_triggered();
|
void printFile();
|
||||||
void on_actionFileSave_triggered();
|
|
||||||
void on_actionFileSaveAs_triggered();
|
|
||||||
void on_actionFileSetListFiles_triggered();
|
|
||||||
void on_actionFileSetNextFile_triggered();
|
|
||||||
void on_actionFileSetPreviousFile_triggered();
|
|
||||||
void on_actionFileExportPackets_triggered();
|
|
||||||
void on_actionFileExportAsPlainText_triggered();
|
|
||||||
// We're dropping PostScript exports
|
|
||||||
void on_actionFileExportAsCSV_triggered();
|
|
||||||
void on_actionFileExportAsCArrays_triggered();
|
|
||||||
void on_actionFileExportAsPSML_triggered();
|
|
||||||
void on_actionFileExportAsPDML_triggered();
|
|
||||||
void on_actionFileExportAsJSON_triggered();
|
|
||||||
void on_actionFileExportPacketBytes_triggered();
|
|
||||||
void on_actionFilePrint_triggered();
|
|
||||||
|
|
||||||
void on_actionFileExportPDU_triggered();
|
|
||||||
|
|
||||||
void connectEditMenuActions();
|
void connectEditMenuActions();
|
||||||
void copySelectedItems(LograyMainWindow::CopySelected selection_type);
|
void copySelectedItems(LograyMainWindow::CopySelected selection_type);
|
||||||
|
|
|
@ -1663,98 +1663,83 @@ void LograyMainWindow::softwareUpdateRequested() {
|
||||||
|
|
||||||
// File Menu
|
// File Menu
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileOpen_triggered()
|
void LograyMainWindow::connectFileMenuActions()
|
||||||
{
|
{
|
||||||
openCaptureFile();
|
connect(main_ui_->actionFileOpen, &QAction::triggered, this,
|
||||||
}
|
[this]() { openCaptureFile(); });
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileMerge_triggered()
|
connect(main_ui_->actionFileMerge, &QAction::triggered, this,
|
||||||
{
|
[this]() { mergeCaptureFile(); });
|
||||||
mergeCaptureFile();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileImportFromHexDump_triggered()
|
connect(main_ui_->actionFileImportFromHexDump, &QAction::triggered, this,
|
||||||
{
|
[this]() { importCaptureFile(); });
|
||||||
importCaptureFile();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileClose_triggered() {
|
connect(main_ui_->actionFileClose, &QAction::triggered, this, [this]() {
|
||||||
QString before_what(tr(" before closing the file"));
|
QString before_what(tr(" before closing the file"));
|
||||||
if (testCaptureFileClose(before_what))
|
if (testCaptureFileClose(before_what)) {
|
||||||
showWelcome();
|
showWelcome();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileSave_triggered()
|
connect(main_ui_->actionFileSave, &QAction::triggered, this,
|
||||||
{
|
[this]() { saveCaptureFile(capture_file_.capFile(), false); });
|
||||||
saveCaptureFile(capture_file_.capFile(), false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileSaveAs_triggered()
|
connect(main_ui_->actionFileSaveAs, &QAction::triggered, this,
|
||||||
{
|
[this]() { saveAsCaptureFile(capture_file_.capFile()); });
|
||||||
saveAsCaptureFile(capture_file_.capFile());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileSetListFiles_triggered()
|
connect(main_ui_->actionFileSetListFiles, &QAction::triggered, this,
|
||||||
{
|
[this]() { file_set_dialog_->show(); });
|
||||||
file_set_dialog_->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileSetNextFile_triggered()
|
connect(main_ui_->actionFileSetNextFile, &QAction::triggered, this, [this]() {
|
||||||
{
|
|
||||||
fileset_entry *entry = fileset_get_next();
|
fileset_entry *entry = fileset_get_next();
|
||||||
|
|
||||||
if (entry) {
|
if (entry) {
|
||||||
QString new_cf_path = entry->fullname;
|
QString new_cf_path = entry->fullname;
|
||||||
openCaptureFile(new_cf_path);
|
openCaptureFile(new_cf_path);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileSetPreviousFile_triggered()
|
connect(main_ui_->actionFileSetPreviousFile, &QAction::triggered, this, [this]() {
|
||||||
{
|
|
||||||
fileset_entry *entry = fileset_get_previous();
|
fileset_entry *entry = fileset_get_previous();
|
||||||
|
|
||||||
if (entry) {
|
if (entry) {
|
||||||
QString new_cf_path = entry->fullname;
|
QString new_cf_path = entry->fullname;
|
||||||
openCaptureFile(new_cf_path);
|
openCaptureFile(new_cf_path);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportPackets, &QAction::triggered, this,
|
||||||
|
[this]() { exportSelectedPackets(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsPlainText, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_text); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsCSV, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_csv); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsCArrays, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_carrays); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsPSML, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_psml); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsPDML, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_pdml); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsJSON, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_json); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportPacketBytes, &QAction::triggered, this,
|
||||||
|
[this]() { exportPacketBytes(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportPDU, &QAction::triggered, this,
|
||||||
|
[this]() { exportPDU(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFilePrint, &QAction::triggered, this,
|
||||||
|
[this]() { printFile(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportPackets_triggered()
|
void LograyMainWindow::exportPacketBytes()
|
||||||
{
|
|
||||||
exportSelectedPackets();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportAsPlainText_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_text);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportAsCSV_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_csv);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportAsCArrays_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_carrays);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportAsPSML_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_psml);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportAsPDML_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_pdml);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportAsJSON_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_json);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportPacketBytes_triggered()
|
|
||||||
{
|
{
|
||||||
QString file_name;
|
QString file_name;
|
||||||
|
|
||||||
|
@ -1778,14 +1763,7 @@ void LograyMainWindow::on_actionFileExportPacketBytes_triggered()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LograyMainWindow::on_actionAnalyzeShowPacketBytes_triggered()
|
void LograyMainWindow::exportPDU()
|
||||||
{
|
|
||||||
ShowPacketBytesDialog *spbd = new ShowPacketBytesDialog(*this, capture_file_);
|
|
||||||
spbd->addCodecs(text_codec_map_);
|
|
||||||
spbd->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFileExportPDU_triggered()
|
|
||||||
{
|
{
|
||||||
ExportPDUDialog *exportpdu_dialog = new ExportPDUDialog(this);
|
ExportPDUDialog *exportpdu_dialog = new ExportPDUDialog(this);
|
||||||
|
|
||||||
|
@ -1802,7 +1780,7 @@ void LograyMainWindow::on_actionFileExportPDU_triggered()
|
||||||
exportpdu_dialog->activateWindow();
|
exportpdu_dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LograyMainWindow::on_actionFilePrint_triggered()
|
void LograyMainWindow::printFile()
|
||||||
{
|
{
|
||||||
capture_file *cf = capture_file_.capFile();
|
capture_file *cf = capture_file_.capFile();
|
||||||
g_return_if_fail(cf);
|
g_return_if_fail(cf);
|
||||||
|
@ -2783,6 +2761,13 @@ void LograyMainWindow::statCommandExpertInfo(const char *, void *)
|
||||||
expert_dialog->show();
|
expert_dialog->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LograyMainWindow::on_actionAnalyzeShowPacketBytes_triggered()
|
||||||
|
{
|
||||||
|
ShowPacketBytesDialog *spbd = new ShowPacketBytesDialog(*this, capture_file_);
|
||||||
|
spbd->addCodecs(text_codec_map_);
|
||||||
|
spbd->show();
|
||||||
|
}
|
||||||
|
|
||||||
void LograyMainWindow::on_actionAnalyzeExpertInfo_triggered()
|
void LograyMainWindow::on_actionAnalyzeExpertInfo_triggered()
|
||||||
{
|
{
|
||||||
statCommandExpertInfo(NULL, NULL);
|
statCommandExpertInfo(NULL, NULL);
|
||||||
|
|
|
@ -626,6 +626,7 @@ main_ui_->goToLineEdit->setValidator(goToLineQiv);
|
||||||
connect(mainApp, SIGNAL(zoomMonospaceFont(QFont)),
|
connect(mainApp, SIGNAL(zoomMonospaceFont(QFont)),
|
||||||
proto_tree_, SLOT(setMonospaceFont(QFont)));
|
proto_tree_, SLOT(setMonospaceFont(QFont)));
|
||||||
|
|
||||||
|
connectFileMenuActions();
|
||||||
connectEditMenuActions();
|
connectEditMenuActions();
|
||||||
|
|
||||||
connect(main_ui_->actionAnalyzeFollowTCPStream, &QAction::triggered, this,
|
connect(main_ui_->actionAnalyzeFollowTCPStream, &QAction::triggered, this,
|
||||||
|
|
|
@ -411,29 +411,12 @@ private slots:
|
||||||
// We might want move these to main_window_actions.cpp similar to
|
// We might want move these to main_window_actions.cpp similar to
|
||||||
// gtk/main_menubar.c
|
// gtk/main_menubar.c
|
||||||
|
|
||||||
void on_actionFileOpen_triggered();
|
void connectFileMenuActions();
|
||||||
void on_actionFileMerge_triggered();
|
void exportPacketBytes();
|
||||||
void on_actionFileImportFromHexDump_triggered();
|
void exportPDU();
|
||||||
void on_actionFileClose_triggered();
|
void stripPacketHeaders();
|
||||||
void on_actionFileSave_triggered();
|
void exportTLSSessionKeys();
|
||||||
void on_actionFileSaveAs_triggered();
|
void printFile();
|
||||||
void on_actionFileSetListFiles_triggered();
|
|
||||||
void on_actionFileSetNextFile_triggered();
|
|
||||||
void on_actionFileSetPreviousFile_triggered();
|
|
||||||
void on_actionFileExportPackets_triggered();
|
|
||||||
void on_actionFileExportAsPlainText_triggered();
|
|
||||||
// We're dropping PostScript exports
|
|
||||||
void on_actionFileExportAsCSV_triggered();
|
|
||||||
void on_actionFileExportAsCArrays_triggered();
|
|
||||||
void on_actionFileExportAsPSML_triggered();
|
|
||||||
void on_actionFileExportAsPDML_triggered();
|
|
||||||
void on_actionFileExportAsJSON_triggered();
|
|
||||||
void on_actionFileExportPacketBytes_triggered();
|
|
||||||
void on_actionFilePrint_triggered();
|
|
||||||
|
|
||||||
void on_actionFileExportPDU_triggered();
|
|
||||||
void on_actionFileStripHeaders_triggered();
|
|
||||||
void on_actionFileExportTLSSessionKeys_triggered();
|
|
||||||
|
|
||||||
void connectEditMenuActions();
|
void connectEditMenuActions();
|
||||||
void copySelectedItems(WiresharkMainWindow::CopySelected selection_type);
|
void copySelectedItems(WiresharkMainWindow::CopySelected selection_type);
|
||||||
|
|
|
@ -1770,98 +1770,89 @@ void WiresharkMainWindow::softwareUpdateRequested() {
|
||||||
|
|
||||||
// File Menu
|
// File Menu
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileOpen_triggered()
|
void WiresharkMainWindow::connectFileMenuActions()
|
||||||
{
|
{
|
||||||
openCaptureFile();
|
connect(main_ui_->actionFileOpen, &QAction::triggered, this,
|
||||||
}
|
[this]() { openCaptureFile(); });
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileMerge_triggered()
|
connect(main_ui_->actionFileMerge, &QAction::triggered, this,
|
||||||
{
|
[this]() { mergeCaptureFile(); });
|
||||||
mergeCaptureFile();
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileImportFromHexDump_triggered()
|
connect(main_ui_->actionFileImportFromHexDump, &QAction::triggered, this,
|
||||||
{
|
[this]() { importCaptureFile(); });
|
||||||
importCaptureFile();
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileClose_triggered() {
|
connect(main_ui_->actionFileClose, &QAction::triggered, this, [this]() {
|
||||||
QString before_what(tr(" before closing the file"));
|
QString before_what(tr(" before closing the file"));
|
||||||
if (testCaptureFileClose(before_what))
|
if (testCaptureFileClose(before_what)) {
|
||||||
showWelcome();
|
showWelcome();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileSave_triggered()
|
connect(main_ui_->actionFileSave, &QAction::triggered, this,
|
||||||
{
|
[this]() { saveCaptureFile(capture_file_.capFile(), false); });
|
||||||
saveCaptureFile(capture_file_.capFile(), false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileSaveAs_triggered()
|
connect(main_ui_->actionFileSaveAs, &QAction::triggered, this,
|
||||||
{
|
[this]() { saveAsCaptureFile(capture_file_.capFile()); });
|
||||||
saveAsCaptureFile(capture_file_.capFile());
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileSetListFiles_triggered()
|
connect(main_ui_->actionFileSetListFiles, &QAction::triggered, this,
|
||||||
{
|
[this]() { file_set_dialog_->show(); });
|
||||||
file_set_dialog_->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileSetNextFile_triggered()
|
connect(main_ui_->actionFileSetNextFile, &QAction::triggered, this, [this]() {
|
||||||
{
|
|
||||||
fileset_entry *entry = fileset_get_next();
|
fileset_entry *entry = fileset_get_next();
|
||||||
|
|
||||||
if (entry) {
|
if (entry) {
|
||||||
QString new_cf_path = entry->fullname;
|
QString new_cf_path = entry->fullname;
|
||||||
openCaptureFile(new_cf_path);
|
openCaptureFile(new_cf_path);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileSetPreviousFile_triggered()
|
connect(main_ui_->actionFileSetPreviousFile, &QAction::triggered, this, [this]() {
|
||||||
{
|
|
||||||
fileset_entry *entry = fileset_get_previous();
|
fileset_entry *entry = fileset_get_previous();
|
||||||
|
|
||||||
if (entry) {
|
if (entry) {
|
||||||
QString new_cf_path = entry->fullname;
|
QString new_cf_path = entry->fullname;
|
||||||
openCaptureFile(new_cf_path);
|
openCaptureFile(new_cf_path);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportPackets, &QAction::triggered, this,
|
||||||
|
[this]() { exportSelectedPackets(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsPlainText, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_text); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsCSV, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_csv); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsCArrays, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_carrays); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsPSML, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_psml); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsPDML, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_pdml); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportAsJSON, &QAction::triggered, this,
|
||||||
|
[this]() { exportDissections(export_type_json); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportPacketBytes, &QAction::triggered, this,
|
||||||
|
[this]() { exportPacketBytes(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportPDU, &QAction::triggered, this,
|
||||||
|
[this]() { exportPDU(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileStripHeaders, &QAction::triggered, this,
|
||||||
|
[this]() { stripPacketHeaders(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFileExportTLSSessionKeys, &QAction::triggered, this,
|
||||||
|
[this]() { exportTLSSessionKeys(); });
|
||||||
|
|
||||||
|
connect(main_ui_->actionFilePrint, &QAction::triggered, this,
|
||||||
|
[this]() { printFile(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportPackets_triggered()
|
void WiresharkMainWindow::exportPacketBytes()
|
||||||
{
|
|
||||||
exportSelectedPackets();
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportAsPlainText_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_text);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportAsCSV_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_csv);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportAsCArrays_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_carrays);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportAsPSML_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_psml);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportAsPDML_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_pdml);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportAsJSON_triggered()
|
|
||||||
{
|
|
||||||
exportDissections(export_type_json);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportPacketBytes_triggered()
|
|
||||||
{
|
{
|
||||||
QString file_name;
|
QString file_name;
|
||||||
|
|
||||||
|
@ -1885,14 +1876,7 @@ void WiresharkMainWindow::on_actionFileExportPacketBytes_triggered()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionAnalyzeShowPacketBytes_triggered()
|
void WiresharkMainWindow::exportPDU()
|
||||||
{
|
|
||||||
ShowPacketBytesDialog *spbd = new ShowPacketBytesDialog(*this, capture_file_);
|
|
||||||
spbd->addCodecs(text_codec_map_);
|
|
||||||
spbd->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportPDU_triggered()
|
|
||||||
{
|
{
|
||||||
ExportPDUDialog *exportpdu_dialog = new ExportPDUDialog(this);
|
ExportPDUDialog *exportpdu_dialog = new ExportPDUDialog(this);
|
||||||
|
|
||||||
|
@ -1909,7 +1893,7 @@ void WiresharkMainWindow::on_actionFileExportPDU_triggered()
|
||||||
exportpdu_dialog->activateWindow();
|
exportpdu_dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileStripHeaders_triggered()
|
void WiresharkMainWindow::stripPacketHeaders()
|
||||||
{
|
{
|
||||||
StripHeadersDialog *stripheaders_dialog = new StripHeadersDialog(this);
|
StripHeadersDialog *stripheaders_dialog = new StripHeadersDialog(this);
|
||||||
|
|
||||||
|
@ -1927,7 +1911,7 @@ void WiresharkMainWindow::on_actionFileStripHeaders_triggered()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFileExportTLSSessionKeys_triggered()
|
void WiresharkMainWindow::exportTLSSessionKeys()
|
||||||
{
|
{
|
||||||
QString file_name;
|
QString file_name;
|
||||||
QString save_title;
|
QString save_title;
|
||||||
|
@ -1963,12 +1947,7 @@ void WiresharkMainWindow::on_actionFileExportTLSSessionKeys_triggered()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionStatisticsHpfeeds_triggered()
|
void WiresharkMainWindow::printFile()
|
||||||
{
|
|
||||||
openStatisticsTreeDialog("hpfeeds");
|
|
||||||
}
|
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionFilePrint_triggered()
|
|
||||||
{
|
{
|
||||||
capture_file *cf = capture_file_.capFile();
|
capture_file *cf = capture_file_.capFile();
|
||||||
g_return_if_fail(cf);
|
g_return_if_fail(cf);
|
||||||
|
@ -3028,6 +3007,13 @@ void WiresharkMainWindow::statCommandExpertInfo(const char *, void *)
|
||||||
expert_dialog->show();
|
expert_dialog->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WiresharkMainWindow::on_actionAnalyzeShowPacketBytes_triggered()
|
||||||
|
{
|
||||||
|
ShowPacketBytesDialog *spbd = new ShowPacketBytesDialog(*this, capture_file_);
|
||||||
|
spbd->addCodecs(text_codec_map_);
|
||||||
|
spbd->show();
|
||||||
|
}
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionAnalyzeExpertInfo_triggered()
|
void WiresharkMainWindow::on_actionAnalyzeExpertInfo_triggered()
|
||||||
{
|
{
|
||||||
statCommandExpertInfo(NULL, NULL);
|
statCommandExpertInfo(NULL, NULL);
|
||||||
|
@ -3247,6 +3233,11 @@ void WiresharkMainWindow::on_actionStatisticsHART_IP_triggered()
|
||||||
openStatisticsTreeDialog("hart_ip");
|
openStatisticsTreeDialog("hart_ip");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WiresharkMainWindow::on_actionStatisticsHpfeeds_triggered()
|
||||||
|
{
|
||||||
|
openStatisticsTreeDialog("hpfeeds");
|
||||||
|
}
|
||||||
|
|
||||||
void WiresharkMainWindow::on_actionStatisticsHTTPPacketCounter_triggered()
|
void WiresharkMainWindow::on_actionStatisticsHTTPPacketCounter_triggered()
|
||||||
{
|
{
|
||||||
openStatisticsTreeDialog("http");
|
openStatisticsTreeDialog("http");
|
||||||
|
|
Loading…
Reference in New Issue