Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | List of all members
LuaDebuggerEvalController Class Reference

Manages the debugger's eval panel: enabling/disabling controls based on pause state, executing Lua expressions, clearing I/O, and appending batched logpoint output lines. More...

#include <lua_debugger_evaluate.h>

Inheritance diagram for LuaDebuggerEvalController:

Public Slots

void onEvaluate ()
 Slot that reads the input expression and submits it to the Lua debugger for evaluation.
 
void onEvalClear ()
 Slot that clears both the input and output text fields.
 

Public Member Functions

 LuaDebuggerEvalController (LuaDebuggerDialog *host)
 Constructs the controller with a reference to the host dialog.
 
void attach (QPlainTextEdit *input, QPlainTextEdit *output, QPushButton *evalBtn, QPushButton *clearBtn)
 Binds the controller to the panel's UI widgets.
 
void updatePanelState () const
 Updates the enabled/disabled state of panel widgets based on the current debugger pause state.
 
void appendOutputLines (const QStringList &lines)
 Appends one or more lines to the output panel and scrolls to the end.
 

Detailed Description

Manages the debugger's eval panel: enabling/disabling controls based on pause state, executing Lua expressions, clearing I/O, and appending batched logpoint output lines.

Constructor & Destructor Documentation

◆ LuaDebuggerEvalController()

LuaDebuggerEvalController::LuaDebuggerEvalController ( LuaDebuggerDialog host)
explicit

Constructs the controller with a reference to the host dialog.

Parameters
hostThe owning LuaDebuggerDialog instance.

Member Function Documentation

◆ appendOutputLines()

void LuaDebuggerEvalController::appendOutputLines ( const QStringList &  lines)

Appends one or more lines to the output panel and scrolls to the end.

Parameters
linesThe lines to append, typically drained from a logpoint buffer.

◆ attach()

void LuaDebuggerEvalController::attach ( QPlainTextEdit *  input,
QPlainTextEdit *  output,
QPushButton *  evalBtn,
QPushButton *  clearBtn 
)

Binds the controller to the panel's UI widgets.

Parameters
inputThe text edit used for expression input.
outputThe text edit used to display evaluation results.
evalBtnThe button that triggers expression evaluation.
clearBtnThe button that clears the input and output fields.

The documentation for this class was generated from the following files: