blob: adcee8c70f8ee2285e96624e16d51bf62449e5c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/** @file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef DISSECTOR_SYNTAX_LINEEDIT_H
#define DISSECTOR_SYNTAX_LINEEDIT_H
#include <ui/qt/widgets/syntax_line_edit.h>
class QEvent;
class StockIconToolButton;
class DissectorSyntaxLineEdit : public SyntaxLineEdit
{
Q_OBJECT
public:
explicit DissectorSyntaxLineEdit(QWidget *parent = 0);
protected:
void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
private slots:
void checkDissectorName(const QString &dissector);
void changeEvent(QEvent* event);
private:
QString placeholder_text_;
void setDefaultPlaceholderText();
void buildCompletionList(const QString &field_word, const QString &preamble);
};
#endif // DISSECTOR_SYNTAX_LINEEDIT_H
|