Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
dissector_syntax_line_edit.h
Go to the documentation of this file.
1
10#ifndef DISSECTOR_SYNTAX_LINEEDIT_H
11#define DISSECTOR_SYNTAX_LINEEDIT_H
12
14
15class QEvent;
17
22{
23 Q_OBJECT
24public:
29 explicit DissectorSyntaxLineEdit(QWidget *parent = 0);
30
35
40
41protected:
47
53
54public slots:
59 void checkDissectorName(const QString &dissector);
60
61private slots:
66 void changeEvent(QEvent* event);
67
68private:
70 QString placeholder_text_;
71
77 void buildCompletionList(const QString &field_word, const QString &preamble);
78};
79
80#endif // DISSECTOR_SYNTAX_LINEEDIT_H
A line edit widget that provides syntax validation and auto-completion for dissector names.
Definition dissector_syntax_line_edit.h:22
void focusInEvent(QFocusEvent *event)
Handles focus in events, forwarding them to the auto-completion logic.
Definition dissector_syntax_line_edit.h:52
void keyPressEvent(QKeyEvent *event)
Handles key press events, forwarding them to the auto-completion logic.
Definition dissector_syntax_line_edit.h:46
void updateDissectorNames()
Updates the internal list of available dissector names used for validation and completion.
Definition dissector_syntax_line_edit.cpp:46
void setDefaultPlaceholderText()
Sets the default placeholder text for the line edit widget.
Definition dissector_syntax_line_edit.cpp:58
void checkDissectorName(const QString &dissector)
Validates the syntax of the provided dissector name string.
Definition dissector_syntax_line_edit.cpp:65
A tool button that displays a stock icon.
Definition stock_icon_tool_button.h:19
QLineEdit subclass that adds syntax-state colouring, error messaging, and partial token-based autocom...
Definition syntax_line_edit.h:28
virtual bool event(QEvent *event)
Intercepts Tab and other keys to trigger or dismiss the completer.
Definition syntax_line_edit.cpp:295
void completionKeyPressEvent(QKeyEvent *event)
Handles key press events while the completer popup is visible, forwarding navigation keys to the popu...
Definition syntax_line_edit.cpp:333
void completionFocusInEvent(QFocusEvent *event)
Triggers a completion refresh when the widget gains focus.
Definition syntax_line_edit.cpp:381