source: s10k/Vago/utilvago.h@ 1092

Last change on this file since 1092 was 1061, checked in by s10k, 8 years ago

Added Vago 1.3

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