Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
display_filter_combo.h
Go to the documentation of this file.
1
10#ifndef DISPLAY_FILTER_COMBO_H
11#define DISPLAY_FILTER_COMBO_H
12
13#include <QComboBox>
14#include <QList>
15
19class DisplayFilterCombo : public QComboBox
20{
21 Q_OBJECT
22public:
27 explicit DisplayFilterCombo(QWidget *parent = 0);
28
34 bool addRecentCapture(const char *filter);
35
40 void writeRecent(FILE *rf);
41
45 void updateStyleSheet();
46
47protected:
53 void rowsInserted(const QModelIndex&, int first, int last);
54
60 virtual bool event(QEvent *event);
61
62private:
63
64public slots:
69 bool checkDisplayFilter();
70
74 void applyDisplayFilter();
75
80 void setDisplayFilter(QString filter);
81
82private slots:
86 void updateMaxCount();
87
93 void filterApplied(QString filter, bool force);
94};
95
96#endif // DISPLAY_FILTER_COMBO_H
A combo box widget tailored for entering, evaluating, and storing display filters.
Definition display_filter_combo.h:20
void applyDisplayFilter()
Applies the currently entered display filter.
Definition display_filter_combo.cpp:177
virtual bool event(QEvent *event)
Handles general events directed to the combo box.
Definition display_filter_combo.cpp:139
bool addRecentCapture(const char *filter)
Adds a display filter to the list of recently used captures.
void writeRecent(FILE *rf)
Writes the list of recent display filters to a given file handle.
void rowsInserted(const QModelIndex &, int first, int last)
Handles the insertion of rows into the combo box's model.
Definition display_filter_combo.cpp:102
bool checkDisplayFilter()
Validates the syntax of the currently entered display filter.
Definition display_filter_combo.cpp:168
void setDisplayFilter(QString filter)
Sets the text of the display filter input.
Definition display_filter_combo.cpp:184
void updateStyleSheet()
Updates the widget's style sheet based on its current syntax validation state.
Definition display_filter_combo.cpp:163