1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-26 13:47:46 +00:00
novus/mdlviewer/include/mainwindow.h
Joshua Goins 47d612eb8f Add file cache and concurrent item loading to speed up mdlviewer
Instead of extracting item sheets one at a time, it's now done on
multiple threads. Loading gear is now faster since reused files are
cached, switching between races is still wasteful, but it's a good
enough improvement for now.
2023-07-09 10:54:27 -04:00

26 lines
No EOL
476 B
C++

#pragma once
#include <QComboBox>
#include <QMainWindow>
#include <fmt/format.h>
#include <physis.hpp>
#include <unordered_map>
#include "fullmodelviewer.h"
#include "gearview.h"
#include "singlegearview.h"
struct GameData;
class FileCache;
class MainWindow : public QMainWindow {
public:
explicit MainWindow(GameData* data);
private:
SingleGearView* gearView = nullptr;
FullModelViewer* fullModelViewer = nullptr;
GameData& data;
FileCache cache;
};