Subversion Repositories Projects

Rev

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

Rev 265 Rev 266
Line 43... Line 43...
43
    public boolean do_sound=true;
43
    public boolean do_sound=true;
44
    public boolean do_volts_sound=true;
44
    public boolean do_volts_sound=true;
45
    public boolean do_altimeter_sound=true;
45
    public boolean do_altimeter_sound=true;
Line -... Line 46...
-
 
46
 
-
 
47
 
-
 
48
    public boolean horizon_invert_nick=true;
-
 
49
    public boolean horizon_invert_roll=true;
-
 
50
    public boolean horizon_display_altitude=true;
46
 
51
    public boolean horizon_display_flytime=true;
47
 
52
 
48
    public boolean fullscreen=false;
53
    public boolean fullscreen=false;
-
 
54
    public boolean do_scrollbg=false;
Line 49... Line 55...
49
    public boolean do_scrollbg=false;
55
    public boolean expert_mode=false;
Line 50... Line 56...
50
    public boolean expert_mode=false;
56
    public boolean dev_mode=false;
Line 61... Line 67...
61
 
67
 
62
    int[] act_proxy_ip=default_ip; // { ip , ip , ip , ip , port }
68
    int[] act_proxy_ip=default_ip; // { ip , ip , ip , ip , port }
Line 63... Line 69...
63
    int[] act_conn_ip=default_ip; // { ip , ip , ip , ip , port }
69
    int[] act_conn_ip=default_ip; // { ip , ip , ip , ip , port }
64
 
70
 
Line 65... Line 71...
65
 
71
 
Line 66... Line 72...
66
    public byte gps_format=GPS_FORMAT_DECIMAL;
72
    //    public byte gps_format=GPS_FORMAT_DECIMAL;
Line 170... Line 176...
170
            graph_scale=((val&128)!=0);
176
            graph_scale=((val&128)!=0);
Line 171... Line 177...
171
 
177
 
172
 
178
 
Line 173... Line 179...
173
 
179
 
174
        if (pos==SETTINGS_POS_GPS_FORMAT)
180
        if (pos==SETTINGS_POS_GPS_FORMAT)
Line 175... Line 181...
175
            gps_format=(byte)val;
181
            canvas.mk.gps_position.act_gps_format=(byte)val;
176
 
182
 
Line 177... Line 183...
177
        if (pos==SETTINGS_POS_SPEED_FORMAT)
183
        if (pos==SETTINGS_POS_SPEED_FORMAT)
Line 200... Line 206...
200
            key_fullscreen=val;
206
            key_fullscreen=val;
Line 201... Line 207...
201
 
207
 
202
        if (pos==SETTINGS_POS_KEY_CLEAR)
208
        if (pos==SETTINGS_POS_KEY_CLEAR)
Line 203... Line 209...
203
            key_clear=val;
209
            key_clear=val;
204
 
210
 
Line 205... Line 211...
205
        if (pos==12)
211
        if (pos==12)
206
            remote_cam_stick=val;
212
            remote_cam_stick=val;
Line 224... Line 230...
224
            }
230
            }
Line 225... Line 231...
225
 
231
 
226
        if (pos==SETTINGS_POS_BITFIELD2)
232
        if (pos==SETTINGS_POS_BITFIELD2)
Line 227... Line 233...
227
            do_volts_sound=((val&1)!=0);       
233
            do_volts_sound=((val&1)!=0);       
228
 
234
 
Line 229... Line 235...
229
        if (pos==SETTINGS_POS_BITFIELD2+1)
235
        if (pos==SETTINGS_POS_BITFIELD2)
230
            reload_settings=((val&2)!=0);    
236
            reload_settings=((val&2)!=0);    
-
 
237
 
-
 
238
        if (pos==SETTINGS_POS_BITFIELD2)
-
 
239
            do_altimeter_sound=((val&4)!=0);
-
 
240
 
-
 
241
 
-
 
242
        if (pos==SETTINGS_POS_BITFIELD2)
-
 
243
            horizon_invert_roll=((val&8)!=0);
-
 
244
 
-
 
245
        if (pos==SETTINGS_POS_BITFIELD2)
-
 
246
           horizon_invert_nick=((val&16)!=0);
-
 
247
 
-
 
248
        if (pos==SETTINGS_POS_BITFIELD2)
-
 
249
           horizon_display_flytime=((val&32)!=0);
-
 
250
 
-
 
251
        if (pos==SETTINGS_POS_BITFIELD2)
-
 
252
           horizon_display_altitude=((val&64)!=0);
231
 
253
 
Line 232... Line 254...
232
        if (pos==SETTINGS_POS_BITFIELD2+2)
254
        if (pos==SETTINGS_POS_BITFIELD2)
Line 240... Line 262...
240
    /* end of all settings hold here */
262
    /* end of all settings hold here */
Line 241... Line 263...
241
 
263
 
Line 242... Line 264...
242
    //    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" };
264
    //    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" };
Line 243... Line 265...
243
 
265
 
244
 
266
 
245
    public int[] _tab_stringids={STRINGID_USERINTERFACE,STRINGID_GPS,STRINGID_KEYCONTROL,STRINGID_SPECIALKEYS,STRINGID_GRAPH,STRINGID_VOICE,STRINGID_OTHER};
267
    public int[] _tab_stringids={STRINGID_USERINTERFACE,STRINGID_UNITS,STRINGID_KEYCONTROL,STRINGID_SPECIALKEYS,STRINGID_GRAPH,STRINGID_SOUND,STRINGID_COCKPIT,STRINGID_OTHER};
Line 253... Line 275...
253
            STRINGID_SCROLLBG
275
            STRINGID_SCROLLBG
254
            //#if devicecontrol=="on"
276
            //#if devicecontrol=="on"
255
            ,STRINGID_PERMALIGHT
277
            ,STRINGID_PERMALIGHT
256
            //#endif
278
            //#endif
257
        },
279
        },
258
        {  STRINGID_GPSFORMAT,  STRINGID_SPEEDFORMAT},
280
        {STRINGID_SPEEDFORMAT,STRINGID_GPSFORMAT},
259
        { STRINGID_NICK ,STRINGID_ROLL,STRINGID_GIER,STRINGID_GASINCREASE,STRINGID_HEIGHTINCREASE },
281
        {STRINGID_NICK ,STRINGID_ROLL,STRINGID_GIER,STRINGID_GASINCREASE,STRINGID_HEIGHTINCREASE },
260
        {STRINGID_BACKTOMAINMENU,STRINGID_FULLSCREEN,STRINGID_CLEAR },
282
        {STRINGID_BACKTOMAINMENU,STRINGID_FULLSCREEN,STRINGID_CLEAR },
261
        {STRINGID_LEGEND,STRINGID_SCALEGRID,STRINGID_GRAPHINTERVAL},
283
        {STRINGID_LEGEND,STRINGID_SCALEGRID,STRINGID_GRAPHINTERVAL},
262
        {STRINGID_VOLTS,STRINGID_DELAYINS,STRINGID_ALTIMETER,STRINGID_VOLUME},
284
        {STRINGID_SOUND,STRINGID_VOLTS,STRINGID_DELAYINS,STRINGID_ALTIMETER,STRINGID_VOLUME},
-
 
285
        {STRINGID_SHOWALTITUDE,STRINGID_SHOWFLIGHTTIME,STRINGID_INVERTROLL,STRINGID_INVERTNICK},
263
        {STRINGID_SOUND,STRINGID_VIBRA,STRINGID_REMOTECAMSTICK,STRINGID_ALWAYSRELOADPARAMS,STRINGID_EXPERTMODE}};
286
        {STRINGID_VIBRA,STRINGID_REMOTECAMSTICK,STRINGID_ALWAYSRELOADPARAMS,STRINGID_EXPERTMODE,STRINGID_DEVMODE}};
264
 
-
 
Line 265... Line -...
265
 
-
 
Line 266... Line 287...
266
 
287
 
Line 267... Line -...
267
    //    public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"},{"English","Deutsch"} } ;
-
 
268
 
-
 
-
 
288
 
269
 
289
 
270
    public int[][] _choice_stringids={ {STRINGID_LANG0,STRINGID_LANG1}, /* FIXME - make dynamic */{ STRINGID_DARK,STRINGID_LIGHT } , {STRINGID_KMH,STRINGID_MPH,STRINGID_CMS},{STRINGID_DECIMAL,STRINGID_MINSEC} } ;
290
 
Line 271... Line 291...
271
 
291
    public int[][] _choice_stringids={ {STRINGID_LANG0,STRINGID_LANG1}, /* FIXME - make dynamic */{ STRINGID_DARK,STRINGID_LIGHT } , {STRINGID_KMH,STRINGID_MPH,STRINGID_CMS},{STRINGID_DECIMAL,STRINGID_MINSEC} } ;
272
 
292
 
273
 
293
 
-
 
294
 
-
 
295
    public int[][] _field_positions=    {
-
 
296
        {SETTINGS_POS_LANG,SETTINGS_POS_SKIN,8,9
-
 
297
//#if devicecontrol=="on"
274
 
298
 
275
 
299
       ,13
276
    public int[][] _field_positions={ {SETTINGS_POS_LANG,SETTINGS_POS_SKIN,8,9
300
//#endif
277
//#if devicecontrol=="on"
301
} , {2,3 } , {4,5,6,7,8} , {9,10,11},{SETTINGS_POS_BITFIELD1*8 +6,SETTINGS_POS_BITFIELD1*8 +7, SETTINGS_POS_GRAPHINTERVAL} ,
278
 
302
        {10,SETTINGS_POS_BITFIELD2*8+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_BITFIELD2*8+2,SETTINGS_POS_VOICEVOLUME },
-
 
303
        {SETTINGS_POS_BITFIELD2*8+6,SETTINGS_POS_BITFIELD2*8+5,SETTINGS_POS_BITFIELD2*8+3,SETTINGS_POS_BITFIELD2*8+4},
-
 
304
        {SETTINGS_POS_BITFIELD1*8+3,12,SETTINGS_POS_BITFIELD2*8+1,SETTINGS_POS_BITFIELD1*8+4,SETTINGS_POS_BITFIELD2*8+7}
-
 
305
    };
-
 
306
    public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_CHOICE+1,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH
279
                                       ,13
307
//#if devicecontrol=="on"
Line 280... Line 308...
280
//#endif
308
                 ,PARAMTYPE_BITSWITCH