Subversion Repositories Projects

Rev

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

Rev 245 Rev 255
Line 12... Line 12...
12
 
12
 
Line 13... Line 13...
13
import java.io.*;
13
import java.io.*;
14
 
14
 
15
public class DUBwiseSettings
15
public class DUBwiseSettings
16
    extends org.ligi.ufo.ParamsClass
16
    extends org.ligi.ufo.ParamsClass
17
    implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions
17
    implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions,org.ligi.ufo.DUBwiseLangDefs
18
{
18
{
Line 19... Line 19...
19
    // name/handle for the recordStore to memorize some stuff
19
    // name/handle for the recordStore to memorize some stuff
20
    private final static String RECORD_STORE_NAME="DUBSETT_V4";
20
    private final static String RECORD_STORE_NAME="DUBSETT_V4";
21
 
21
 
Line 22... Line -...
22
    /* all settings hold here */
-
 
23
    //holds id of actual skin
-
 
24
    public byte act_skin=SKINID_DARK;
22
    /* all settings hold here */
25
 
23
    //holds id of actual skin
26
 
24
    public byte act_skin=SKINID_DARK;
Line 27... Line 25...
27
 
25
 
Line 92... Line 90...
92
    public final static int SETTINGS_POS_KEY_FULL=10;
90
    public final static int SETTINGS_POS_KEY_FULL=10;
93
    public final static int SETTINGS_POS_KEY_CLEAR=11;
91
    public final static int SETTINGS_POS_KEY_CLEAR=11;
94
    public final static int SETTINGS_POS_VOICEVOLUME=12;
92
    public final static int SETTINGS_POS_VOICEVOLUME=12;
95
    public final static int SETTINGS_POS_VOICEDELAY=13;
93
    public final static int SETTINGS_POS_VOICEDELAY=13;
96
    public final static int SETTINGS_POS_BITFIELD2=14;
94
    public final static int SETTINGS_POS_BITFIELD2=14;
-
 
95
    public final static int SETTINGS_POS_LANG=15;
Line 97... Line 96...
97
 
96
 
98
 
97
 
Line -... Line 98...
-
 
98
    public void field2setting(int pos,int val)
-
 
99
    {
-
 
100
       
-
 
101
 
-
 
102
        if (pos==SETTINGS_POS_LANG)
-
 
103
            {
-
 
104
                canvas.act_lang=(byte)val;
-
 
105
                canvas.load_strings();
99
    public void field2setting(int pos,int val)
106
            }
100
    {
107
 
101
       
108
 
102
        if (pos==SETTINGS_POS_SKIN)
109
        if (pos==SETTINGS_POS_SKIN)
103
            {
110
            {
Line 213... Line 220...
213
    public byte[] default_extern_control;//=default_extern_keycontrol ;
220
    public byte[] default_extern_control;//=default_extern_keycontrol ;
Line 214... Line 221...
214
 
221
 
Line 215... Line 222...
215
 
222
 
-
 
223
    /* end of all settings hold here */
Line -... Line 224...
-
 
224
 
216
    /* end of all settings hold here */
225
    //    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" };
217
 
226
 
218
    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" };
227
 
219
 
228
    public int[] _tab_stringids={STRINGID_USERINTERFACE,STRINGID_GPS,STRINGID_KEYCONTROL,STRINGID_SPECIALKEYS,STRINGID_GRAPH,STRINGID_VOICE,STRINGID_OTHER};
220
    public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background"
229
    public String[][] _field_names={ { "Language","Skin","Fullscreen","Scroll Background"
Line 221... Line 230...
221
//#if devicecontrol=="on"
230
//#if devicecontrol=="on"
222
                                       ,"Permanent Light"
231
                                       ,"Permanent Light"
223
//#endif
232
//#endif
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"} };
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"} };
225
 
234
 
226
    public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"}} ;
235
    public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"},{"English","Deutsch"} } ;
227
    public int[][] _field_positions={ {SETTINGS_POS_SKIN,8,9
236
    public int[][] _field_positions={ {SETTINGS_POS_LANG,SETTINGS_POS_SKIN,8,9
228
//#if devicecontrol=="on"
237
//#if devicecontrol=="on"
229
                                       ,13
238
                                       ,13
230
//#endif
239
//#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*8+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_VOICEVOLUME },  {10,11,12,SETTINGS_POS_BITFIELD2*8+1,12}};
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}};
232
    public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH
241
    public int[][] _field_types={ {PARAMTYPE_CHOICE+3,PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH
Line 257... Line 266...
257
 
266
 
Line 258... Line 267...
258
    }
267
    }
259
       
268
       
-
 
269
    public void load()
Line 260... Line 270...
260
    public void load()
270
    {
261
    {
271
        tab_stringids=_tab_stringids;
262
 
272
 
263
        tab_names=_tab_names;
273
        //      tab_names=_tab_names;
264
        field_names=_field_names;
274
        field_names=_field_names;
265
        field_positions=_field_positions;
275
        field_positions=_field_positions;