1,12 → 1,11 |
//Leency & SoUrcerer, LGPL |
//Hidnplayer |
|
TWebBrowser WB1; |
|
#define LIST_INFO_H 59 |
int status_bar_h = 15; |
|
scroll_bar scroll1 = { 17,200,210, LIST_INFO_H-3,18,0,115,15,0,0xCCCccc,0xD2CED0,0x555555,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; |
scroll_bar scroll_wv; |
|
char *listbuffer; |
char *listpointer; |
17,6 → 16,7 |
|
int cur_charset; |
|
llist list; |
|
enum { |
GET_MAIL = 20, |
93,7 → 93,6 |
|
case SEND_RETR: |
from = to = date = subj = cur_charset = NULL; |
WB1.list.ClearList(); |
DrawMailBox(); |
request_len = GetRequest("RETR", itoa(mail_list.cur_y+1)); |
if (Send(socketnum, #request, request_len, 0) == 0xffffffff) |
150,7 → 149,6 |
|
mail_list.h = Form.cheight/4; |
mail_list.ClearList(); |
WB1.list.no_selection = true; |
SetMailBoxStatus( NULL , NULL); |
cur_charset = 0; |
aim = SEND_NSTAT; |
176,7 → 174,7 |
break; |
} |
|
links.hover(mouse.x, mouse.y); |
//links.hover(mouse.x, mouse.y); |
|
if (!mail_list.count) break; |
if (!panels_drag) { scrollbar_v_mouse (#scroll1); scrollbar_v_mouse (#scroll_wv); } |
187,9 → 185,9 |
DrawMailList(); |
break; |
}; |
if (WB1.list.first <> scroll_wv.position) |
if (list.first <> scroll_wv.position) |
{ |
WB1.list.first = scroll_wv.position; |
list.first = scroll_wv.position; |
DrawLetter(); |
break; |
}; |
200,7 → 198,7 |
} |
else |
{ |
if (WB1.list.MouseScroll(mouse.vert)) DrawLetter(); |
if (list.MouseScroll(mouse.vert)) DrawLetter(); |
} |
if (mouse.lkm) && (mail_list.MouseOver(mouse.x, mouse.y)) && (!clicked_list) clicked_list=1; |
if (!mouse.lkm) && (clicked_list) if (mail_list.ProcessMouse(mouse.x, mouse.y)) |
282,7 → 280,6 |
{ |
DrawMailList(); |
DrawLetterInfo(); |
InitTWB(); |
DrawLetter(); |
DrawStatusBar(); |
} |
351,19 → 348,8 |
} |
|
|
void InitTWB() { |
WB1.list.SetSizes(0, mail_list.y+mail_list.h+LIST_INFO_H+1, Form.cwidth - scroll_wv.size_x - 1, |
Form.cheight - mail_list.y - mail_list.h - LIST_INFO_H - 1 - status_bar_h, 12); |
WB1.list.column_max = WB1.list.w - 30 / 6; |
WB1.list.visible = WB1.list.h / WB1.list.item_h; |
DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h); |
WB1.list.first = WB1.list.count = 0; |
} |
|
|
void DrawLetter() { |
WB1.ParseHtml(mdata, strlen(mdata)); |
WB1.DrawPage(); |
//DrawTextLines(); |
DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, 0xFFFfff); |
} |
|
418,6 → 404,8 |
} |
|
|
/* |
void EventClickLink() { |
RunProgram("/sys/network/WebView", links.active_url); |
} |
} |
*/ |