1 |
#ifndef UTILVAGO_H |
2 |
#define UTILVAGO_H |
3 |
|
4 |
#include <util.h> |
5 |
#include <cpp17optional/optional.hpp> |
6 |
#include <plog/Log.h> |
7 |
#include <plog/Converters/NativeEOLConverter.h> |
8 |
|
9 |
#include <QDateTime> |
10 |
|
11 |
namespace GlobalVars{ |
12 |
|
13 |
const QString AppVersion="1.4"; |
14 |
const QString LastCompatibleVersion = "1.4"; |
15 |
const QString ToolsFolder = "tools"; |
16 |
const QString OniSplitString="OniSplit.exe"; |
17 |
#ifdef Q_OS_WIN |
18 |
const QString XmlToolsString="XmlTools.exe"; |
19 |
#else |
20 |
const QString XmlToolsString="XmlTools"; |
21 |
#endif |
22 |
|
23 |
#ifdef Q_OS_WIN |
24 |
const QString OniExe="Oni.exe"; |
25 |
#else |
26 |
const QString OniExe="Oni.app/Contents/MacOS/Oni"; |
27 |
#endif |
28 |
|
29 |
const QString AppLogName="logVago.txt"; |
30 |
const QString BuiltOniSplitVersion="0.9.96.0"; |
31 |
const QString BuiltXmlToolsVersion="2.0c"; |
32 |
const QString ModsDomain="mods.oni2.net"; |
33 |
#ifdef Q_OS_WIN |
34 |
const QString VagoNode = "247"; |
35 |
#else |
36 |
const QString VagoNode = "277"; |
37 |
#endif |
38 |
const QString VagoCheckUpdatesUrl="http://"+ModsDomain+"/?q=api/node/"+VagoNode+".json"; |
39 |
const QString VagoWebUrl="http://"+ModsDomain+"/node/"+VagoNode; |
40 |
const QString VagoTemporaryDir=QDir::tempPath()+"/VagoTemp"; |
41 |
const QString HelpDir="help"; |
42 |
const int DefaultWindowWidth=800; |
43 |
const int DefaultWindowHeight=600; |
44 |
const char OniSplitProcSeparator=';'; |
45 |
} |
46 |
|
47 |
/** |
48 |
Utilities functions (Vago specific) |
49 |
**/ |
50 |
namespace UtilVago{ |
51 |
void openLogFile(); |
52 |
void showAndLogWarningPopUp(const QString &message); |
53 |
void showWarningPopUpLogButton(const QString &message); |
54 |
void showAndLogWarningPopUpLogButton(const QString &message); |
55 |
void showAndLogErrorPopUp(const QString &message); |
56 |
void showErrorPopUpLogButton(const QString &message); |
57 |
void showAndLogErrorPopUpLogButton(const QString &message); |
58 |
QString getOSIndependentAppPath(); |
59 |
QString getAppPath(); |
60 |
QString getOniSplitExecutableAbsolutePath(); |
61 |
QString getXmlToolsExecutableAbsolutePath(); |
62 |
QString getOniSplitExecutable(); |
63 |
QString getXmlToolsExecutable(); |
64 |
#ifdef Q_OS_MAC |
65 |
QString getMonoExecutablePath(); |
66 |
#endif |
67 |
QString getDateTimeFormatForFilename(const QDateTime ¤tDateTime); |
68 |
} |
69 |
|
70 |
#endif // UTILVAGO_H |