| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet_range_group_box.h
Go to the documentation of this file.
1
9
10#ifndef PACKET_RANGE_GROUP_BOX_H
11#define PACKET_RANGE_GROUP_BOX_H
12
13#include <config.h>
14
15#include <ui/packet_range.h>
16
17#include <ui/qt/widgets/syntax_line_edit.h>
18#include <QGroupBox>
19
20 namespace Ui {
21 class PacketRangeGroupBox;
22}
23
28 class PacketRangeGroupBox : public QGroupBox
29{
30 Q_OBJECT
31
32 public:
37 explicit PacketRangeGroupBox(QWidget *parent = 0);
38
42 ~PacketRangeGroupBox();
43
49 void initRange(packet_range_t *range, QString selRange = QString());
50
55 bool isValid();
56
57signals:
62 void validityChanged(bool is_valid);
63
67 void rangeChanged();
68
69 private:
73 void updateCounts();
74
80 void processButtonToggled(bool checked, packet_range_e process);
81
83 Ui::PacketRangeGroupBox *pr_ui_;
84
86 packet_range_t *range_;
87
89 SyntaxLineEdit::SyntaxState syntax_state_;
90
91 private slots:
96 void on_rangeLineEdit_textChanged(const QString &range_str);
97
102 void on_allButton_toggled(bool checked);
103
108 void on_selectedButton_toggled(bool checked);
109
114 void on_markedButton_toggled(bool checked);
115
120 void on_ftlMarkedButton_toggled(bool checked);
121
126 void on_rangeButton_toggled(bool checked);
127
132 void on_capturedButton_toggled(bool checked);
133
138 void on_displayedButton_toggled(bool checked);
139
144 void on_ignoredCheckBox_toggled(bool checked);
145
150 void on_dependedCheckBox_toggled(bool checked);
151};
152
153#endif // PACKET_RANGE_GROUP_BOX_H
PacketRangeGroupBox::~PacketRangeGroupBox
~PacketRangeGroupBox()
Destroys the PacketRangeGroupBox object.
Definition packet_range_group_box.cpp:27
PacketRangeGroupBox::PacketRangeGroupBox
PacketRangeGroupBox(QWidget *parent=0)
Constructs a new PacketRangeGroupBox object.
Definition packet_range_group_box.cpp:14
PacketRangeGroupBox::initRange
void initRange(packet_range_t *range, QString selRange=QString())
Initializes the packet range and selection string.
Definition packet_range_group_box.cpp:32
PacketRangeGroupBox::validityChanged
void validityChanged(bool is_valid)
Signal emitted when the validity of the range changes.
PacketRangeGroupBox::isValid
bool isValid()
Checks if the current range selection is valid.
Definition packet_range_group_box.cpp:62
PacketRangeGroupBox::rangeChanged
void rangeChanged()
Signal emitted when the range selection changes.
SyntaxLineEdit::SyntaxState
SyntaxState
Visual and semantic state of the text currently in the editor.
Definition syntax_line_edit.h:43
packet_range.h
packet_range_t
struct packet_range_tag packet_range_t
Fully describes a packet range selection, including UI settings, derived counts, and dependency sets ...
packet_range_e
packet_range_e
Selects which subset of packets in a capture file should be processed.
Definition packet_range.h:34
syntax_line_edit.h