10#ifndef DISPLAYFILTEREDIT_H
11#define DISPLAYFILTEREDIT_H
14#include <QActionGroup>
151 void changeEvent(QEvent*
event)
override;
156 void displayFilterExpression();
176 void showExpressionPrefs();
181 void applyOrPrepareFilter();
186 void triggerAlignementAction();
191 void connectToMainWindow();
198 QString placeholder_text_;
201 QAction *save_action_;
204 QAction *remove_action_;
207 QActionGroup * actions_;
210 QPointer<StockIconToolButton> bookmark_button_;
213 QPointer<StockIconToolButton> clear_button_;
216 QPointer<StockIconToolButton> apply_button_;
219 bool leftAlignActions_;
222 QString last_applied_;
225 QString filter_word_preamble_;
228 bool autocomplete_accepts_field_;
231 QString style_sheet_;
236 void setDefaultPlaceholderText();
243 void buildCompletionList(
const QString &field_word,
const QString &preamble)
override;
251 void createFilterTextDropMenu(QDropEvent *
event,
bool prepare, QString filterText = QString());
256 void alignActionButtons();
261 void updateClearButton();
void setType(DisplayFilterEditType type)
Sets the type of the display filter edit widget.
Definition display_filter_edit.cpp:97
void showPreferencesDialog(QString pane_name)
Signal emitted to request displaying the preferences dialog.
virtual void contextMenuEvent(QContextMenuEvent *menu) override
Handles context menu events to display appropriate actions.
Definition display_filter_edit.cpp:160
void keyPressEvent(QKeyEvent *event) override
Handles key press events and forwards them to the completion logic.
Definition display_filter_edit.h:68
void updateBookmarkMenu()
Updates the bookmark menu with current saved filters.
Definition display_filter_edit.cpp:456
DisplayFilterEdit(QWidget *parent=0, DisplayFilterEditType type=DisplayFilterToEnter)
Constructs a new DisplayFilterEdit widget.
Definition display_filter_edit.cpp:62
virtual void dropEvent(QDropEvent *event) override
Handles drop events containing filter data.
Definition display_filter_edit.cpp:831
bool checkFilter()
Validates the syntax of the current display filter.
Definition display_filter_edit.cpp:359
void setStyleSheet(const QString &style_sheet)
Sets the widget's style sheet.
Definition display_filter_edit.cpp:643
void resizeEvent(QResizeEvent *) override
Handles resize events for the widget.
Definition display_filter_edit.cpp:345
virtual void dragMoveEvent(QDragMoveEvent *event) override
Handles drag move events for visual feedback.
Definition display_filter_edit.cpp:812
void popFilterSyntaxStatus()
Signal emitted to pop (remove) the last filter syntax status message.
void applyDisplayFilter()
Applies the currently entered display filter.
Definition display_filter_edit.cpp:659
void focusOutEvent(QFocusEvent *event) override
Handles focus out events for the widget.
Definition display_filter_edit.cpp:350
virtual void dragEnterEvent(QDragEnterEvent *event) override
Handles drag enter events to accept valid drops.
Definition display_filter_edit.cpp:793
void focusInEvent(QFocusEvent *event) override
Handles focus in events and forwards them to the completion logic.
Definition display_filter_edit.h:74
void filterPackets(QString new_filter, bool force)
Signal emitted to request packet filtering with a new filter string.
void paintEvent(QPaintEvent *evt) override
Handles paint events for the widget.
Definition display_filter_edit.cpp:293
void pushFilterSyntaxStatus(const QString &msg)
Signal emitted to push a status message regarding filter syntax.
void displayFilterSuccess(bool success)
Updates the UI state indicating whether the display filter was successfully applied.
Definition display_filter_edit.cpp:713
SyntaxLineEdit(QWidget *parent=0)
Constructs the SyntaxLineEdit in the Empty state with no completer.
Definition syntax_line_edit.cpp:37
void completionKeyPressEvent(QKeyEvent *event)
Handles key press events while the completer popup is visible, forwarding navigation keys to the popu...
Definition syntax_line_edit.cpp:336
void completionFocusInEvent(QFocusEvent *event)
Triggers a completion refresh when the widget gains focus.
Definition syntax_line_edit.cpp:384
virtual bool event(QEvent *event) override
Intercepts Tab and other keys to trigger or dismiss the completer.
Definition syntax_line_edit.cpp:299
DisplayFilterEditType
Specifies how a filter or column expression entered in the filter edit widget should be handled.
Definition display_filter_edit.h:25
@ ReadFilterToApply
Definition display_filter_edit.h:28
@ CustomColumnToEnter
Definition display_filter_edit.h:29
@ DisplayFilterToApply
Definition display_filter_edit.h:26
@ DisplayFilterToEnter
Definition display_filter_edit.h:27