mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-22 20:17:46 +00:00
This will eventually use more KStandardAction, and gets rid of our custom code which is just doing a worse job than KXmlGui.
39 lines
No EOL
864 B
C++
39 lines
No EOL
864 B
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <KXmlGuiWindow>
|
|
#include <QMap>
|
|
#include <QMdiArea>
|
|
#include <QNetworkAccessManager>
|
|
#include <QTreeWidget>
|
|
|
|
#include "filecache.h"
|
|
#include "filetreewindow.h"
|
|
#include "hashdatabase.h"
|
|
|
|
#include <QLabel>
|
|
|
|
struct GameData;
|
|
|
|
class MainWindow : public KXmlGuiWindow
|
|
{
|
|
public:
|
|
MainWindow(const QString &gamePath, GameData *data);
|
|
|
|
private:
|
|
void setupActions();
|
|
|
|
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);
|
|
}; |