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 <gerald@wireshark.org>
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
33public:
39
47 void attach(QPlainTextEdit *input, QPlainTextEdit *output, QPushButton *evalBtn, QPushButton *clearBtn);
48
52 void updatePanelState() const;
53
58 void appendOutputLines(const QStringList &lines);
59
60public slots:
64 void onEvaluate();
65
69 void onEvalClear();
70
71private:
73 LuaDebuggerDialog *host_ = nullptr;
74
76 QPlainTextEdit *input_ = nullptr;
77
79 QPlainTextEdit *output_ = nullptr;
80
82 QPushButton *evalBtn_ = nullptr;
83
85 QPushButton *clearBtn_ = nullptr;
86};
87
88#endif
Top-level dialog hosting the Lua debugger UI components.
Definition lua_debugger_dialog.h:189
Manages the debugger's eval panel: enabling/disabling controls based on pause state,...
Definition lua_debugger_evaluate.h:30
void attach(QPlainTextEdit *input, QPlainTextEdit *output, QPushButton *evalBtn, QPushButton *clearBtn)
Binds the controller to the panel's UI widgets.
Definition lua_debugger_evaluate.cpp:35
void updatePanelState() const
Updates the enabled/disabled state of panel widgets based on the current debugger pause state.
Definition lua_debugger_evaluate.cpp:46
void onEvaluate()
Slot that reads the input expression and submits it to the Lua debugger for evaluation.
Definition lua_debugger_evaluate.cpp:88
void appendOutputLines(const QStringList &lines)
Appends one or more lines to the output panel and scrolls to the end.
Definition lua_debugger_evaluate.cpp:72
void onEvalClear()
Slot that clears both the input and output text fields.
Definition lua_debugger_evaluate.cpp:133
Definition tvbuff_lz77huff.c:32