"Fossies" - the Fresh Open Source Software Archive 
Member "texstudio-3.1.1/src/utilsVersion.h" (21 Feb 2021, 1677 Bytes) of package /linux/misc/texstudio-3.1.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "utilsVersion.h" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
3.1.0_vs_3.1.1.
1 #ifndef UTILSVERSION_H
2 #define UTILSVERSION_H
3
4 #define TEXSTUDIO "TeXstudio"
5 #define TXSVERSION "3.1.1"
6
7 #define TXSVERSION_NUMERIC 0x030101
8
9 //#define IS_DEVELOPMENT_VERSION (TXSVERSION_NUMERIC & 0x000001)
10 #define IS_DEVELOPMENT_VERSION 0 // odd numbers have not been used at all, git version gives a much clearer insight about the used version
11
12 extern const char *TEXSTUDIO_GIT_REVISION;
13
14 #ifdef QT_NO_DEBUG
15 #define COMPILED_DEBUG_OR_RELEASE "R"
16 #else
17 #define COMPILED_DEBUG_OR_RELEASE "D"
18 #endif
19
20 #include "mostQtHeaders.h"
21
22 int gitRevisionToInt(const char *);
23
24 class Version
25 {
26 public:
27 enum VersionCompareResult {Invalid = -2, Lower = -1, Same = 0, Higher = 1};
28 static VersionCompareResult compareStringVersion(const QString &v1, const QString &v2);
29 static VersionCompareResult compareIntVersion(const QList<int> &v1, const QList<int> &v2);
30 static QList<int> parseVersionNumber(const QString &versionNumber);
31 static bool versionNumberIsValid(const QString &versionNumber);
32 static int parseGitRevisionNumber(const QString &revision);
33
34 Version() : revision(0) {}
35 Version(QString number, int rev = 0) : versionNumber(number), revision(rev) {}
36 Version(QString number, QString tp,int rev = 0) : versionNumber(number), type(tp), revision(rev) {}
37 static Version current();
38
39 QString platform; // "win" or "mac" or "linux"
40 QString versionNumber; // "2.10.2"
41 QString type; // "stable", "release candidate" or "development"
42 int revision; // 5310, now changed to revision after tag as deliverd by "git describe"
43
44 bool operator > (const Version &other) const;
45
46 bool isEmpty() const;
47 bool isValid() const;
48
49 };
50 #endif // UTILSVERSION_H