10 #ifndef DISPLAYFILTEREDIT_H
11 #define DISPLAYFILTEREDIT_H
14 #include <QActionGroup>
25 } DisplayFilterEditType;
31 explicit DisplayFilterEdit(QWidget *parent = 0, DisplayFilterEditType type = DisplayFilterToEnter);
33 void enableBookmarks(
bool enabled);
36 void paintEvent(QPaintEvent *evt);
37 void resizeEvent(QResizeEvent *);
38 void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
39 void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
40 void focusOutEvent(QFocusEvent *event);
42 virtual void dragEnterEvent(QDragEnterEvent *event);
43 virtual void dragMoveEvent(QDragMoveEvent *event);
44 virtual void dropEvent(QDropEvent *event);
45 virtual void contextMenuEvent(QContextMenuEvent *menu);
49 void updateBookmarkMenu();
50 void applyDisplayFilter();
51 void displayFilterSuccess(
bool success);
52 void setStyleSheet(
const QString &style_sheet);
55 void checkFilter(
const QString &filter_text);
57 void changeEvent(QEvent* event);
59 void displayFilterExpression();
64 void showExpressionPrefs();
65 void applyOrPrepareFilter();
67 void triggerAlignementAction();
69 void connectToMainWindow();
72 DisplayFilterEditType type_;
73 QString placeholder_text_;
74 QAction *save_action_;
75 QAction *remove_action_;
76 QActionGroup * actions_;
80 bool leftAlignActions_;
81 QString last_applied_;
82 QString filter_word_preamble_;
83 bool autocomplete_accepts_field_;
85 bool bookmarks_enabled_;
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);
Definition: display_filter_edit.h:28
Definition: syntax_line_edit.h:23