10#ifndef DISPLAY_FILTER_ENTRY_H
11#define DISPLAY_FILTER_ENTRY_H
18class QContextMenuEvent;
36class DisplayFilterEntry :
public FilterExpressionEdit
41 explicit DisplayFilterEntry(QWidget *parent =
nullptr);
76 void dragEnterEvent(QDragEnterEvent *
event)
override;
77 void dragMoveEvent(QDragMoveEvent *
event)
override;
78 void dropEvent(QDropEvent *
event)
override;
79 void contextMenuEvent(QContextMenuEvent *
event)
override;
81 void updateTranslations()
override;
84 void connectToMainWindow();
86 void createFilterTextDropMenu(QDropEvent *
event,
bool prepare, QString filterText = QString());
87 void displayFilterExpression();
89 QString last_applied_;
void popFilterSyntaxStatus()
Pop the filter-syntax message from the status bar.
void filterPackets(QString new_filter, bool force)
Request applying new_filter to the packet list.
void applyDisplayFilter()
Applies the current expression (explicit apply).
Definition display_filter_entry.cpp:147
void pushFilterSyntaxStatus(const QString &msg)
Push a filter-syntax message to the status bar.
void setDisplayFilter(QString filter)
Sets the field text and focuses it (programmatic filter entry).
Definition display_filter_entry.cpp:141
void recheck()
Re-validates the current text (e.g. on preferences change).
Definition display_filter_entry.cpp:136
bool checkDisplayFilter()
Validates the current expression.
Definition display_filter_entry.cpp:152
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:158
void showPreferencesDialog(QString pane_name)
Request showing a preferences pane.
SyntaxState
Visual/semantic state of the current text, mapped from the validator.
Definition filter_edit.h:48
SyntaxState state() const
Current syntax state.
Definition filter_edit.h:61
bool event(QEvent *event) override
Re-syncs the inline insets once the style sheet has been applied.
Definition filter_expression_edit.cpp:607