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

40 lines
902 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 <QMap>
#include <QMdiArea>
#include <QNetworkAccessManager>
#include <QTreeWidget>
#include "filecache.h"
#include "filetreewindow.h"
#include "hashdatabase.h"
2023-10-10 18:22:38 -04:00
#include "novusmainwindow.h"
#include <QLabel>
struct GameData;
2023-10-10 18:22:38 -04:00
class MainWindow : public NovusMainWindow
2023-10-10 18:02:13 -04:00
{
public:
MainWindow(const QString &gamePath, GameData *data);
protected:
void setupFileMenu(QMenu *menu) override;
private:
GameData *data = nullptr;
QTabWidget *partHolder = nullptr;
FileCache fileCache;
HashDatabase m_database;
QNetworkAccessManager *m_mgr = nullptr;
FileTreeWindow *m_tree = nullptr;
QLabel *m_offsetLabel = nullptr;
QLabel *m_hashLabel = nullptr;
QLabel *m_fileTypeLabel = nullptr;
void refreshParts(const QString &path);
};