mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 13:17:46 +00:00
This is similar to FFXIVExplorer, where you can view a list of known files in a nice tree view.
31 lines
No EOL
743 B
C++
31 lines
No EOL
743 B
C++
#pragma once
|
|
|
|
#include <QMainWindow>
|
|
#include <QMap>
|
|
#include <QTreeWidget>
|
|
|
|
struct PathPart {
|
|
uint32_t crcHash;
|
|
QMap<QString, PathPart> children;
|
|
};
|
|
|
|
class GameData;
|
|
|
|
class MainWindow : public QMainWindow {
|
|
public:
|
|
MainWindow(GameData& data);
|
|
|
|
private:
|
|
void addPath(QString path);
|
|
void addUnknownPath(QString knownDirectory, uint32_t crcHash);
|
|
void traversePart(QList<QString> tokens, PathPart& part, QString pathSoFar);
|
|
std::tuple<bool, QString> traverseUnknownPath(uint32_t crcHash, PathPart& part, QString pathSoFar);
|
|
|
|
QMap<QString, PathPart> rootParts;
|
|
|
|
GameData& data;
|
|
|
|
void addPaths(QTreeWidget *pWidget);
|
|
|
|
QTreeWidgetItem* addPartAndChildren(const QString& qString, const PathPart& part);
|
|
}; |