aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_format_group_box.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-10-12 23:40:29 +0000
committerGerald Combs <gerald@wireshark.org>2012-10-12 23:40:29 +0000
commitcfa22deaae3169b3bca9fd4cd9c564d391531bb0 (patch)
tree9ae2671a2c61b6a3bbf23e2f8097a6a34270f713 /ui/qt/packet_format_group_box.h
parentc91c1df500cc3950cc7a375aaae72f20ea0eb652 (diff)
Add a packet format group box, similar to the packet range group box.
Use it in the new "Export Packet Dissections" dialog. I'm omitting PostScript exports on purpose. If you *really* need that feature you can probably get better results than we produce using text + enscript or print-to-PDF + pdf2ps/pdftops or PSML/PDML + XSL + ... The Windows code is untested. I'll check in any needed fixes shortly. svn path=/trunk/; revision=45513
Diffstat (limited to 'ui/qt/packet_format_group_box.h')
-rw-r--r--ui/qt/packet_format_group_box.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/ui/qt/packet_format_group_box.h b/ui/qt/packet_format_group_box.h
new file mode 100644
index 0000000000..1aee9037ca
--- /dev/null
+++ b/ui/qt/packet_format_group_box.h
@@ -0,0 +1,41 @@
+#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 allCollapsedEnabled();
+ bool asDisplayedEnabled();
+ bool allExpandedEnabled();
+
+signals:
+ void formatChanged();
+
+private slots:
+ void on_detailsCheckBox_toggled(bool checked);
+ void on_summaryCheckBox_toggled(bool checked);
+ void on_bytesCheckBox_toggled(bool checked);
+ void on_allCollapsedButton_toggled(bool checked);
+ void on_asDisplayedButton_toggled(bool checked);
+ void on_allExpandedButton_toggled(bool checked);
+
+private:
+ Ui::PacketFormatGroupBox *pf_ui_;
+};
+
+#endif // PACKET_FORMAT_GROUP_BOX_H