WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
GlobalSettings.cpp
Go to the documentation of this file.
1
#include "
GlobalSettings.h
"
2
#include <sstream>
3
4
// if you need extra qualification on software version, move this to 1
5
# define _BETAVERSION 0
6
# define _ALPHAVERSION 1
7
#ifndef _BUILDNUMBER
8
#define _BUILDNUMBER 0
9
#endif
10
11
core::GlobalSettings
*
core::GlobalSettings::m_instance
=
nullptr
;
12
13
core::GlobalSettings::GlobalSettings
()
14
{
15
m_versionMajorNumber
= 0;
16
m_versionMinorNumber
= 11;
17
m_versionRevNumber
= 0;
18
19
m_appName
= L
"WoW Model Viewer"
;
20
m_buildName
= L
"Oribos"
;
21
22
/*
23
--==List of Build Name ideas==-- (Feel free to add!)
24
Bouncing Baracuda
25
Hoppin Jalapeno
26
Stealthed Rogue
27
Deadly Druid
28
Killer Krakken
29
Crazy Kaelthas
30
Lonely Mastiff
31
Cold Kelthuzad
32
Jiggly Jaina
33
Vashj's Folly
34
Epic Win
35
Epic Lose
36
Lord Kezzak
37
Perky Pug
38
Great-father Winter
39
40
--== Used Build Names ==-- (So we don't repeat...)
41
Wascally Wabbit
42
Gnome Punter
43
Fickle Felguard
44
Demented Deathwing
45
Pickled Herring
46
Windrunner's Lament
47
Lost Lich King
48
Skeer the Bloodseeker
49
Thrall's revenge
50
Trip in Draenor
51
Christmas Edition ;)
52
Archimonde will survive
53
Wain's edition
54
Bilgewhizzle
55
Oribos
56
*/
57
58
// platform
59
m_platform
= L
"Windows 64 bits"
;
60
61
#if _BETAVERSION > 0
62
m_isBetaVersion
=
true
;
63
#else
64
m_isBetaVersion
=
false
;
65
#endif
66
67
#if _ALPHAVERSION > 0
68
m_isAlphaVersion
=
true
;
69
#else
70
m_isAlphaVersion
=
false
;
71
#endif
72
73
bShowParticle
=
false
;
74
bZeroParticle
=
false
;
75
bInitPoseOnlyExport
=
false
;
76
}
77
78
core::GlobalSettings::~GlobalSettings
() =
default
;
79
80
std::wstring
core::GlobalSettings::appVersion
(std::wstring a_prefix)
81
{
82
std::wstring l_result = a_prefix;
83
std::wstringstream l_oss;
84
l_oss.precision(0);
85
86
l_oss << m_versionMajorNumber <<
"."
<< m_versionMinorNumber <<
"."
87
<< m_versionRevNumber <<
"."
<<
_BUILDNUMBER
;
88
l_result += l_oss.str();
89
90
return
l_result;
91
}
92
93
std::wstring
core::GlobalSettings::appName
()
94
{
95
return
m_appName;
96
}
97
98
std::wstring
core::GlobalSettings::buildName
()
99
{
100
return
m_buildName;
101
}
102
103
std::wstring
core::GlobalSettings::appTitle
()
104
{
105
std::wstring title = appName() + appVersion(std::wstring(L
" v"
)) + L
" "
+ m_platform;
106
if
(m_isBetaVersion)
107
title += L
" - BETA VERSION"
;
108
if
(m_isAlphaVersion)
109
title += L
" - ALPHA VERSION"
;
110
return
title;
111
}
_BUILDNUMBER
#define _BUILDNUMBER
Definition
GlobalSettings.cpp:8
GlobalSettings.h
core::GlobalSettings
Singleton providing application-wide version info and global flags.
Definition
GlobalSettings.h:11
core::GlobalSettings::buildName
std::wstring buildName()
Definition
GlobalSettings.cpp:98
core::GlobalSettings::m_versionMinorNumber
int m_versionMinorNumber
Definition
GlobalSettings.h:41
core::GlobalSettings::m_instance
static GlobalSettings * m_instance
Definition
GlobalSettings.h:51
core::GlobalSettings::m_isAlphaVersion
bool m_isAlphaVersion
Definition
GlobalSettings.h:49
core::GlobalSettings::appVersion
std::wstring appVersion(std::wstring a_prefix=std::wstring(L""))
Definition
GlobalSettings.cpp:80
core::GlobalSettings::bZeroParticle
bool bZeroParticle
Definition
GlobalSettings.h:32
core::GlobalSettings::m_buildName
std::wstring m_buildName
Definition
GlobalSettings.h:45
core::GlobalSettings::bShowParticle
bool bShowParticle
Definition
GlobalSettings.h:31
core::GlobalSettings::m_versionRevNumber
int m_versionRevNumber
Definition
GlobalSettings.h:42
core::GlobalSettings::~GlobalSettings
~GlobalSettings()
core::GlobalSettings::GlobalSettings
GlobalSettings()
Definition
GlobalSettings.cpp:13
core::GlobalSettings::m_isBetaVersion
bool m_isBetaVersion
Definition
GlobalSettings.h:48
core::GlobalSettings::m_appName
std::wstring m_appName
Definition
GlobalSettings.h:44
core::GlobalSettings::m_versionMajorNumber
int m_versionMajorNumber
Definition
GlobalSettings.h:40
core::GlobalSettings::appTitle
std::wstring appTitle()
Definition
GlobalSettings.cpp:103
core::GlobalSettings::m_platform
std::wstring m_platform
Definition
GlobalSettings.h:46
core::GlobalSettings::appName
std::wstring appName()
Definition
GlobalSettings.cpp:93
core::GlobalSettings::bInitPoseOnlyExport
bool bInitPoseOnlyExport
Definition
GlobalSettings.h:33
Source
Engine
Settings
GlobalSettings.cpp
Generated by
1.9.8