Rev 255 | Rev 265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 255 | Rev 258 | ||
---|---|---|---|
Line 224... | Line 224... | ||
224 | 224 | ||
Line 225... | Line 225... | ||
225 | // public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" }; |
225 | // public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" }; |
226 | - | ||
227 | - | ||
228 | public int[] _tab_stringids={STRINGID_USERINTERFACE,STRINGID_GPS,STRINGID_KEYCONTROL,STRINGID_SPECIALKEYS,STRINGID_GRAPH,STRINGID_VOICE,STRINGID_OTHER}; |
- | |
229 | public String[][] _field_names={ { "Language","Skin","Fullscreen","Scroll Background" |
- | |
230 | //#if devicecontrol=="on" |
- | |
Line -... | Line 226... | ||
- | 226 | ||
- | 227 | ||
- | 228 | public int[] _tab_stringids={STRINGID_USERINTERFACE,STRINGID_GPS,STRINGID_KEYCONTROL,STRINGID_SPECIALKEYS,STRINGID_GRAPH,STRINGID_VOICE,STRINGID_OTHER}; |
|
- | 229 | ||
- | 230 | ||
- | 231 | public int[][] _field_stringids ={ |
|
- | 232 | { |
|
- | 233 | STRINGID_LANGUAGE, |
|
- | 234 | STRINGID_SKIN, |
|
- | 235 | STRINGID_FULLSCREEN, |
|
- | 236 | STRINGID_SCROLLBG |
|
- | 237 | //#if devicecontrol=="on" |
|
- | 238 | ,STRINGID_PERMALIGHT |
|
- | 239 | //#endif |
|
- | 240 | }, |
|
- | 241 | { STRINGID_GPSFORMAT, STRINGID_SPEEDFORMAT}, |
|
- | 242 | { STRINGID_NICK ,STRINGID_ROLL,STRINGID_GIER,STRINGID_GASINCREASE,STRINGID_HEIGHTINCREASE }, |
|
- | 243 | {STRINGID_BACKTOMAINMENU,STRINGID_FULLSCREEN,STRINGID_CLEAR }, |
|
- | 244 | {STRINGID_LEGEND,STRINGID_SCALEGRID}, |
|
- | 245 | {STRINGID_VOLTS,STRINGID_DELAYINS,STRINGID_VOLUME}, |
|
231 | ,"Permanent Light" |
246 | {STRINGID_SOUND,STRINGID_VIBRA,STRINGID_REMOTECAMSTICK,STRINGID_ALWAYSRELOADPARAMS,STRINGID_EXPERTMODE}}; |
- | 247 | ||
- | 248 | ||
- | 249 | ||
- | 250 | // public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"},{"English","Deutsch"} } ; |
|
- | 251 | ||
- | 252 | ||
- | 253 | 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} } ; |
|
- | 254 | ||
232 | //#endif |
255 | |
233 | } , {"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"} }; |
256 | |
234 | 257 | ||
235 | public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"},{"English","Deutsch"} } ; |
258 | |
236 | public int[][] _field_positions={ {SETTINGS_POS_LANG,SETTINGS_POS_SKIN,8,9 |
259 | public int[][] _field_positions={ {SETTINGS_POS_LANG,SETTINGS_POS_SKIN,8,9 |
237 | //#if devicecontrol=="on" |
260 | //#if devicecontrol=="on" |
238 | ,13 |
261 | ,13 |
239 | //#endif |
262 | //#endif |
240 | } , {2,3} , {4,5,6,7,8} , {9,10,11},{SETTINGS_POS_BITFIELD1*8 +6,SETTINGS_POS_BITFIELD1*8 +7} ,{SETTINGS_POS_BITFIELD2*8+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_VOICEVOLUME }, {10,11,12,SETTINGS_POS_BITFIELD2*8+1,12}}; |
263 | } , {2,3} , {4,5,6,7,8} , {9,10,11},{SETTINGS_POS_BITFIELD1*8 +6,SETTINGS_POS_BITFIELD1*8 +7} ,{SETTINGS_POS_BITFIELD2*8+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_VOICEVOLUME }, {10,11,12,SETTINGS_POS_BITFIELD2*8+1,12}}; |
241 | public int[][] _field_types={ {PARAMTYPE_CHOICE+3,PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH |
264 | public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_CHOICE+1,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH |
242 | //#if devicecontrol=="on" |
265 | //#if devicecontrol=="on" |
Line 243... | Line 266... | ||
243 | ,PARAMTYPE_BITSWITCH |
266 | ,PARAMTYPE_BITSWITCH |
Line 269... | Line 292... | ||
269 | public void load() |
292 | public void load() |
270 | { |
293 | { |
271 | tab_stringids=_tab_stringids; |
294 | tab_stringids=_tab_stringids; |
Line 272... | Line 295... | ||
272 | 295 | ||
273 | // tab_names=_tab_names; |
- | |
- | 296 | // tab_names=_tab_names; |
|
274 | field_names=_field_names; |
297 | |
275 | field_positions=_field_positions; |
298 | field_positions=_field_positions; |
- | 299 | field_types=_field_types; |
|
- | 300 | ||
- | 301 | choice_stringids=_choice_stringids; |
|
- | 302 | ||
- | 303 | field_stringids=_field_stringids; |
|
- | 304 | //choice_strings=new String[_choice_strings.length+1][]; |
|
- | 305 | /* |
|
- | 306 | // FIXME |
|
- | 307 | choice_strings[0]=new String[2]; |
|
- | 308 | choice_strings[0][0]="English"; |
|
- | 309 | choice_strings[0][1]="Deutsch"; |
|
- | 310 | for ( int i=1; i<_choice_strings.length+1;i++) |
|
- | 311 | { |
|
- | 312 | choice_strings[i]=new String[_choice_strings[i-1].length+1]; |
|
- | 313 | for ( int ii=0; ii<_choice_strings[i-1].length;ii++) |
|
- | 314 | choice_strings[i][ii]=canvas.l(_choice_strings[i-1][ii]); |
|
- | 315 | } |
|
276 | field_types=_field_types; |
316 | */ |
277 | choice_strings=_choice_strings; |
317 | // choice_strings=_choice_strings; |
278 | try |
318 | try |
279 | { |
319 | { |
Line 280... | Line 320... | ||
280 | RecordStore recStore = RecordStore.openRecordStore(RECORD_STORE_NAME , true ); |
320 | RecordStore recStore = RecordStore.openRecordStore(RECORD_STORE_NAME , true ); |