1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 04:27:45 +00:00
novus/apps/sagasu/include/filetreewindow.h

32 lines
773 B
C
Raw Normal View History

// 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"
2023-10-10 18:02:13 -04:00
class FileTreeWindow : public QWidget
{
Q_OBJECT
2023-10-12 23:45:49 -04:00
public:
explicit FileTreeWindow(HashDatabase &database, const QString &gamePath, GameData *data, QWidget *parent = nullptr);
void refreshModel();
2023-09-26 00:37:55 -04:00
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;
};