10 #ifndef CAPTURE_FILTER_EDIT_H
11 #define CAPTURE_FILTER_EDIT_H
14 #include <QToolButton>
15 #include <QActionGroup>
28 void setConflict(
bool conflict =
false);
32 static QPair<const QString, bool> getSelectedFilter();
35 void paintEvent(QPaintEvent *evt);
36 void resizeEvent(QResizeEvent *);
37 void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
38 void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
42 void updateBookmarkMenu();
49 void applyCaptureFilter();
50 void checkFilter(
const QString &filter);
51 void setFilterSyntaxState(QString filter,
int state, QString err_msg);
52 void bookmarkClicked();
57 bool field_name_only_;
58 bool enable_save_action_;
59 QString placeholder_text_;
60 QAction *save_action_;
61 QAction *remove_action_;
62 QActionGroup * actions_;
67 QThread *syntax_thread_;
69 void buildCompletionList(
const QString &primitive_word,
const QString &preamble);
72 void captureFilterSyntaxChanged(
bool valid);
73 void captureFilterChanged(
const QString filter);
75 void addBookmark(
const QString filter);
Definition: capture_filter_edit.h:23
Definition: capture_filter_syntax_worker.h:18
Definition: syntax_line_edit.h:23