2017-12-17 17:31:49 +01:00
|
|
|
/*
|
|
|
|
|
* File: globals.h
|
2017-12-17 17:38:32 +01:00
|
|
|
* Author: SET - nmset@yandex.com
|
2017-12-17 17:31:49 +01:00
|
|
|
* License : GPL V2
|
|
|
|
|
*
|
|
|
|
|
* Created on 9 décembre 2017, 21:03
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef GLOBALS_H
|
|
|
|
|
#define GLOBALS_H
|
|
|
|
|
|
2022-10-16 16:34:01 +02:00
|
|
|
#include <libintl.h>
|
|
|
|
|
#include <string>
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
//https://www.labri.fr/perso/fleury/posts/programming/a-quick-gettext-tutorial.html
|
|
|
|
|
#define _(STRING) gettext(STRING)
|
|
|
|
|
|
|
|
|
|
|
2017-12-17 17:31:49 +01:00
|
|
|
#define _APPNAME_ "POD7" // Pedal events Over DBus
|
|
|
|
|
#define _APP_DESCRIPTION_ "Send pedal events over DBus"
|
2022-10-16 15:59:28 +02:00
|
|
|
#define _VERSION_ "2"
|
2017-12-17 17:38:32 +01:00
|
|
|
#define _AUTHOR_ "SET - nmset@yandex.com"
|
2017-12-17 17:31:49 +01:00
|
|
|
#define _ABOUT_ string(_APPNAME_) + string(" - version ") + string(_VERSION_) \
|
|
|
|
|
+ string(" - ") + string(_APP_DESCRIPTION_) + _DOT_ \
|
|
|
|
|
+ string("\nAuthor : ") + string(_AUTHOR_) \
|
|
|
|
|
+ string("\nLicense : GPL v2")
|
|
|
|
|
|
|
|
|
|
#define _DOT_ "."
|
|
|
|
|
#define _SPACE_ " "
|
|
|
|
|
#define _COMMA_ ","
|
|
|
|
|
#define _COLON_ ":"
|
|
|
|
|
|
|
|
|
|
#endif /* GLOBALS_H */
|
|
|
|
|
|