source: s10k/Vago/utilvago.h

Last change on this file was 1098, checked in by s10k, 7 years ago

Vago 1.4a

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