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;
47 void attach(QTreeView *tree, QStandardItemModel *model);
49 void configureColumns()
const;
65 void onCurrentItemChanged(
const QModelIndex ¤t,
const QModelIndex &previous);
66 void onItemDoubleClicked(
const QModelIndex &index);
67 void showContextMenu(
const QPoint &pos);
71 QTreeView *tree_ =
nullptr;
72 QStandardItemModel *model_ =
nullptr;
73 int selectionLevel_ = 0;
Top-level dialog hosting the Lua debugger UI components.
Definition lua_debugger_dialog.h:165
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:62
int selectionLevel() const
Stack frame index whose locals/upvalues currently drive the Variables and Watch panels (0 = topmost /...
Definition lua_debugger_stack.h:57
Column indices for the Stack Trace tree model.
Definition lua_debugger_stack.h:30