Files
pmp7/globals.h

36 lines
916 B
C
Raw Normal View History

2017-12-17 17:43:17 +01:00
/*
* File: globals.h
2022-11-19 16:09:36 +01:00
* Author: Saleem Edah-Tally - nmset@yandex.com
2017-12-17 17:43:17 +01:00
* License : GPL V2
*
* Created on 10 décembre 2017, 20:27
*/
#ifndef GLOBALS_H
#define GLOBALS_H
2022-10-16 18:10:38 +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:43:17 +01:00
#define _APPNAME_ "PMP7" // Pedal control for Media Player
#define _APP_DESCRIPTION_ "Controls media playback by foot pedal"
2022-10-16 17:48:10 +02:00
#define _VERSION_ "2"
2022-11-19 16:09:36 +01:00
#define _AUTHOR_ "Saleem Edah-Tally - nmset@yandex.com"
2017-12-17 17:43:17 +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_ ":"
#define _NL_ "\n"
#endif /* GLOBALS_H */