1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 20:17:46 +00:00
novus/apps/sagasu/include/filetreewindow.h
Joshua Goins b6cc54405c Move applications to their own folder
To try to cut down the amount of top-level folders
2024-05-10 16:44:45 -04:00

32 lines
No EOL
773 B
C++

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QCheckBox>
#include <QSortFilterProxyModel>
#include <physis.hpp>
#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;
};