1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-24 13:07:44 +00:00
novus/sagasu/include/filetreewindow.h
Joshua Goins 11a63345aa sagasu: Add support for importing path lists
This isn't finished yet, importing large lists is way too slow.
2024-02-02 14:25:32 -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);
Q_SIGNALS:
void extractFile(const QString &path);
void pathSelected(const QString &path);
private:
void refreshModel();
GameData *data = nullptr;
FileTreeModel *m_fileModel = nullptr;
QSortFilterProxyModel *m_searchModel = nullptr;
QCheckBox *m_unknownCheckbox = nullptr;
QString m_gamePath;
HashDatabase &m_database;
};