1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 04:27:45 +00:00
novus/sagasu/include/mainwindow.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

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);
};