15#ifndef LUA_DEBUGGER_FILES_H
16#define LUA_DEBUGGER_FILES_H
28class QStandardItemModel;
42 void attach(QTreeView *tree, QStandardItemModel *model);
47 void refreshAvailableScripts();
49 void scanScriptDirectory(
const QString &dir_path);
58 void onItemDoubleClicked(
const QModelIndex &index);
59 void showContextMenu(
const QPoint &pos);
62 QStandardItem *findChildItemByPath(QStandardItem *parent,
const QString &path)
const;
63 bool appendPathComponents(
const QString &absolute_path, QVector<QPair<QString, QString>> &components)
const;
66 QTreeView *tree_ =
nullptr;
67 QStandardItemModel *model_ =
nullptr;
Top-level dialog hosting the Lua debugger UI components.
Definition lua_debugger_dialog.h:165
Files panel: plugin/script indexing, hierarchical entries, open / reveal / copy gestures,...
Definition lua_debugger_files.h:36
bool ensureEntry(const QString &file_path)
Definition lua_debugger_files.cpp:145
void sortModel()
Sort column 0 (after discrete inserts from callbacks).
Definition lua_debugger_files.cpp:85
void configureTreeChrome() const
Decorations, scrollbar, and header sizing (after widgets exist).
Definition lua_debugger_files.cpp:70