2023-08-06 08:48:11 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-04-09 15:32:09 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QMdiSubWindow>
|
|
|
|
#include <physis.hpp>
|
|
|
|
|
2023-10-12 19:04:19 -04:00
|
|
|
#include "filetreemodel.h"
|
2023-04-09 15:32:09 -04:00
|
|
|
|
2023-10-10 18:02:13 -04:00
|
|
|
class FileTreeWindow : public QWidget
|
|
|
|
{
|
2023-04-09 15:32:09 -04:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2023-10-10 18:02:13 -04:00
|
|
|
explicit FileTreeWindow(GameData *data, QWidget *parent = nullptr);
|
2023-04-09 15:32:09 -04:00
|
|
|
|
2023-09-26 00:37:55 -04:00
|
|
|
Q_SIGNALS:
|
2023-10-12 19:04:19 -04:00
|
|
|
void extractFile(QString path);
|
2023-10-12 19:46:58 -04:00
|
|
|
void pathSelected(QString path);
|
2023-10-12 19:04:19 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
GameData *data = nullptr;
|
|
|
|
FileTreeModel *m_fileModel;
|
2023-04-09 15:32:09 -04:00
|
|
|
};
|