33 explicit DisplayFilterEdit(QWidget *parent = 0, DisplayFilterEditType type = DisplayFilterToEnter);
34 void setType(DisplayFilterEditType type);
37 void paintEvent(QPaintEvent *evt);
38 void resizeEvent(QResizeEvent *);
39 void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
40 void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
41 void focusOutEvent(QFocusEvent *event);
43 virtual void dragEnterEvent(QDragEnterEvent *event);
44 virtual void dragMoveEvent(QDragMoveEvent *event);
45 virtual void dropEvent(QDropEvent *event);
46 virtual void contextMenuEvent(QContextMenuEvent *menu);
50 void updateBookmarkMenu();
51 void applyDisplayFilter();
52 void displayFilterSuccess(
bool success);
53 void setStyleSheet(
const QString &style_sheet);
56 void checkFilter(
const QString &filter_text);
58 void changeEvent(QEvent* event);
60 void displayFilterExpression();
65 void showExpressionPrefs();
66 void applyOrPrepareFilter();
68 void triggerAlignementAction();
70 void connectToMainWindow();
73 DisplayFilterEditType type_;
74 QString placeholder_text_;
75 QAction *save_action_;
76 QAction *remove_action_;
77 QActionGroup * actions_;
78 QPointer<StockIconToolButton> bookmark_button_;
79 QPointer<StockIconToolButton> clear_button_;
80 QPointer<StockIconToolButton> apply_button_;
81 bool leftAlignActions_;
82 QString last_applied_;
83 QString filter_word_preamble_;
84 bool autocomplete_accepts_field_;
87 void setDefaultPlaceholderText();
88 void buildCompletionList(
const QString &field_word,
const QString &preamble);
90 void createFilterTextDropMenu(QDropEvent *event,
bool prepare, QString filterText = QString());
92 void alignActionButtons();
93 void updateClearButton();
96 void pushFilterSyntaxStatus(
const QString&);
97 void popFilterSyntaxStatus();
98 void filterPackets(QString new_filter,
bool force);
99 void showPreferencesDialog(QString pane_name);