1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 20:47:45 +00:00
novus/apps/sagasu/include/mainwindow.h
Joshua Goins b6cc54405c Move applications to their own folder
To try to cut down the amount of top-level folders
2024-05-10 16:44:45 -04:00

35 lines
No EOL
772 B
C++

// 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"
#include "novusmainwindow.h"
struct GameData;
class MainWindow : public NovusMainWindow
{
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;
void refreshParts(const QString &path);
};