Files
prodejna/core/define.h
T

26 lines
507 B
C
Raw Normal View History

#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
2016-04-07 22:29:37 +02:00
#define TO_DEC(num) QDecDouble((double)num / DEC_MULTIPLE)
#define FROM_DEC(num) num.toDouble() * DEC_MULTIPLE
2016-02-19 15:34:52 +01:00
#ifndef PLUGIN_ROOT
#ifdef _WIN32
#define PLUGIN_ROOT "/../../plugins"
#else
#define PLUGIN_ROOT "/../plugins"
#endif
#endif
#endif // DEFINE_H