You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
673 B
C
34 lines
673 B
C
#ifndef DEFINE_H
|
|
#define DEFINE_H
|
|
|
|
#define ALL(arr) arr.begin(), arr.end()
|
|
|
|
// default rights
|
|
#define PERM_READ "READ"
|
|
#define PERM_ADD "ADD"
|
|
#define PERM_EDIT "EDIT"
|
|
#define PERM_DELETE "DELETE"
|
|
|
|
#define DEC_MULTIPLE 100
|
|
#define TO_DEC(num) (QDecDouble(num) / QDecDouble(DEC_MULTIPLE))
|
|
#define FROM_DEC(num) (num * QDecDouble(DEC_MULTIPLE)).toDouble()
|
|
|
|
#ifndef PLUGIN_ROOT
|
|
#ifdef _WIN32
|
|
#define PLUGIN_ROOT "/../../plugins"
|
|
#else
|
|
#define PLUGIN_ROOT "/../plugins"
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef REPORT_ROOT
|
|
#ifdef _WIN32
|
|
#define REPORT_ROOT "/../../reports"
|
|
#else
|
|
#define REPORT_ROOT "/../reports"
|
|
#endif
|
|
#endif
|
|
|
|
#endif // DEFINE_H
|
|
|