2025-09-05 19:53:52 +00:00
|
|
|
#ifndef LOCALSTRINGVIEWER_H
|
|
|
|
|
#define LOCALSTRINGVIEWER_H
|
|
|
|
|
|
|
|
|
|
#include "xlocalizeentry.h"
|
|
|
|
|
#include "zonefile.h"
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class LocalStringViewer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LocalStringViewer : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit LocalStringViewer(QWidget *parent = nullptr);
|
|
|
|
|
~LocalStringViewer();
|
|
|
|
|
|
|
|
|
|
void SetVersion(quint32 aVersion);
|
|
|
|
|
void SetConfigPath(const QString aConfigPath);
|
|
|
|
|
void SetFileNotes(const QString aFileNotes);
|
|
|
|
|
void AddLocalString(XLocalizeEntry aLocalString);
|
|
|
|
|
void SetZoneFile(const ZoneFile *aZoneFile);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::LocalStringViewer *ui;
|
|
|
|
|
quint32 mVersion;
|
|
|
|
|
QString mConfigPath;
|
|
|
|
|
QString mFileNotes;
|
|
|
|
|
QVector<XLocalizeEntry> mLocalStrings;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // LOCALSTRINGVIEWER_H
|