Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet_range_group_box.h
Go to the documentation of this file.
1
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
18#include <QGroupBox>
19
20namespace Ui {
22}
23
28class PacketRangeGroupBox : public QGroupBox
29{
30 Q_OBJECT
31
32public:
37 explicit PacketRangeGroupBox(QWidget *parent = 0);
38
43
49 void initRange(packet_range_t *range, QString selRange = QString());
50
55 bool isValid();
56
57signals:
62 void validityChanged(bool is_valid);
63
68
69private:
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
91private 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
UI element for controlling a range selection. The range provided in "initRange" is not owned by this ...
Definition packet_range_group_box.h:29
~PacketRangeGroupBox()
Destroys the PacketRangeGroupBox object.
Definition packet_range_group_box.cpp:27
void initRange(packet_range_t *range, QString selRange=QString())
Initializes the packet range and selection string.
Definition packet_range_group_box.cpp:32
void validityChanged(bool is_valid)
Signal emitted when the validity of the range changes.
bool isValid()
Checks if the current range selection is valid.
Definition packet_range_group_box.cpp:62
void rangeChanged()
Signal emitted when the range selection changes.
SyntaxState
Visual and semantic state of the text currently in the editor.
Definition syntax_line_edit.h:43
packet_range_e
Selects which subset of packets in a capture file should be processed.
Definition packet_range.h:34
Fully describes a packet range selection, including UI settings, derived counts, and dependency sets ...
Definition packet_range.h:46