10 #ifndef DISPLAYFILTEREDIT_H
11 #define DISPLAYFILTEREDIT_H
14 #include <QActionGroup>
25 } DisplayFilterEditType;
31 explicit DisplayFilterEdit(QWidget *parent = 0, DisplayFilterEditType type = DisplayFilterToEnter);
34 void paintEvent(QPaintEvent *evt);
35 void resizeEvent(QResizeEvent *);
36 void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
37 void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
38 void focusOutEvent(QFocusEvent *event);
40 virtual void dragEnterEvent(QDragEnterEvent *event);
41 virtual void dragMoveEvent(QDragMoveEvent *event);
42 virtual void dropEvent(QDropEvent *event);
43 virtual void contextMenuEvent(QContextMenuEvent *menu);
47 void updateBookmarkMenu();
48 void applyDisplayFilter();
49 void displayFilterSuccess(
bool success);
52 void checkFilter(
const QString &filter_text);
54 void changeEvent(QEvent* event);
56 void displayFilterExpression();
61 void showExpressionPrefs();
62 void applyOrPrepareFilter();
64 void triggerAlignementAction();
66 void connectToMainWindow();
69 DisplayFilterEditType type_;
70 QString placeholder_text_;
71 QAction *save_action_;
72 QAction *remove_action_;
73 QActionGroup * actions_;
77 bool leftAlignActions_;
78 QString last_applied_;
79 QString filter_word_preamble_;
80 bool autocomplete_accepts_field_;
82 void setDefaultPlaceholderText();
83 void buildCompletionList(
const QString &field_word,
const QString &preamble);
85 void createFilterTextDropMenu(QDropEvent *event,
bool prepare, QString filterText = QString());
87 void alignActionButtons();
88 void updateClearButton();
91 void pushFilterSyntaxStatus(
const QString&);
92 void popFilterSyntaxStatus();
93 void filterPackets(QString new_filter,
bool force);
94 void showPreferencesDialog(QString pane_name);
Definition: display_filter_edit.h:28
Definition: syntax_line_edit.h:23