1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 12:37:45 +00:00
novus/sagasu/include/filetreewindow.h
Joshua Goins 5d455c4ce0 sagasu: Allow downloading path lists directly from ResLogger
The path list is now refreshed when importing too, which makes it even
easier to get started.
2024-02-03 10:23:41 -05: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;
};