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);
50 void setStyleSheet(
const QString &style_sheet);
53 void checkFilter(
const QString &filter_text);
55 void changeEvent(QEvent* event);
57 void displayFilterExpression();
62 void showExpressionPrefs();
63 void applyOrPrepareFilter();
65 void triggerAlignementAction();
67 void connectToMainWindow();
70 DisplayFilterEditType type_;
71 QString placeholder_text_;
72 QAction *save_action_;
73 QAction *remove_action_;
74 QActionGroup * actions_;
78 bool leftAlignActions_;
79 QString last_applied_;
80 QString filter_word_preamble_;
81 bool autocomplete_accepts_field_;
84 void setDefaultPlaceholderText();
85 void buildCompletionList(
const QString &field_word,
const QString &preamble);
87 void createFilterTextDropMenu(QDropEvent *event,
bool prepare, QString filterText = QString());
89 void alignActionButtons();
90 void updateClearButton();
93 void pushFilterSyntaxStatus(
const QString&);
94 void popFilterSyntaxStatus();
95 void filterPackets(QString new_filter,
bool force);
96 void showPreferencesDialog(QString pane_name);