// SPDX-FileCopyrightText: 2023 Joshua Goins // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include #include #include "filetreemodel.h" class FileTreeWindow : public QWidget { Q_OBJECT public: explicit FileTreeWindow(HashDatabase &database, const QString &gamePath, GameData *data, QWidget *parent = nullptr); void refreshModel(); Q_SIGNALS: void extractFile(const QString &path); void pathSelected(const QString &path); private: GameData *data = nullptr; FileTreeModel *m_fileModel = nullptr; QSortFilterProxyModel *m_searchModel = nullptr; QCheckBox *m_unknownCheckbox = nullptr; QString m_gamePath; HashDatabase &m_database; };