1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 20:17:46 +00:00
novus/apps/sagasu/include/mainwindow.h
Joshua Goins 0cf37355cb Switch to KXmlGuiWindow
This will eventually use more KStandardAction, and gets rid of our
custom code which is just doing a worse job than KXmlGui.
2024-05-27 18:18:54 -04:00

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