Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
lua_debugger_evaluate.h
Go to the documentation of this file.
1/* lua_debugger_evaluate.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <[email protected]>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
15#ifndef LUA_DEBUGGER_EVALUATE_H
16#define LUA_DEBUGGER_EVALUATE_H
17
18#include <QObject>
19#include <QStringList>
20
22class QPlainTextEdit;
23class QPushButton;
24
29class LuaDebuggerEvalController : public QObject
30{
31 Q_OBJECT
32
33 public:
35
36 void attach(QPlainTextEdit *input, QPlainTextEdit *output, QPushButton *evalBtn, QPushButton *clearBtn);
37
38 void updatePanelState() const;
39
41 void appendOutputLines(const QStringList &lines);
42
43 public slots:
44 void onEvaluate();
45 void onEvalClear();
46
47 private:
48 LuaDebuggerDialog *host_ = nullptr;
49 QPlainTextEdit *input_ = nullptr;
50 QPlainTextEdit *output_ = nullptr;
51 QPushButton *evalBtn_ = nullptr;
52 QPushButton *clearBtn_ = nullptr;
53};
54
55#endif
Top-level dialog hosting the Lua debugger UI components.
Definition lua_debugger_dialog.h:165
Evaluate panel: enable/disable by pause state, run expressions, clear I/O, and append batched logpoin...
Definition lua_debugger_evaluate.h:30
void appendOutputLines(const QStringList &lines)
Append lines (e.g. logpoint drain) and scroll to the end.
Definition lua_debugger_evaluate.cpp:72
Definition tvbuff_lz77huff.c:32