/programs/cmm/browser/WebView.c |
---|
1,6 → 1,6 |
//HTML Viewer in C-- |
//Copyright 2007-2013 by Veliant & Leency |
//Asper, lev, Lrz, Barsuk, Nable... |
//Copyright 2007-2017 by Veliant & Leency |
//Asper, lev, Lrz, Barsuk, Nable, hidnplayr... |
#ifndef AUTOBUILD |
#include "lang.h--" |
30,7 → 30,7 |
char homepage[] = FROM "html\\homepage.htm""\0"; |
#ifdef LANG_RUS |
char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.6"; |
char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.61"; |
?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
char loading[] = " £à㧪 áâà ¨æë...<br>"; |
43,7 → 43,7 |
ç¨áâ¨âì ªíè ª à⨮ª |
¥¥¤¦¥à § £à㧮ª"; |
#else |
char version[]="Text-based Browser 1.6"; |
char version[]="Text-based Browser 1.61"; |
?define IMAGES_CACHE_CLEARED "Images cache cleared" |
?define T_LAST_SLIDE "This slide is the last" |
char loading[] = "Loading...<br>"; |
126,12 → 126,10 |
if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME); |
WB1.list.SetFont(8, 14, 10011000b); |
WB1.list.no_selection = true; |
SetEventMask(0xa7); |
BEGIN_LOOP_APPLICATION: |
WaitEventTimeout(2); |
switch(EAX & 0xFF) |
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK); |
loop() switch(WaitEvent()) |
{ |
CASE evMouse: |
case evMouse: |
if (!CheckActiveProcess(Form.ID)) break; |
edit_box_mouse stdcall (#address_box); |
mouse.get(); |
259,7 → 257,6 |
} |
} |
} |
goto BEGIN_LOOP_APPLICATION; |
} |
void SetElementSizes() |
/programs/cmm/browser/download_manager.h |
---|
39,7 → 39,7 |
int key, i; |
char notify_message[4296]; |
downloader_opened = 1; |
SetEventMask(0x27); |
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK); |
system.color.get(); |
pb.frame_color = system.color.work_dark; |
50,12 → 50,9 |
if (downloader_edit[0]) StartDownloading(); else strcpy(#downloader_edit, "http://"); |
ed.size = ed.pos = ed.shift = ed.shift_old = strlen(#downloader_edit); |
loop() |
loop() switch(WaitEvent()) |
{ |
WaitEventTimeout(30); |
switch(EAX & 0xFF) |
{ |
CASE evMouse: |
case evMouse: |
if (!CheckActiveProcess(DL_Form.ID)) break; |
edit_box_mouse stdcall (#ed); |
break; |
114,7 → 111,6 |
} |
} |
} |
} |
void Key_Scan(int id) |
{ |
/programs/cmm/lib/kolibri.h |
---|
36,6 → 36,7 |
#define evReDraw 1 |
#define evKey 2 |
#define evButton 3 |
#define evExit 4 |
#define evDesktop 5 |
#define evMouse 6 |
#define evIPC 7 |
42,6 → 43,21 |
#define evNetwork 8 |
#define evDebug 9 |
//Event mask bits for function 40 |
#define EVM_REDRAW 1b |
#define EVM_KEY 10b |
#define EVM_BUTTON 100b |
#define EVM_EXIT 1000b |
#define EVM_BACKGROUND 10000b |
#define EVM_MOUSE 100000b |
#define EVM_IPC 1000000b |
#define EVM_STACK 10000000b |
#define EVM_DEBUG 100000000b |
#define EVM_STACK2 1000000000b |
#define EVM_MOUSE_FILTER 0x80000000 |
#define EVM_CURSOR_FILTER 0x40000000 |
//Button options |
#define BT_DEL 0x80000000 |
#define BT_HIDE 0x40000000 |
92,7 → 108,7 |
$int 0x40 |
} |
inline fastcall SetEventMask(EBX) |
inline fastcall dword SetEventMask(EBX) |
{ |
$mov eax,40 |
$int 0x40 |
/programs/cmm/lib/obj/libimg_lib.h |
---|
121,4 → 121,16 |
return 0; |
} |
void DrawLibImage(dword image_pointer,x,y,w,h,offx,offy) { |
img_draw stdcall ( |
image_pointer, |
x, |
y, |
w, |
h, |
offx, |
offy |
); |
} |
#endif |