1 #define N_MENU 28
2 #define N_ZOOM 14
3 #define N_OPTION 12
4 #define N_URBAN 12
5 #define N_FILESEL 6
6 #define N_HELP 49
7 
8 #define STDFORMATS "%H:%M%_%a%_%d%_%b%_%y|%H:%M:%S%_%Z|%a%_%j/%t%_%U/52"
9 
10 enum {L_POINT=0, L_GMTTIME, L_SOLARTIME, L_LEGALTIME,
11       L_DAYLENGTH, L_SUNRISE, L_SUNSET,
12 
13       L_SEC, L_MIN, L_HOUR, L_DAY, L_DAYS,
14 
15       L_CLICKCITY, L_CLICKLOC, L_CLICK2LOC, L_DEGREE,
16 
17       L_KEY, L_CONTROLS, L_ESCAPE, L_ESCMENU, L_UNKNOWN, L_SYNCHRO,
18       L_PROGRESS, L_TIMEJUMP,
19 
20       L_CITYNAME, L_TIMEZONE, L_LATITUDE, L_LONGITUDE, L_CITYSIZE,
21       L_CITYWARNING1, L_CITYWARNING2,
22 
23       L_OPTION, L_ACTIVATE, L_INCORRECT, L_OPTIONINTRO,
24       L_ONCE, L_PERIODIC, L_STARRYSKY, L_BLANKSCREEN,
25 
26       L_LISTOPTIONS, L_CONFIG, L_NEWIMAGE, L_SHORTHELP,
27 
28       L_END
29       };
30 
31 #ifdef DEFVAR
32 char	* Label[L_END] = {
33 	"Point", "GMT time", "Solar time", "Legal time",
34         "Day length", "Sunrise", "Sunset",
35 
36 	"seconds", "minute", "hour", "day", "days",
37 
38         "Click on a city",
39         "Click on a location",
40         "Click consecutively on two locations",
41         "Double click or strike * for � ' \"",
42 
43 	"Key",
44         "Key/Mouse controls",
45 	"Escape",
46         "Escape menu",
47 	"Unknown key binding !!",
48         "Synchro (\")",
49 	"Progress value =",
50         "Global time shift =",
51 
52         "City name",
53 	"Timezone",
54 	"Latitude",
55 	"Longitude",
56 	"Size",
57 	"Warning: %s, lat=%s lon=%s already in list of cities !!",
58 	"Overriding previous entry for %s",
59 
60 	"Option",
61         "Activating selected option...",
62         "Option incorrect or not available at runtime !!",
63 	"Options: strike <Ctrl><Space> for blank space within an item",
64 	"(once)",
65 	"(periodically, period %d seconds)",
66 	"(with starry sky)",
67 	"(blank root window)",
68 
69 	"with the following rather long list of options:",
70         "Starting from **, options are runtime configurable.",
71 	"Calculating new image...",
72         "Sunclock has a number of internal procedures which can be accessed\n"
73             "through mouse clicks or key controls:"
74 };
75 
76 char    MenuKey[2*N_MENU] =
77 "H,F,Z,U,O;C,S,D,E,L;A,B,G,J;N,Y,M,P,T;W,K,I,R;>,<,!;X,Q;";
78 
79 char    ZoomKey[2*N_ZOOM] =
80 "*,�,#,/;&,+,-,1,.;>,<,!,W,K;";
81 
82 char    OptionKey[2*N_OPTION] =
83 "@,%;=,�;[,];G,J,';!,W,K;";
84 
85 char    UrbanKey[2*N_URBAN] =
86 "U,�,�,%;C,S;~,(,);!,W,K;";
87 
88 char    CommandKey[N_HELP] =
89 "HFZUOCSDELABGJNYMPTWKIR><!XQ*�#/&+-1.\"@%=[]'��~()";
90 
91 char  * FileselBanner[N_FILESEL] = {
92     "home", "share", "  /", "  .", "  W", "  !"
93 };
94 
95 char    WeakChars[] = "QCDEMPSTUK><!";
96 
97 char  * Help[N_HELP] = {
98 
99 /* Menu window help */
100 "Show help and commands (H or click on strip)",
101 "Load Earth map file (F or mouse button 2)",
102 "Zoom (Z or mouse button 3)",
103 "Urban command window",
104 "Option command window",
105 "Use coordinate mode",
106 "Use solar time mode",
107 "Use distance mode",
108 "Use hour extension mode",
109 "Use legal time mode",
110 "Modify time forwArd",
111 "Modify time Backward",
112 "Adjust proGress value",
113 "Reset global time shift to Zero",
114 "Draw/Erase Night area",
115 "Draw/Erase Sun and Moon",
116 "Draw/Erase meridians",
117 "Draw/Erase parallels",
118 "Draw/Erase Tropics/Equator/Arctic circles",
119 "Open new map window (W or Mousebutton 3)",
120 "Close window",
121 "Iconify window",
122 "Refresh map window",
123 "Adjust window width to screen size",
124 "Back to previous window size",
125 "Switch clock and map windows",
126 "Activate command (-command option)",
127 "Quit program",
128 
129 /* Zoom window help */
130 "Activate new zoom settings",
131 "Return to previous zoom settings",
132 "Cancel change in zoom settings",
133 "Set aspect by resizing main window",
134 "Cycle through zoom modes 0,1,2",
135 "Zoom in by factor 1.2",
136 "Zoom out by factor 1/1.2 = 0.833",
137 "Return to zoom factor = 1 (full map)",
138 "Center zoom area on selected city or location",
139 "Synchronize zoom operation",
140 
141 /* Option window help */
142 "Activate the selected option",
143 "Erase the command/parameter line(s)",
144 "Synchronize windows or not",
145 "Copy map to root window",
146 "Erase map from root window",
147 "Start/stop animation",
148 
149 /* Urban window help */
150 "Use degree, minute, seconds, or decimal degrees",
151 "Search/select city",
152 "Modify city parameters",
153 "Create new city location",
154 "Delete city"
155 
156 };
157 
158 char	*ShortHelp =
159 "Sunclock has a number of internal procedures which can be accessed\n"
160 "through mouse clicks or key controls:";
161 
162 char  	Day_name[7][10] = {
163         "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
164 };
165 
166 char    Month_name[12][10] = {
167         "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
168         "Aug", "Sep", "Oct", "Nov", "Dec"
169 };
170 
171 #else
172 
173 extern char Day_name[7][10];
174 extern char Month_name[12][10];
175 extern char MenuKey[N_MENU];
176 extern char ZoomKey[N_ZOOM];
177 extern char OptionKey[N_OPTION];
178 extern char UrbanKey[N_URBAN];
179 extern char CommandKey[N_HELP];
180 
181 #endif
182