10#ifndef DISSECTOR_SYNTAX_LINEEDIT_H
11#define DISSECTOR_SYNTAX_LINEEDIT_H
66 void changeEvent(QEvent*
event);
70 QString placeholder_text_;
77 void buildCompletionList(
const QString &field_word,
const QString &preamble);
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
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