1 /*     WMGlobe 1.3  -  All the Earth on a WMaker Icon
2  *     copyright (C) 1998,99,2000,01 Jerome Dumonteil <jerome.dumonteil@linuxfr.org>
3  *
4  *     This program is free software; you can redistribute it and/or modify
5  *     it under the terms of the GNU General Public License as published by
6  *     the Free Software Foundation; either version 2 of the License, or
7  *     (at your option) any later version.
8  *
9  *     This program is distributed in the hope that it will be useful,
10  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *     GNU General Public License for more details.
13  *
14  *     You should have received a copy of the GNU General Public License
15  *     along with this program; if not, write to the Free Software
16  *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  ***************************************************************************/
18 
19 /*
20  * #define DEBUG
21  */
22 
23 #define WMGVERSION "WMGlobe v.1.3 12 aug 2001 <jerome.dumonteil@linuxfr.org>"
24 
25 /*
26  * comment DEFMAPOK to not install the built-in default maps,
27  * (smaller binary) usefull if you never use the default map
28  */
29 
30 #define DEFMAPOK
31 
32 /*
33  * uncomment MOUSE_LAT_FULL to supprim the shift+left method of rotate earth
34  */
35 
36 /*
37  * #define MOUSE_LAT_NO_SHIFT
38  */
39 
40 /*
41  * number of parameter screen : min 1, max 7 (all, the recommanded default)
42  * - this doesnt modify the binary size -
43  *  1 : postion latitude & longitude
44  *  2 : time of viewpoint (+ screen 1)
45  *  3 : delay & zoom (+ screen 1 & 2)
46  *  4 : light & dawn (+ screen 1..3)
47  *  5 : accel & night map (+ screen 1..4)
48  *  6 : dlat & dlong (+ screen 1..5)
49  *  7 : type of view (+ screen 1..6)
50  */
51 #define NUM_SCREEN	7
52 
53 /*** 0.04 sec main loop sleep (maximum refresh rate when delay=0) ***/
54 #define VAL_USLEEP 	40000
55 
56 #define VAL_USLEEP_SHORT 500
57 
58 /* waiting time before get back from param screen to earth (seconds) */
59 #define SCREEN_WAIT	5
60 
61 #define ZOOM_FACTOR 	1.06
62 #define ZOOM_MIN 	0.08
63 #define ZOOM_MAX 	100000.0
64 #define STOP_RANDOM_FACTOR 1
65 #define RATIO_ROTATE 	0.5
66 
67 /* Markers */
68 #define WITH_MARKERS    1	/* put to 0 to remove markers code */
69 #define CROSS_LENGTH    8	/* min 2 */
70 #define CROSS_INVERT	0	/* 0: black/white, 1: inv. color */
71 #define MAX_MARKERS	5
72 #define CR_SUN_R	255	/* sun cross color */
73 #define CR_SUN_G	255
74 #define CR_SUN_B	127
75 #define CR_MOON_R	0	/* moon cross color */
76 #define CR_MOON_G	200
77 #define CR_MOON_B	255
78 
79 
80 /* some default values*/
81 #define DEFAULT_DELAY 	1.0
82 #define DEFAULT_V_LAT 	0.0
83 #define DEFAULT_V_LONG 	0.0
84 #define DEFAULT_SENS 	1
85 #define DEFAULT_ZOOM 	1.0
86 #define DEFAULT_LIGHT 	0.25
87 #define DEFAULT_BORDER 	2
88 #define DEFAULT_NIGHTMAP 1	/* 1 or 0  */
89 
90 #define MAX_DELAY_SEC	86400.0
91 #define MAX_MULTI_COEF	864000.0
92 #define MAX_DELTA_LONG	1800.0
93 
94 /***  (1 - dawn/2)   *****/
95 #define DEFAULT_DAWN 	0.9
96 
97 /* change this if not 64x64 icons (not deep tested) you will need to change
98    the cadrex.xbm too and a few other things for the parameters menus
99    --- DIAMETRE must be a multiple of 2 ---                  */
100 #define DIAMETRE 	64
101