2015-11-15 22:26:50 +01:00
|
|
|
#ifndef DEFINE_H
|
|
|
|
|
#define DEFINE_H
|
|
|
|
|
|
|
|
|
|
#define ALL(arr) arr.begin(), arr.end()
|
|
|
|
|
|
2015-12-22 16:08:47 +01:00
|
|
|
// default rights
|
|
|
|
|
#define PERM_READ "READ"
|
|
|
|
|
#define PERM_ADD "ADD"
|
|
|
|
|
#define PERM_EDIT "EDIT"
|
|
|
|
|
#define PERM_DELETE "DELETE"
|
|
|
|
|
|
2016-02-19 15:34:52 +01:00
|
|
|
#define DEC_MULTIPLE 100
|
2017-10-13 12:53:15 +02:00
|
|
|
#define TO_DEC(num) (QDecDouble(num) / QDecDouble(DEC_MULTIPLE))
|
2023-04-28 22:25:29 +02:00
|
|
|
#define FROM_DEC(num) (num * QDecDouble(DEC_MULTIPLE)).toDouble()
|
2016-02-19 15:34:52 +01:00
|
|
|
|
2016-06-23 16:05:36 +02:00
|
|
|
#ifndef PLUGIN_ROOT
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
#define PLUGIN_ROOT "/../../plugins"
|
|
|
|
|
#else
|
|
|
|
|
#define PLUGIN_ROOT "/../plugins"
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-03-24 14:49:46 +01:00
|
|
|
#ifndef REPORT_ROOT
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
#define REPORT_ROOT "/../../reports"
|
|
|
|
|
#else
|
|
|
|
|
#define REPORT_ROOT "/../reports"
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-11-15 22:26:50 +01:00
|
|
|
#endif // DEFINE_H
|
|
|
|
|
|