Subversion Repositories Projects

Rev

Rev 222 | Rev 233 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 222 Rev 229
Line 27... Line 27...
27
 
27
 
28
    public int key_back;
28
    public int key_back;
29
    public int key_fullscreen;
29
    public int key_fullscreen;
Line -... Line 30...
-
 
30
    public int key_clear;
-
 
31
 
-
 
32
    public int voice_delay;
-
 
33
    public int voice_volume;
-
 
34
 
30
    public int key_clear;
35
 
Line 31... Line 36...
31
 
36
 
32
    public int remote_cam_stick;
37
    public int remote_cam_stick;
Line 38... Line 43...
38
    public boolean do_sound=true;
43
    public boolean do_sound=true;
39
    public boolean fullscreen=false;
44
    public boolean fullscreen=false;
40
    public boolean do_scrollbg=false;
45
    public boolean do_scrollbg=false;
41
    public boolean expert_mode=false;
46
    public boolean expert_mode=false;
Line -... Line 47...
-
 
47
 
-
 
48
    public boolean reload_settings=false;
-
 
49
 
-
 
50
 
-
 
51
    public boolean graph_legend;
-
 
52
    public boolean graph_scale;
42
 
53
 
43
//#if devicecontrol=="on"
54
//#if devicecontrol=="on"
44
    public boolean keep_lighton=false;
55
    public boolean keep_lighton=false;
Line 45... Line 56...
45
//#endif
56
//#endif
Line 78... Line 89...
78
    public final static int SETTINGS_POS_EXTERN_GAS=7;
89
    public final static int SETTINGS_POS_EXTERN_GAS=7;
79
    public final static int SETTINGS_POS_EXTERN_HIGHT=8;
90
    public final static int SETTINGS_POS_EXTERN_HIGHT=8;
80
    public final static int SETTINGS_POS_KEY_BACK=9;
91
    public final static int SETTINGS_POS_KEY_BACK=9;
81
    public final static int SETTINGS_POS_KEY_FULL=10;
92
    public final static int SETTINGS_POS_KEY_FULL=10;
82
    public final static int SETTINGS_POS_KEY_CLEAR=11;
93
    public final static int SETTINGS_POS_KEY_CLEAR=11;
-
 
94
    public final static int SETTINGS_POS_VOICEVOLUME=12;
-
 
95
    public final static int SETTINGS_POS_VOICEDELAY=13;
-
 
96
    public final static int SETTINGS_POS_BITFIELD2=14;
Line 83... Line 97...
83
 
97
 
84
 
98
 
Line 112... Line 126...
112
        if ((pos==SETTINGS_POS_BITFIELD1)&&((val&2)==0)&&(do_scrollbg))
126
        if ((pos==SETTINGS_POS_BITFIELD1)&&((val&2)==0)&&(do_scrollbg))
113
            {
127
            {
114
                do_scrollbg=false;
128
                do_scrollbg=false;
115
                canvas.load_skin_images();
129
                canvas.load_skin_images();
116
            }
130
            }
-
 
131
 
Line 117... Line 132...
117
                   
132
                   
118
        if (pos==SETTINGS_POS_BITFIELD1)
133
        if (pos==SETTINGS_POS_BITFIELD1)
Line 119... Line 134...
119
            do_sound=((val&4)!=0);
134
            do_sound=((val&4)!=0);
Line 125... Line 140...
125
            expert_mode=((val&16)!=0);
140
            expert_mode=((val&16)!=0);
Line 126... Line 141...
126
 
141
 
127
        if (pos==SETTINGS_POS_BITFIELD1)
142
        if (pos==SETTINGS_POS_BITFIELD1)
Line -... Line 143...
-
 
143
            keep_lighton=((val&32)!=0);
-
 
144
 
-
 
145
        if (pos==SETTINGS_POS_BITFIELD1)
-
 
146
            graph_legend=((val&64)!=0);
-
 
147
 
-
 
148
        if (pos==SETTINGS_POS_BITFIELD1)
-
 
149
            graph_scale=((val&128)!=0);
-
 
150
 
128
            keep_lighton=((val&32)!=0);
151
 
129
 
152
 
Line 130... Line 153...
130
        if (pos==SETTINGS_POS_GPS_FORMAT)
153
        if (pos==SETTINGS_POS_GPS_FORMAT)
131
            gps_format=(byte)val;
154
            gps_format=(byte)val;
Line 158... Line 181...
158
        if (pos==SETTINGS_POS_KEY_CLEAR)
181
        if (pos==SETTINGS_POS_KEY_CLEAR)
159
            key_clear=val;
182
            key_clear=val;
Line 160... Line 183...
160
 
183
 
161
        if (pos==12)
184
        if (pos==12)
-
 
185
            remote_cam_stick=val;
-
 
186
 
-
 
187
 
-
 
188
        if(pos==SETTINGS_POS_VOICEVOLUME)
-
 
189
            {
-
 
190
            voice_volume=val;
-
 
191
//#if voice_mode!="no_voice"
-
 
192
            canvas.status_voice.volume=voice_volume;
-
 
193
               
-
 
194
//#endif
-
 
195
            }
-
 
196
        if(pos==SETTINGS_POS_VOICEDELAY)
-
 
197
            {
-
 
198
            voice_delay=val;
-
 
199
//#if voice_mode!="no_voice"
-
 
200
            canvas.status_voice.delay=voice_delay;
-
 
201
               
-
 
202
//#endif
-
 
203
            }
-
 
204
 
-
 
205
        if (pos==SETTINGS_POS_BITFIELD2)
-
 
206
            do_sound=((val&1)!=0);      // TODO: FIXME - extra var
-
 
207
 
-
 
208
        if (pos==SETTINGS_POS_BITFIELD2)
162
            remote_cam_stick=val;
209
            reload_settings=((val&2)!=0);    
Line 163... Line 210...
163
    }
210
    }
Line 164... Line 211...
164
 
211
 
Line 165... Line 212...
165
 
212
 
Line 166... Line 213...
166
    public byte[] default_extern_control;//=default_extern_keycontrol ;
213
    public byte[] default_extern_control;//=default_extern_keycontrol ;
167
 
214
 
168
 
215
 
169
    /* end of all settings hold here */
216
    /* end of all settings hold here */
170
 
217
 
Line 171... Line 218...
171
    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Other" };
218
    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" };
172
 
219
 
173
    public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background"
220
    public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background"
174
//#if devicecontrol=="on"
221
//#if devicecontrol=="on"
175
                                       ,"Permanent Light"
222
                                       ,"Permanent Light"
176
//#endif
223
//#endif
177
 } , {"GPS Format","Speed Format"},{"Nick","Roll","Gier","Gas Increase","Height Increase"},{"Back","Fullscreen","Clear"},{"Sound","Vibra","Remote Cam Stick","Expert-Mode"} };
224
 } , {"GPS Format","Speed Format"},{"Nick","Roll","Gier","Gas Increase","Height Increase"},{"Back to Main-Menu","Fullscreen","Clear"},{"Legend","Scale-Grid"},{"Volts Output","Delay in Seconds","Volume"},{"Sound","Vibra","Remote Cam Stick","Always Reload Params","Expert-Mode"} };
178
 
225
 
179
    public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"}} ;
226
    public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"}} ;
180
    public int[][] _field_positions={ {SETTINGS_POS_SKIN,8,9
227
    public int[][] _field_positions={ {SETTINGS_POS_SKIN,8,9
181
//#if devicecontrol=="on"
228
//#if devicecontrol=="on"
182
                                       ,13
229
                                       ,13
Line -... Line 230...
-
 
230
//#endif
183
//#endif
231
} , {2,3} , {4,5,6,7,8} , {9,10,11},{SETTINGS_POS_BITFIELD1*8 +6,SETTINGS_POS_BITFIELD1*8 +7} ,{SETTINGS_POS_BITFIELD2+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_VOICEVOLUME },  {10,11,12,SETTINGS_POS_BITFIELD2+1,12}};
184
} , {2,3} , {4,5,6,7,8} , {9,10,11}, {10,11,12,12}};
232
    public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH
185
    public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH
233
//#if devicecontrol=="on"
186
//#if devicecontrol=="on"
234
                                   ,PARAMTYPE_BITSWITCH
187
                                   ,PARAMTYPE_BITSWITCH
235
//#endif