summaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/compression_group_box.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
commita86c5f7cae7ec9a3398300555a0b644689d946a1 (patch)
tree39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /ui/qt/widgets/compression_group_box.h
parentReleasing progress-linux version 4.2.6-1~progress7.99u1. (diff)
downloadwireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz
wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/widgets/compression_group_box.h')
-rw-r--r--ui/qt/widgets/compression_group_box.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/ui/qt/widgets/compression_group_box.h b/ui/qt/widgets/compression_group_box.h
new file mode 100644
index 00000000..4e70ca2d
--- /dev/null
+++ b/ui/qt/widgets/compression_group_box.h
@@ -0,0 +1,41 @@
+/** @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