forked from gopa810/gcal-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGCDisplaySettings.h
93 lines (86 loc) · 1.88 KB
/
GCDisplaySettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#pragma once
#include "showset.h"
class GCDisplaySettings
{
protected:
static CShowSetting gss[];
public:
static int getCount();
static int getCountChanged();
static char * getSettingName(int i);
static int getValue(int i);
static void setValue(int i, int val);
static void setValue(const char * pszSign, int val);
static void readFile(const char * psz);
GCDisplaySettings(void);
~GCDisplaySettings(void);
};
enum GCDS {
DISP_ALWAYS = -1,
CAL_ARUN_TIME = 1,
CAL_ARUN_TITHI = 0,
CAL_SUN_RISE = 2,
CAL_SUN_NOON = 34,
CAL_SUN_SET = 3,
CAL_MOON_RISE = 4,
CAL_MOON_SET = 5,
CAL_KSAYA = 7,
CAL_VRDDHI = 8,
CAL_SUN_LONG = 9,
CAL_MOON_LONG = 10,
CAL_AYANAMSHA = 11,
CAL_JULIAN = 12,
CATURMASYA_PURNIMA = 13,
CATURMASYA_PRATIPAT = 14,
CATURMASYA_EKADASI = 15,
CAL_SANKRANTI = 16,
CAL_EKADASI_PARANA = 17,
CAL_MASA_CHANGE = 21,
CAL_FEST_0 = 22,
CAL_FEST_1 = 23,
CAL_FEST_2 = 24,
CAL_FEST_3 = 25,
CAL_FEST_4 = 26,
CAL_FEST_5 = 27,
CAL_FEST_6 = 28,
CAL_DST_CHANGE = 35,
GENERAL_FIRST_DOW = 40,
COREEVENTS_SUN = 52,
COREEVENTS_TITHI = 53,
COREEVENTS_NAKSATRA = 54,
COREEVENTS_SANKRANTI = 55,
COREEVENTS_CONJUNCTION = 56,
COREEVENTS_RAHUKALAM = 57,
COREEVENTS_YAMAGHANTI = 58,
COREEVENTS_GULIKALAM = 59,
COREEVENTS_MOON = 60,
COREEVENTS_MOONRASI = 61,
COREEVENTS_ASCENDENT = 62,
COREEVENTS_SORT = 63,
COREEVENTS_ABHIJIT_MUHURTA = 64,
COREEVENTS_YOGA = 65
};
enum DisplayPriorities {
PRIO_MAHADVADASI = 10,
PRIO_EKADASI = 20,
PRIO_EKADASI_PARANA = 90,
PRIO_FESTIVALS_0 = 100,
PRIO_FESTIVALS_1 = 200,
PRIO_FESTIVALS_2 = 300,
PRIO_FESTIVALS_3 = 400,
PRIO_FESTIVALS_4 = 500,
PRIO_FESTIVALS_5 = 600,
PRIO_FESTIVALS_6 = 700,
PRIO_FASTING = 900,
PRIO_SANKRANTI = 920,
PRIO_MASA_CHANGE = 940,
PRIO_DST_CHANGE = 950,
PRIO_KSAYA = 965,
PRIO_CM_CONT = 971,
PRIO_CM_DAY = 972,
PRIO_CM_DAYNOTE = 973,
PRIO_ARUN = 975,
PRIO_SUN = 980,
PRIO_MOON = 990,
PRIO_ASTRO = 1000,
};