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 7... | Line 7... | ||
7 | ********************************************************/ |
7 | ********************************************************/ |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | import javax.microedition.lcdui.*; |
9 | import javax.microedition.lcdui.*; |
10 | 10 | ||
11 | public class MKParamsEditor |
11 | public class MKParamsEditor |
Line 12... | Line 12... | ||
12 | implements org.ligi.ufo.MKParamDefinitions |
12 | implements org.ligi.ufo.MKParamDefinitions, org.ligi.ufo.DUBwiseLangDefs |
Line 13... | Line 13... | ||
13 | { |
13 | { |
Line 43... | Line 43... | ||
43 | 43 | ||
44 | public void paint ( Graphics g) |
44 | public void paint ( Graphics g) |
45 | { |
45 | { |
46 | if (select_mode) |
46 | if (select_mode) |
47 | { |
47 | { |
48 | if (canvas.menu_items[0]!=edit_source.tab_names[0]) // usefull? |
48 | if (canvas.menu_items[0]!=canvas.l(edit_source.tab_stringids[0])) // usefull? |
49 | { |
49 | { |
50 | act_y=1; |
50 | act_y=1; |
51 | menu_items=new String[edit_source.tab_names.length+1]; |
51 | menu_items=new String[edit_source.tab_stringids.length+1]; |
52 | for(int p=0;p<edit_source.tab_names.length;p++) |
52 | for(int p=0;p<edit_source.tab_stringids.length;p++) |
53 | menu_items[p]=edit_source.tab_names[p]; |
53 | menu_items[p]=canvas.l(edit_source.tab_stringids[p]); |
54 | menu_items[edit_source.tab_names.length]="back"; |
54 | menu_items[edit_source.tab_stringids.length]=canvas.l(STRINGID_BACK); |
55 | canvas.setup_menu(menu_items,null); |
55 | canvas.setup_menu(menu_items,null); |
56 | } |
56 | } |
57 | canvas.paint_menu(g); |
57 | canvas.paint_menu(g); |
Line 75... | Line 75... | ||
75 | for ( int i=0;i<act_lcd_lines;i++) |
75 | for ( int i=0;i<act_lcd_lines;i++) |
76 | lcd_lines[i]=""; |
76 | lcd_lines[i]=""; |
Line 77... | Line 77... | ||
77 | 77 | ||
Line 78... | Line 78... | ||
78 | 78 | ||
79 | 79 | ||
80 | // lcd_lines[0]=(act_tab==0?" ":"< ") + edit_source.tab_names[act_tab] + (act_tab==(edit_source.tab_names.length-1)?" ":" >"); |
80 | // lcd_lines[0]=(act_tab==0?" ":"< ") + edit_source.tab_stringids[act_tab] + (act_tab==(edit_source.tab_stringids.length-1)?" ":" >"); |
Line 129... | Line 129... | ||
129 | lcd_lines[1+2*i]=" "+edit_source.choice_strings[edit_source.field_types[act_tab][i]-PARAMTYPE_CHOICE][edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])]; |
129 | lcd_lines[1+2*i]=" "+edit_source.choice_strings[edit_source.field_types[act_tab][i]-PARAMTYPE_CHOICE][edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])]; |
130 | } |
130 | } |
Line 131... | Line 131... | ||
131 | 131 | ||
Line 132... | Line 132... | ||
132 | } |
132 | } |
Line 133... | Line 133... | ||
133 | 133 | ||
134 | lcd_lines[act_lcd_lines-1]="back"; |
134 | lcd_lines[act_lcd_lines-1]=canvas.l(STRINGID_BACK); |
135 | 135 | ||
136 | canvas.lcd_lines=new String[act_lcd_lines]; |
136 | canvas.lcd_lines=new String[act_lcd_lines]; |
Line 164... | Line 164... | ||
164 | 164 | ||
Line 165... | Line 165... | ||
165 | public boolean editing_number=false; |
165 | public boolean editing_number=false; |
166 | 166 | ||
167 | public void pointer_press(int x,int row) |
- | |
168 | { |
- | |
169 | 167 | public void pointer_press(int x,int row) |
|
170 | System.out.println("!!!!!!!!!!!!!!row:"+row); |
168 | { |
171 | if (select_mode) |
169 | if (select_mode) |
172 | { |
170 | { |