Subversion Repositories Projects

Rev

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

Rev 280 Rev 285
Line 21... Line 21...
21
    public boolean loaded=false;
21
    public boolean loaded=false;
Line 22... Line 22...
22
 
22
 
Line 23... Line -...
23
 
-
 
24
    String browser_dest="";
-
 
25
 
-
 
26
    protected void startApp()
-
 
27
        throws MIDletStateChangeException
-
 
28
    {
-
 
29
 
-
 
30
       if (loaded)return;
-
 
31
       display  = Display.getDisplay(this);
-
 
32
       canvas=new  DUBwiseInstallerCanvas(this);
-
 
33
 
-
 
34
       // fire up canvas
-
 
Line 35... Line 23...
35
       display.setCurrent(canvas);
23
 
36
    }
24
    String browser_dest="";
Line 37... Line 25...
37
 
25
 
Line 38... Line 26...
38
 
26
 
-
 
27
    public int[][] res_vals = { {480,640},{340,400},{240,320},{200,300},{176,220},{128,128} };
39
    public int[][] res_vals = { {480,640},{340,400},{240,320},{200,300},{176,220},{128,128} };
28
    public String[] res_strings;
Line 40... Line 29...
40
    public String[] res_strings;
29
 
Line 41... Line 30...
41
 
30
    public String[] feature_strings={"Bluetooth","Location API","File Connection","Device Control","Fullscreen","cldc11"};
42
    public String[] feature_strings={"Bluetooth","Location API","File Connection","Device Control","Fullscreen","cldc11"};
31
 
Line 53... Line 42...
53
    public int sound_select=0;
42
    public int sound_select=0;
54
    public int firmware_select=0;
43
    public int firmware_select=0;
55
    public int installsrc_select=0;
44
    public int installsrc_select=0;
Line -... Line 45...
-
 
45
   
-
 
46
 
-
 
47
    String helper_url=null;
-
 
48
    String download_url=null;
-
 
49
 
-
 
50
    boolean http_possible;
-
 
51
 
-
 
52
 
-
 
53
    ChoiceGroup res_choice;
-
 
54
    ChoiceGroup features_choice;
-
 
55
    ChoiceGroup sound_choice;
-
 
56
    ChoiceGroup installmethod_choice;
-
 
57
    ChoiceGroup installsrc_choice;
-
 
58
    ChoiceGroup firmware_choice;
-
 
59
 
-
 
60
 
-
 
61
    protected void startApp()
-
 
62
        throws MIDletStateChangeException
-
 
63
    {
-
 
64
 
-
 
65
       if (loaded)return;
-
 
66
       display  = Display.getDisplay(this);
-
 
67
       canvas=new  DUBwiseInstallerCanvas(this);
-
 
68
 
-
 
69
       // fire up canvas
-
 
70
       display.setCurrent(canvas);
-
 
71
    }
56
   
72
 
57
 
73
 
58
    public String installsrc_str()
74
    public String installsrc_str()
59
    {
75
    {
Line 85... Line 101...
85
    }
101
    }
Line 86... Line 102...
86
 
102
 
87
 
103
 
88
    public String firmware_str()
104
    public String firmware_str()
89
    {
105
    {
Line 90... Line 106...
90
        return firmware_strings[firmware_select];
106
        return firmware_clean_strings[firmware_select];
91
    }
107
    }
92
 
108
 
Line 129... Line 145...
129
            {
145
            {
130
                return  res_strings[0];
146
                return  res_strings[0];
131
            }
147
            }
132
    }
148
    }
Line 133... Line -...
133
 
-
 
134
    String helper_url=null;
-
 
135
    String download_url=null;
-
 
136
 
-
 
Line 137... Line 149...
137
    boolean http_possible;
149
 
138
 
150
 
Line 139... Line 151...
139
    public void run()
151
    public void run()
Line 179... Line 191...
179
            +"Download URL:" + getURL() + "\n"
191
            +"Download URL:" + getURL() + "\n"
180
            +canvas.props;
192
            +canvas.props;
Line 181... Line 193...
181
 
193
 
Line 182... Line -...
182
    }
-
 
183
 
-
 
184
    ChoiceGroup res_choice;
-
 
185
    ChoiceGroup features_choice;
-
 
186
    ChoiceGroup sound_choice;
-
 
-
 
194
    }
Line 187... Line 195...
187
    ChoiceGroup installmethod_choice;
195
 
Line 188... Line 196...
188
    ChoiceGroup installsrc_choice;
196
 
189
 
197
 
Line 238... Line 246...
238
                        null);
246
                        null);
Line 239... Line 247...
239
 
247
 
240
        res_choice.setSelectedIndex(res_select,true);
248
        res_choice.setSelectedIndex(res_select,true);
Line -... Line 249...
-
 
249
        form.append(res_choice);
241
        form.append(res_choice);
250
 
242
 
251
 
243
        features_choice = new ChoiceGroup(
252
        features_choice = new ChoiceGroup(
244
                                                 "Features ",
253
                                                 "Features ",
245
                        Choice.MULTIPLE,
254
                        Choice.MULTIPLE,
Line 253... Line 262...
253
        features_choice.setSelectedIndex(3,canvas.devicecontrol);
262
        features_choice.setSelectedIndex(3,canvas.devicecontrol);
254
        features_choice.setSelectedIndex(4,canvas.fullscreen);
263
        features_choice.setSelectedIndex(4,canvas.fullscreen);
255
        features_choice.setSelectedIndex(5,canvas.cldc11);
264
        features_choice.setSelectedIndex(5,canvas.cldc11);
256
        form.append(features_choice);
265
        form.append(features_choice);
Line -... Line 266...
-
 
266
 
-
 
267
 
-
 
268
 
-
 
269
        firmware_choice = new ChoiceGroup(
-
 
270
                                     "Firmwares:",
-
 
271
                        Choice.EXCLUSIVE,
-
 
272
                        firmware_strings,
-
 
273
                        null);
-
 
274
 
-
 
275
        firmware_choice.setSelectedIndex(firmware_select,true);
-
 
276
        form.append(firmware_choice);
-
 
277
 
257
 
278
 
258
        sound_choice = new ChoiceGroup(
279
        sound_choice = new ChoiceGroup(
259
                                                 "Sound ",
280
                                                 "Sound ",
260
                        Choice.EXCLUSIVE,
281
                        Choice.EXCLUSIVE,
261
                        sound_strings,
282
                        sound_strings,
Line 287... Line 308...
287
    }
308
    }
Line 288... Line 309...
288
 
309
 
289
    public void process_edit_form()
310
    public void process_edit_form()
290
    {
311
    {
-
 
312
        res_select=res_choice.getSelectedIndex();
291
        res_select=res_choice.getSelectedIndex();
313
        firmware_select=firmware_choice.getSelectedIndex();
292
        sound_select=sound_choice.getSelectedIndex();
314
        sound_select=sound_choice.getSelectedIndex();
Line 293... Line 315...
293
        installsrc_select=      installsrc_choice.getSelectedIndex();
315
        installsrc_select=      installsrc_choice.getSelectedIndex();
294
 
316