fixed gentoo support
[qbat.git] / constants.h
blobd0e4a48280c0dde1b1aa28d3d5241d70e62b4fb3
1 #ifndef QBAT_CONSTANTS_H
2 #define QBAT_CONSTANTS_H
4 #define UI_VERSION "0.2.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 9
31 #define UI_COLOR_PEN_CHARGE 0
32 #define UI_COLOR_PEN_DISCHARGE 1
33 #define UI_COLOR_PEN_FULL 2
34 #define UI_COLOR_BRUSH_CHARGED 3
35 #define UI_COLOR_BRUSH_EMPTY 4
36 #define UI_COLOR_BRUSH_FULL 5
37 #define UI_COLOR_BRUSH_POLE_CHARGE 6
38 #define UI_COLOR_BRUSH_POLE_DISCHARGE 7
39 #define UI_COLOR_BRUSH_POLE_FULL 8
41 #endif