Rev 7780 | Rev 7788 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7780 | Rev 7784 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | _history history; |
42 | _history history; |
Line 43... | Line 43... | ||
43 | 43 | ||
Line 44... | Line 44... | ||
44 | #include "history.h" |
44 | #include "history.h" |
45 | - | ||
46 | #define PADDING 9 |
45 | |
47 | #define SKIN_Y 24 |
46 | #define PADDING 9 |
48 | #define TSZE 25 |
47 | #define TSZE 25 |
49 | #define STATUSBAR_H 15 |
48 | #define STATUSBAR_H 15 |
Line 94... | Line 93... | ||
94 | 93 | ||
95 | char editURL[URL_SIZE+1]; |
94 | char editURL[URL_SIZE+1]; |
96 | edit_box address_box = {, PADDING+TSZE*2+PADDING+6, PADDING+3, 0xffffff, |
95 | edit_box address_box = {, PADDING+TSZE*2+PADDING+6, PADDING+3, 0xffffff, |
Line -... | Line 96... | ||
- | 96 | 0x94AECE, 0xffffff, 0xffffff,0x10000000,URL_SIZE-2,#editURL,0,,19,19}; |
|
- | 97 | ||
Line 97... | Line 98... | ||
97 | 0x94AECE, 0xffffff, 0xffffff,0x10000000,URL_SIZE-2,#editURL,0,,19,19}; |
98 | char editbox_icons[] = FROM "editbox_icons.raw"; |
98 | 99 | ||
99 | 100 | ||
100 | void LoadLibraries() |
101 | void LoadLibraries() |
Line 136... | Line 137... | ||
136 | { |
137 | { |
137 | int i, btn, redirect_count=0; |
138 | int i, btn, redirect_count=0; |
138 | LoadLibraries(); |
139 | LoadLibraries(); |
139 | CreateDir("/tmp0/1/Downloads"); |
140 | CreateDir("/tmp0/1/Downloads"); |
140 | //CreateDir("/tmp0/1/WebView_Cache"); |
141 | //CreateDir("/tmp0/1/WebView_Cache"); |
141 | Libimg_LoadImage(#skin, "/sys/toolbar.png"); |
- | |
142 | HandleParam(); |
142 | HandleParam(); |
143 | skin.h = 26; |
- | |
144 | WB1.list.SetFont(8, 14, 10011000b); |
143 | WB1.list.SetFont(8, 14, 10011000b); |
145 | WB1.list.no_selection = true; |
144 | WB1.list.no_selection = true; |
146 | WB1.custom_encoding = -1; |
145 | WB1.custom_encoding = -1; |
147 | SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK); |
146 | SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK); |
148 | loop() switch(WaitEvent()) |
147 | loop() switch(WaitEvent()) |
Line 845... | Line 844... | ||
845 | status_text.start_y, 60, system.color.work_text, WB1.cur_encoding*10+#charsets); |
844 | status_text.start_y, 60, system.color.work_text, WB1.cur_encoding*10+#charsets); |
846 | } |
845 | } |
Line 847... | Line 846... | ||
847 | 846 | ||
848 | void DrawOmnibox() |
847 | void DrawOmnibox() |
849 | { |
848 | { |
Line 850... | Line 849... | ||
850 | int skin_x_offset; |
849 | int imgxoff; |
851 | 850 | ||
852 | DrawOvalBorder(address_box.left-2, address_box.top-3, address_box.width+18, 24, system.color.work_graph, |
851 | DrawOvalBorder(address_box.left-2, address_box.top-3, address_box.width+18, 24, system.color.work_graph, |
853 | system.color.work_graph, system.color.work_graph, system.color.work_dark); |
852 | system.color.work_graph, system.color.work_graph, system.color.work_dark); |
854 | DrawBar(address_box.left-1, address_box.top-2, address_box.width+18, 1, 0xD8DCD8); |
853 | DrawBar(address_box.left-1, address_box.top-2, address_box.width+18, 1, 0xD8DCD8); |
Line 855... | Line 854... | ||
855 | DrawBar(address_box.left-1, address_box.top-1, address_box.width+18, 1, address_box.color); |
854 | DrawBar(address_box.left-1, address_box.top-1, address_box.width+18, 1, address_box.color); |
856 | DrawBar(address_box.left-1, address_box.top, 1, 22, address_box.color); |
855 | DrawBar(address_box.left-1, address_box.top, 1, 22, address_box.color); |
857 | 856 | ||
858 | if (address_box.flags & ed_focus) address_box.flags = ed_focus; else address_box.flags = 0; |
857 | if (address_box.flags & ed_focus) address_box.flags = ed_focus; else address_box.flags = 0; |
859 | EditBox_UpdateText(#address_box, address_box.flags); |
858 | EditBox_UpdateText(#address_box, address_box.flags); |
860 | edit_box_draw stdcall(#address_box); |
- | |
861 | if (http.transfer > 0) skin_x_offset = 85; else skin_x_offset = 68; |
859 | edit_box_draw stdcall(#address_box); |
Line 862... | Line 860... | ||
862 | img_draw stdcall(skin.image, address_box.left+address_box.width+1, |
860 | if (http.transfer) imgxoff = 16*23*3; else imgxoff = 0; |
863 | address_box.top-1, 16, skin.h-3, skin_x_offset, SKIN_Y+2); |
861 | _PutImage(address_box.left+address_box.width+1, address_box.top-1, 16, 23, imgxoff + #editbox_icons); |
Line 864... | Line 862... | ||
864 | DefineHiddenButton(address_box.left+address_box.width-1, address_box.top-2, 17, skin.h-3, REFRESH_BUTTON); |
862 | DefineHiddenButton(address_box.left+address_box.width-1, address_box.top-2, 17, 23, REFRESH_BUTTON); |