Add GUI support for saving in LZ4 format as well as gzip and uncompressed. Replace the current checkbox with a group box. The group box looks better alongside the packet range group box for Export Packet Dissections and would be appropriate to substitute into the Capture Options dialog in a later commit; a combobox might look more natural for the ordinary Save As window. Change the work to fix up the file extension a bit, so that it can switch between .gz and .lz4
42 lines
782 B
C++
42 lines
782 B
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 COMPRESSION_GROUP_BOX_H
|
|
#define COMPRESSION_GROUP_BOX_H
|
|
|
|
#include <config.h>
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <wiretap/wtap.h>
|
|
|
|
class QButtonGroup;
|
|
|
|
/**
|
|
* UI element for selecting compression type from among those supported.
|
|
*/
|
|
class CompressionGroupBox : public QGroupBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CompressionGroupBox(QWidget *parent = 0);
|
|
~CompressionGroupBox();
|
|
wtap_compression_type compressionType() const;
|
|
void setCompressionType(wtap_compression_type type);
|
|
|
|
signals:
|
|
void stateChanged();
|
|
|
|
private:
|
|
QButtonGroup *bg_;
|
|
};
|
|
|
|
#endif // COMPRESSION_GROUP_BOX_H
|