mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 04:27:45 +00:00
The path list is now refreshed when importing too, which makes it even easier to get started.
35 lines
No EOL
772 B
C++
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);
|
|
}; |