2022-08-28 23:28:36 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../Global.h"
|
|
|
|
|
2022-09-06 03:46:22 +02:00
|
|
|
#define VCMI_EDITOR_VERSION "0.1"
|
|
|
|
#define VCMI_EDITOR_NAME "VCMI Map Editor"
|
|
|
|
|
2022-08-28 23:28:36 +02:00
|
|
|
#include <QtWidgets>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QSet>
|
|
|
|
#include <QVector>
|
|
|
|
#include <QList>
|
|
|
|
#include <QString>
|
|
|
|
#include <QFile>
|
|
|
|
|
|
|
|
inline QString pathToQString(const boost::filesystem::path & path)
|
|
|
|
{
|
|
|
|
#ifdef VCMI_WINDOWS
|
|
|
|
return QString::fromStdWString(path.wstring());
|
|
|
|
#else
|
|
|
|
return QString::fromStdString(path.string());
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
inline boost::filesystem::path qstringToPath(const QString & path)
|
|
|
|
{
|
|
|
|
#ifdef VCMI_WINDOWS
|
|
|
|
return boost::filesystem::path(path.toStdWString());
|
|
|
|
#else
|
|
|
|
return boost::filesystem::path(path.toUtf8().data());
|
|
|
|
#endif
|
|
|
|
}
|