15#ifndef LUA_DEBUGGER_STACK_H
16#define LUA_DEBUGGER_STACK_H
25class QStandardItemModel;
31constexpr int Function = 0;
32constexpr int Location = 1;
33constexpr int Count = 2;
56 void attach(QTreeView *tree, QStandardItemModel *model);
105 QTreeView *tree_ =
nullptr;
108 QStandardItemModel *model_ =
nullptr;
111 int selectionLevel_ = 0;
Top-level dialog hosting the Lua debugger UI components.
Definition lua_debugger_dialog.h:189
Stack trace panel: column layout, rebuild from the engine, selection → variables frame,...
Definition lua_debugger_stack.h:41
void updateFromEngine()
Rebuild rows from wslua_debugger_get_stack.
Definition lua_debugger_stack.cpp:58
void setSelectionLevel(int level)
Update the active stack frame index. Does not refresh anything; callers are expected to follow up wit...
Definition lua_debugger_stack.h:78
int selectionLevel() const
Stack frame index whose locals/upvalues currently drive the Variables and Watch panels (0 = topmost /...
Definition lua_debugger_stack.h:71
void attach(QTreeView *tree, QStandardItemModel *model)
Attaches the controller to the given tree view and model.
Definition lua_debugger_stack.cpp:36
void onCurrentItemChanged(const QModelIndex ¤t, const QModelIndex &previous)
Handles the event when the current item in the stack tree changes.
Definition lua_debugger_stack.cpp:153
void showContextMenu(const QPoint &pos)
Displays the context menu for the stack tree.
Definition lua_debugger_stack.cpp:206
void onItemDoubleClicked(const QModelIndex &index)
Handles the event when an item in the stack tree is double-clicked.
Definition lua_debugger_stack.cpp:178
void configureColumns() const
Configures the tree view columns for the stack trace panel.
Definition lua_debugger_stack.cpp:44
Column indices for the Stack Trace tree model.
Definition lua_debugger_stack.h:30