source: s10k/Vago/utilvago.h@ 1170

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

Vago 1.4a

File size: 2.0 KB
RevLine 
[1047]1#ifndef UTILVAGO_H
2#define UTILVAGO_H
3
[1093]4#include <util.h>
5#include <cpp17optional/optional.hpp>
6#include <plog/Log.h>
7#include <plog/Converters/NativeEOLConverter.h>
[1047]8
[1093]9#include <QDateTime>
10
[1047]11namespace GlobalVars{
12
[1098]13const QString AppVersion="1.4a";
[1093]14const QString LastCompatibleVersion = "1.4";
[1047]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";
[1058]31const QString BuiltXmlToolsVersion="2.0c";
[1047]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();
[1093]52void showAndLogWarningPopUp(const QString &message);
[1054]53void showWarningPopUpLogButton(const QString &message);
[1093]54void showAndLogWarningPopUpLogButton(const QString &message);
55void showAndLogErrorPopUp(const QString &message);
[1047]56void showErrorPopUpLogButton(const QString &message);
[1093]57void showAndLogErrorPopUpLogButton(const QString &message);
[1047]58QString getOSIndependentAppPath();
59QString getAppPath();
[1052]60QString getOniSplitExecutableAbsolutePath();
61QString getXmlToolsExecutableAbsolutePath();
62QString getOniSplitExecutable();
63QString getXmlToolsExecutable();
[1047]64#ifdef Q_OS_MAC
65QString getMonoExecutablePath();
66#endif
[1093]67QString getDateTimeFormatForFilename(const QDateTime &currentDateTime);
[1047]68}
69
70#endif // UTILVAGO_H
Note: See TracBrowser for help on using the repository browser.