Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2415 → Rev 2416

/programs/network/htmlv/browser/TWB.h
81,7 → 81,8
if (!strcmp(get_URL_part(5),"http:"))) HttpLoad();
//Lee 21.02 }
ShowPage(#URL);
copystr(#URL, #editURL);
//ShowPage(#URL);
Draw_Window();
return;
}
202,9 → 203,7
void HttpLoad()
{
za_kadrom = 0;
copystr(#URL, #editURL);
 
KillProcess(downloader_id); //óáèâàåì ñòàðûé ïðîöåññ
DeleteFile(#download_path);
IF (URL[strlen(#URL)-1]=='/') URL[strlen(#URL)-1]='';
/programs/network/htmlv/browser/include/history.h
9,9 → 9,9
 
void UrlsHistory::GoBack()
{
//WriteDebug(#UrlHistory);
WriteDebug(#UrlHistory);
//find_symbol(#UrlHistory, '|')
j = strlen(#UrlHistory);
WHILE(UrlHistory[j] <>'|') && (j > 0) j--;
IF (j > 0) UrlHistory[j] = 0x00;
20,6 → 20,8
j--;
}
UrlHistory[j] = 0x00;
copystr(#URL, #editURL);
WB1.ShowPage(#URL);
}
 
/programs/network/htmlv/lib/kolibri.h--
64,26 → 64,7
vert = EBX;
}
 
struct proc_info{
dword use_cpu;
word pos_in_stack,num_slot,rezerv1;
char name[11];
char rezerv2;
dword adress,use_memory,ID,left,top,width,height;
word status_slot,rezerv3;
dword work_left,work_top,work_width,work_height;
char status_window;
void GetInfo(dword ECX);
byte reserved[1024-71];
#define SelfInfo -1
};
 
void GetProcessInfo(dword EBX, ECX)
{
EAX = 9;
$int 0x40
}
 
struct system_colors{
dword frame,grab,grab_button,grab_button_text,grab_text,work,work_button,work_button_text,work_text,work_graph;
void get();
140,6 → 121,15
EAX = EAX >> 8;
}
 
 
inline fastcall Pause(dword EBX)
{ // ã§ , ¢ á®âëå ¤®«ïå ᥪ㭤ë EBX = value
$mov eax, 5
$int 0x40
}
 
//==================================================================
 
inline fastcall word GetButtonID(){
EAX = 17;
$int 0x40
146,18 → 136,45
EAX = EAX >> 8;
}
 
struct proc_info{
dword use_cpu;
word pos_in_stack,num_slot,rezerv1;
char name[11];
char rezerv2;
dword adress,use_memory,ID,left,top,width,height;
word status_slot,rezerv3;
dword work_left,work_top,work_width,work_height;
char status_window;
void GetInfo(dword ECX);
byte reserved[1024-71];
#define SelfInfo -1
};
 
void GetProcessInfo(dword EBX, ECX)
{
EAX = 9;
$int 0x40
}
 
int GetProcessSlot(ECX) //ECX = process ID
{
EAX = 18;
EBX = 21;
$int 0x40;
}
 
inline fastcall ExitProcess(){
EAX = -1; // close this program
$int 0x40
}
 
inline fastcall Pause(dword EBX)
{ // ã§ , ¢ á®âëå ¤®«ïå ᥪ㭤ë EBX = value
$mov eax, 5
inline fastcall KillProcess(dword ECX){
$mov eax,18;
$mov ebx,18;
$int 0x40
}
 
//------------------------------------------------------------------------------
//==================================================================
 
//eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus)
inline fastcall int GetSystemLanguage(){
479,16 → 496,13
 
//------------------------------------------------------------------------------
 
byte WindowRePaint=0;
inline fastcall void WindowRedrawStatus(dword EBX)
 
void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword mainAreaColour,byte headerType,dword headerColour,EDI)
{
EAX = 12; // function 12:tell os about windowdraw
EBX = 1;
$int 0x40
IF (EBX==1) WindowRePaint=1; ELSE WindowRePaint=0;
}
 
void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword mainAreaColour,byte headerType,dword headerColour,EDI)
{
EBX = x << 16 + sizeX;
ECX = y << 16 + sizeY;
EDX = mainAreaType << 24 | mainAreaColour;
495,8 → 509,13
ESI = headerType << 24 | headerColour;
$xor eax,eax
$int 0x40
 
EAX = 12; // function 12:tell os about windowdraw
EBX = 2;
$int 0x40
}
 
 
inline fastcall dword CreateThread(dword ECX,EDX)
{
EAX = 51;