23,19 → 23,7 |
|
String browser_dest=""; |
|
protected void startApp() |
throws MIDletStateChangeException |
{ |
|
if (loaded)return; |
display = Display.getDisplay(this); |
canvas=new DUBwiseInstallerCanvas(this); |
|
// fire up canvas |
display.setCurrent(canvas); |
} |
|
|
public int[][] res_vals = { {480,640},{340,400},{240,320},{200,300},{176,220},{128,128} }; |
public String[] res_strings; |
|
42,7 → 30,8 |
public String[] feature_strings={"Bluetooth","Location API","File Connection","Device Control","Fullscreen","cldc11"}; |
|
public String[] sound_strings={"en_speedy","en_wav","de_tts","de_wav","de_64kbit_tts","wav","no_voice"}; |
public String[] firmware_strings={"all_firmwares","fc_mk3mag_firmwares","no_firmwares"}; |
public String[] firmware_strings={"No Firmwars","All Firmwares","FC&MK3MAF Firmwares"}; |
public String[] firmware_clean_strings={"no_firmwares","all_firmwares","fc_mk3mag_firmwares"}; |
|
public String[] installmethod_strings={"online Install","show Filename"};//,"email URL"}; |
|
55,6 → 44,33 |
public int installsrc_select=0; |
|
|
String helper_url=null; |
String download_url=null; |
|
boolean http_possible; |
|
|
ChoiceGroup res_choice; |
ChoiceGroup features_choice; |
ChoiceGroup sound_choice; |
ChoiceGroup installmethod_choice; |
ChoiceGroup installsrc_choice; |
ChoiceGroup firmware_choice; |
|
|
protected void startApp() |
throws MIDletStateChangeException |
{ |
|
if (loaded)return; |
display = Display.getDisplay(this); |
canvas=new DUBwiseInstallerCanvas(this); |
|
// fire up canvas |
display.setCurrent(canvas); |
} |
|
|
public String installsrc_str() |
{ |
return installsrc_clean_strings[installsrc_select]; |
87,7 → 103,7 |
|
public String firmware_str() |
{ |
return firmware_strings[firmware_select]; |
return firmware_clean_strings[firmware_select]; |
} |
|
public String devicecontrol_str() |
131,11 → 147,7 |
} |
} |
|
String helper_url=null; |
String download_url=null; |
|
boolean http_possible; |
|
public void run() |
{ |
|
181,12 → 193,8 |
|
} |
|
ChoiceGroup res_choice; |
ChoiceGroup features_choice; |
ChoiceGroup sound_choice; |
ChoiceGroup installmethod_choice; |
ChoiceGroup installsrc_choice; |
|
|
public void quit() { |
|
try |
240,6 → 248,7 |
res_choice.setSelectedIndex(res_select,true); |
form.append(res_choice); |
|
|
features_choice = new ChoiceGroup( |
"Features ", |
Choice.MULTIPLE, |
255,6 → 264,18 |
features_choice.setSelectedIndex(5,canvas.cldc11); |
form.append(features_choice); |
|
|
|
firmware_choice = new ChoiceGroup( |
"Firmwares:", |
Choice.EXCLUSIVE, |
firmware_strings, |
null); |
|
firmware_choice.setSelectedIndex(firmware_select,true); |
form.append(firmware_choice); |
|
|
sound_choice = new ChoiceGroup( |
"Sound ", |
Choice.EXCLUSIVE, |
289,6 → 310,7 |
public void process_edit_form() |
{ |
res_select=res_choice.getSelectedIndex(); |
firmware_select=firmware_choice.getSelectedIndex(); |
sound_select=sound_choice.getSelectedIndex(); |
installsrc_select= installsrc_choice.getSelectedIndex(); |
|