Rev 5774 | Rev 5781 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5774 | Rev 5779 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | SetSkinColors(); |
110 | SetSkinColors(); |
111 | CreateDir("/tmp0/1/downloads"); |
111 | CreateDir("/tmp0/1/downloads"); |
112 | if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME); |
112 | if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME); |
113 | WB1.DrawBuf.zoom = 1; |
113 | WB1.DrawBuf.zoom = 1; |
114 | WB1.list.SetFont(8, 14, 10111000b); |
114 | WB1.list.SetFont(8, 14, 10111000b); |
- | 115 | WB1.list.no_selection = true; |
|
115 | SetEventMask(0xa7); |
116 | SetEventMask(0xa7); |
116 | BEGIN_LOOP_APPLICATION: |
117 | BEGIN_LOOP_APPLICATION: |
117 | WaitEventTimeout(2); |
118 | WaitEventTimeout(2); |
118 | switch(EAX & 0xFF) |
119 | switch(EAX & 0xFF) |
119 | { |
120 | { |
Line 278... | Line 279... | ||
278 | 279 | ||
279 | 280 | ||
280 | void Scan(dword id__) |
281 | void Scan(dword id__) |
- | 282 | { |
|
281 | { |
283 | action_buf=0; |
282 | action_buf=0; |
284 | if (WB1.list.ProcessKey(key_scancode)) WB1.DrawPage(); |
283 | switch (id__) |
285 | else switch (id__) |
284 | { |
286 | { |
285 | case SCAN_CODE_BS: |
287 | case SCAN_CODE_BS: |
286 | case BACK_BUTTON: |
288 | case BACK_BUTTON: |
287 | if (!BrowserHistory.GoBack()) return; |
289 | if (!BrowserHistory.GoBack()) return; |
288 | OpenPage(); |
290 | OpenPage(); |
289 | return; |
291 | return; |
290 | case FORWARD_BUTTON: |
292 | case FORWARD_BUTTON: |
291 | if (!BrowserHistory.GoForward()) return; |
293 | if (!BrowserHistory.GoForward()) return; |
292 | OpenPage(); |
- | |
293 | return; |
- | |
294 | case SCAN_CODE_HOME: |
- | |
295 | case SCAN_CODE_END: |
- | |
296 | case SCAN_CODE_PGUP: |
- | |
297 | case SCAN_CODE_PGDN: |
- | |
298 | if (WB1.list.ProcessKey(key_scancode)) WB1.DrawPage(); |
- | |
299 | return; |
- | |
300 | case SCAN_CODE_UP: |
- | |
301 | if (WB1.list.first <= 0) return; |
- | |
302 | WB1.list.first--; |
- | |
303 | WB1.DrawPage(); |
- | |
304 | return; |
- | |
305 | case SCAN_CODE_DOWN: |
- | |
306 | if (WB1.list.visible + WB1.list.first >= WB1.list.count) return; |
- | |
307 | WB1.list.first++; |
- | |
308 | WB1.DrawPage(); |
294 | OpenPage(); |
309 | return; |
295 | return; |
310 | case GOTOURL_BUTTON: |
296 | case GOTOURL_BUTTON: |
311 | case SCAN_CODE_ENTER: |
297 | case SCAN_CODE_ENTER: |
312 | if (!strncmp(#editURL,"http:",5)) || (editURL[0]=='/') || (!strncmp(#editURL,"WebView:",9)) |
298 | if (!strncmp(#editURL,"http:",5)) || (editURL[0]=='/') || (!strncmp(#editURL,"WebView:",9)) |