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