| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
display_filter_entry.h
Go to the documentation of this file.
1
9
10#ifndef DISPLAY_FILTER_ENTRY_H
11#define DISPLAY_FILTER_ENTRY_H
12
13#include <ui/qt/widgets/filter_expression_edit.h>
14
15 class QDragEnterEvent;
16 class QDragMoveEvent;
17 class QDropEvent;
18 class QContextMenuEvent;
19
36 class DisplayFilterEntry : public FilterExpressionEdit
37{
38 Q_OBJECT
39
40 public:
41 explicit DisplayFilterEntry(QWidget *parent = nullptr);
42
43 public slots:
45 void recheck();
46
51 void displayFilterSuccess(bool success);
52
54 void setDisplayFilter(QString filter);
55
57 void applyDisplayFilter();
58
63 bool checkDisplayFilter();
64
65signals:
67 void pushFilterSyntaxStatus(const QString &msg);
69 void popFilterSyntaxStatus();
71 void filterPackets(QString new_filter, bool force);
73 void showPreferencesDialog(QString pane_name);
74
75 protected:
76 void dragEnterEvent(QDragEnterEvent *event) override;
77 void dragMoveEvent(QDragMoveEvent *event) override;
78 void dropEvent(QDropEvent *event) override;
79 void contextMenuEvent(QContextMenuEvent *event) override;
80
81 private:
82 void connectToMainWindow();
83 void updateStatus(SyntaxState state);
84 void createFilterTextDropMenu(QDropEvent *event, bool prepare, QString filterText = QString());
85 void displayFilterExpression();
86
87 QString last_applied_;
88};
89
90#endif // DISPLAY_FILTER_ENTRY_H
DisplayFilterEntry::popFilterSyntaxStatus
void popFilterSyntaxStatus()
Pop the filter-syntax message from the status bar.
DisplayFilterEntry::filterPackets
void filterPackets(QString new_filter, bool force)
Request applying new_filter to the packet list.
DisplayFilterEntry::applyDisplayFilter
void applyDisplayFilter()
Applies the current expression (explicit apply).
Definition display_filter_entry.cpp:150
DisplayFilterEntry::pushFilterSyntaxStatus
void pushFilterSyntaxStatus(const QString &msg)
Push a filter-syntax message to the status bar.
DisplayFilterEntry::setDisplayFilter
void setDisplayFilter(QString filter)
Sets the field text and focuses it (programmatic filter entry).
Definition display_filter_entry.cpp:144
DisplayFilterEntry::recheck
void recheck()
Re-validates the current text (e.g. on preferences change).
Definition display_filter_entry.cpp:139
DisplayFilterEntry::checkDisplayFilter
bool checkDisplayFilter()
Validates the current expression.
Definition display_filter_entry.cpp:155
DisplayFilterEntry::displayFilterSuccess
void displayFilterSuccess(bool success)
Reflects whether the last applied filter succeeded; keeps the apply action disabled while the field a...
Definition display_filter_entry.cpp:161
DisplayFilterEntry::showPreferencesDialog
void showPreferencesDialog(QString pane_name)
Request showing a preferences pane.
FilterEdit::SyntaxState
SyntaxState
Visual/semantic state of the current text, mapped from the validator.
Definition filter_edit.h:48
FilterEdit::state
SyntaxState state() const
Current syntax state.
Definition filter_edit.h:61
filter_expression_edit.h