redesigned battery data structures and added icon merge
[qbat.git] / constants.h
blob26941c336abb657bb30f6fa372fd2c7a0bd94864
1 #ifndef QBAT_CONSTANTS_H
2 #define QBAT_CONSTANTS_H
4 #define UI_VERSION "0.1.99 (0.2.0 alpha 2)"
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_LARGE UI_PATH_ICONS "qbat2_large.svg"
23 #define UI_ICON_QBAT_SMALL UI_PATH_ICONS "qbat2.svg"
25 #define UI_BATTERY_CHARGING 1
26 #define UI_BATTERY_DISCHARGING 2
27 #define UI_BATTERY_FULL 3
29 #define UI_COUNT_COLORS 7
31 #define UI_COLOR_PEN 0
32 #define UI_COLOR_PEN_FULL 1
33 #define UI_COLOR_BRUSH_CHARGED 2
34 #define UI_COLOR_BRUSH_EMPTY 3
35 #define UI_COLOR_BRUSH_FULL 4
36 #define UI_COLOR_BRUSH_POLE 5
37 #define UI_COLOR_BRUSH_POLE_FULL 6
39 #endif