forked from osmocom/wireshark
![John Thacker](/assets/img/avatar_default.png)
Add a checkbox to the packet format group box to allow the hexdump to only have the main frame instead of secondary data sources as well, so that Print and Export Packet Dissections can be used for input to text2pcap.
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/** @file
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
|
|
#ifndef PACKET_FORMAT_GROUP_BOX_H
|
|
#define PACKET_FORMAT_GROUP_BOX_H
|
|
|
|
#include <QGroupBox>
|
|
|
|
namespace Ui {
|
|
class PacketFormatGroupBox;
|
|
}
|
|
|
|
class PacketFormatGroupBox : public QGroupBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PacketFormatGroupBox(QWidget *parent = 0);
|
|
~PacketFormatGroupBox();
|
|
|
|
bool summaryEnabled();
|
|
bool detailsEnabled();
|
|
bool bytesEnabled();
|
|
|
|
bool includeColumnHeadingsEnabled();
|
|
|
|
bool allCollapsedEnabled();
|
|
bool asDisplayedEnabled();
|
|
bool allExpandedEnabled();
|
|
|
|
uint getHexdumpOptions();
|
|
|
|
signals:
|
|
void formatChanged();
|
|
|
|
private slots:
|
|
void on_summaryCheckBox_toggled(bool checked);
|
|
void on_detailsCheckBox_toggled(bool checked);
|
|
void on_bytesCheckBox_toggled(bool checked);
|
|
|
|
void on_includeColumnHeadingsCheckBox_toggled(bool checked);
|
|
|
|
void on_allCollapsedButton_toggled(bool checked);
|
|
void on_asDisplayedButton_toggled(bool checked);
|
|
void on_allExpandedButton_toggled(bool checked);
|
|
|
|
void on_includeDataSourcesCheckBox_toggled(bool checked);
|
|
|
|
private:
|
|
Ui::PacketFormatGroupBox *pf_ui_;
|
|
};
|
|
|
|
#endif // PACKET_FORMAT_GROUP_BOX_H
|