15#ifndef LUA_DEBUGGER_FILES_H
16#define LUA_DEBUGGER_FILES_H
28class QStandardItemModel;
52 void attach(QTreeView *tree, QStandardItemModel *model);
104 QStandardItem *findChildItemByPath(QStandardItem *parent,
const QString &path)
const;
113 bool appendPathComponents(
const QString &absolute_path, QVector<QPair<QString, QString>> &components)
const;
119 QTreeView *tree_ =
nullptr;
122 QStandardItemModel *model_ =
nullptr;
Top-level dialog hosting the Lua debugger UI components.
Definition lua_debugger_dialog.h:189
Files panel: plugin/script indexing, hierarchical entries, open / reveal / copy gestures,...
Definition lua_debugger_files.h:36
void attach(QTreeView *tree, QStandardItemModel *model)
Binds the controller to the tree view and model, and loads stock icons ready for the first ensureEntr...
Definition lua_debugger_files.cpp:56
void showContextMenu(const QPoint &pos)
Displays a context menu offering open, reveal, and copy actions for the item under the cursor.
Definition lua_debugger_files.cpp:319
void scanScriptDirectory(const QString &dir_path)
Recursively walks dir_path and calls ensureEntry for every script file found.
Definition lua_debugger_files.cpp:125
void refreshAvailableScripts()
Rescans all known script locations and repopulates the model with up-to-date entries.
Definition lua_debugger_files.cpp:93
void onItemDoubleClicked(const QModelIndex &index)
Opens the script associated with the double-clicked item in the debugger editor.
Definition lua_debugger_files.cpp:301
bool ensureEntry(const QString &file_path)
Ensures a leaf row exists for file_path, creating intermediate folder rows as needed.
Definition lua_debugger_files.cpp:145
void sortModel()
Sorts column 0 after discrete inserts from callbacks.
Definition lua_debugger_files.cpp:85
void configureTreeChrome() const
Configures decorations, scrollbar, and header sizing (after widgets exist).
Definition lua_debugger_files.cpp:70