10 #ifndef DISPLAYFILTEREDIT_H 11 #define DISPLAYFILTEREDIT_H 15 #include <ui/qt/widgets/syntax_line_edit.h> 24 } DisplayFilterEditType;
30 explicit DisplayFilterEdit(QWidget *parent = 0, DisplayFilterEditType type = DisplayFilterToEnter);
33 void paintEvent(QPaintEvent *evt);
34 void resizeEvent(QResizeEvent *);
35 void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
36 void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
37 void focusOutEvent(QFocusEvent *event);
39 virtual void dragEnterEvent(QDragEnterEvent *event);
40 virtual void dragMoveEvent(QDragMoveEvent *event);
41 virtual void dropEvent(QDropEvent *event);
45 void updateBookmarkMenu();
46 void applyDisplayFilter();
47 void displayFilterSuccess(
bool success);
50 void checkFilter(
const QString &filter_text);
52 void changeEvent(QEvent* event);
57 void showExpressionPrefs();
58 void applyOrPrepareFilter();
61 DisplayFilterEditType type_;
62 QString placeholder_text_;
63 QAction *save_action_;
64 QAction *remove_action_;
69 void setDefaultPlaceholderText();
70 void buildCompletionList(
const QString& field_word);
73 void pushFilterSyntaxStatus(
const QString&);
74 void popFilterSyntaxStatus();
75 void pushFilterSyntaxWarning(
const QString&);
76 void filterPackets(QString new_filter,
bool force);
77 void showPreferencesDialog(QString pane_name);
80 #endif // DISPLAYFILTEREDIT_H Definition: syntax_line_edit.h:22
Definition: display_filter_edit.h:26