Rev | Line | |
---|
[4] | 1 | #ifndef _VERSION_H_ |
---|
| 2 | #define _VERSION_H_ |
---|
| 3 | |
---|
| 4 | //! Application name. |
---|
| 5 | #define APPLICATION_NAME "Projection Designer (Plugged-in Version)" |
---|
| 6 | |
---|
| 7 | //! Application version. |
---|
| 8 | #define APPLICATION_VERSION_MAJOR "1" |
---|
| 9 | #define APPLICATION_VERSION_MINOR "1" |
---|
| 10 | #define APPLICATION_VERSION_MICRO "50" |
---|
| 11 | #define APPLICATION_VERSION_NANO "plugin" |
---|
| 12 | |
---|
| 13 | #ifdef APPLICATION_VERSION_NANO |
---|
| 14 | # define APPLICATION_VERSION APPLICATION_VERSION_MAJOR "." APPLICATION_VERSION_MINOR "." APPLICATION_VERSION_MICRO "." APPLICATION_VERSION_NANO |
---|
| 15 | #else // APPLICATION_VERSION_NANO |
---|
| 16 | # define APPLICATION_VERSION APPLICATION_VERSION_MAJOR "." APPLICATION_VERSION_MINOR "." APPLICATION_VERSION_MICRO |
---|
| 17 | #endif // APPLICATION_VERSION_NANO |
---|
| 18 | |
---|
| 19 | /** returns true if v1 is less than v2. */ |
---|
| 20 | bool version_lt(const QString& v1, const QString& v2); |
---|
| 21 | /** returns true if v1 equal v2. */ |
---|
| 22 | bool version_eq(const QString& v1, const QString& v2); |
---|
| 23 | /** returns true if v1 is less than or equal v2. */ |
---|
| 24 | bool version_le(const QString& v1, const QString& v2); |
---|
| 25 | /** returns true if v1 is greater than or equal v2. */ |
---|
| 26 | bool version_ge(const QString& v1, const QString& v2); |
---|
| 27 | /** returns true if v1 is greater than v2. */ |
---|
| 28 | bool version_gt(const QString& v1, const QString& v2); |
---|
| 29 | |
---|
| 30 | #endif // _VERSION_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.