fixed little logical bug
[qbat.git] / constants.h
blobe5b83097c5d8d6603fce200438ecbf4df268625f
1 #ifndef QBAT_CONSTANTS_H
2 #define QBAT_CONSTANTS_H
4 #define UI_VERSION "0.1.7"
5 #define UI_NAME tr("QBat - Qt Battery Monitor")
7 #define UI_DIR_WORK ".qbat/"
9 #define UI_PATH_SYSFS_DIR "/sys/class/power_supply"
10 #define UI_PATH_TRANSLATIONS "/usr/share/qbat/lang/"
11 #define UI_PATH_ICONS "/usr/share/qbat/icons/"
12 #define UI_PATH_WORK (QDir::toNativeSeparators(QDir::homePath()) + "/" UI_DIR_WORK)
14 #define UI_FILE_CONFIG (UI_PATH_WORK + "qbat.conf")
15 #define UI_CAPTION_ENERGY "energy"
16 #define UI_CAPTION_CHARGE "charge"
17 #define UI_CAPTION_VOLTAGE "voltage"
18 #define UI_CAPTION_NOW(a) "/" + a + "_now"
19 #define UI_CAPTION_FULL(a) "/" + a + "_full"
20 #define UI_CAPTION_DESIGN(a) UI_CAPTION_FULL(a) + "_design"
22 #define UI_ICON_QBAT UI_PATH_ICONS "qbat.svg"
24 #define UI_BATTERY_CHARGING 1
25 #define UI_BATTERY_DISCHARGING 2
26 #define UI_BATTERY_FULL 3
28 #define UI_COUNT_COLORS 7
30 #define UI_COLOR_PEN 0
31 #define UI_COLOR_PEN_FULL 1
32 #define UI_COLOR_BRUSH_CHARGED 2
33 #define UI_COLOR_BRUSH_EMPTY 3
34 #define UI_COLOR_BRUSH_FULL 4
35 #define UI_COLOR_BRUSH_POLE 5
36 #define UI_COLOR_BRUSH_POLE_FULL 6
38 #endif