forked from KolibriOS/kolibrios
Eolite: small improvements
git-svn-id: svn://kolibrios.org@2158 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
20a4ca93e3
commit
6d94cdfb6f
@ -367,7 +367,7 @@ int pressed_y;
|
|||||||
inline fastcall void draw_window()
|
inline fastcall void draw_window()
|
||||||
{
|
{
|
||||||
WindowRedrawStatus(1);
|
WindowRedrawStatus(1);
|
||||||
DefineAndDrawWindow(98,90,580,481,0x73,0x10E4DFE1,0,0,title);
|
DefineAndDrawWindow(98,90,582,482,0x73,0x10E4DFE1,0,0,title);
|
||||||
WindowRedrawStatus(2);
|
WindowRedrawStatus(2);
|
||||||
Form.GetInfo(#Form, SelfInfo);
|
Form.GetInfo(#Form, SelfInfo);
|
||||||
IF (Form.height==GetSkinWidth()+3) return; //ничего не делать если окно схлопнуто в заголовок
|
IF (Form.height==GetSkinWidth()+3) return; //ничего не делать если окно схлопнуто в заголовок
|
||||||
|
@ -4,7 +4,8 @@ dword Put_icon(dword extension, yy)
|
|||||||
{
|
{
|
||||||
dword ftype="", fnum=0; //åøè íåèçâåñíûé ôàéë
|
dword ftype="", fnum=0; //åøè íåèçâåñíûé ôàéë
|
||||||
|
|
||||||
IF (!strcmp(extension,"htm")) || (!strcmp(extension,"html")) {fnum = 2; ftype="Web-page";}
|
IF (!strcmp(extension,"htm")) || (!strcmp(extension,"html")) ||
|
||||||
|
(!strcmp(extension,"mht")) {fnum = 2; ftype="Web-page";}
|
||||||
IF (!strcmp(extension,"ini")) || (!strcmp(extension,"conf")) {fnum = 3; ftype="Config";}
|
IF (!strcmp(extension,"ini")) || (!strcmp(extension,"conf")) {fnum = 3; ftype="Config";}
|
||||||
IF (!strcmp(extension,"xlt")) || (!strcmp(extension,"xls")) ||
|
IF (!strcmp(extension,"xlt")) || (!strcmp(extension,"xls")) ||
|
||||||
(!strcmp(extension,"ods")) || (!strcmp(extension,"xlsx")) {fnum = 4; ftype="Table";}
|
(!strcmp(extension,"ods")) || (!strcmp(extension,"xlsx")) {fnum = 4; ftype="Table";}
|
||||||
@ -29,7 +30,7 @@ dword Put_icon(dword extension, yy)
|
|||||||
//text
|
//text
|
||||||
IF (!strcmp(extension,"txt")) || (!strcmp(extension,"doc")) ||
|
IF (!strcmp(extension,"txt")) || (!strcmp(extension,"doc")) ||
|
||||||
(!strcmp(extension,"rtf")) || (!strcmp(extension,"odt")) ||
|
(!strcmp(extension,"rtf")) || (!strcmp(extension,"odt")) ||
|
||||||
(!strcmp(extension,"docx")) {fnum = 1; ftype="Text";}
|
(!strcmp(extension,"log")) || (!strcmp(extension,"docx")) {fnum = 1; ftype="Text";}
|
||||||
//èçîáðàæåíèÿ
|
//èçîáðàæåíèÿ
|
||||||
IF (!strcmp(extension,"gif")) || (!strcmp(extension,"bmp")) ||
|
IF (!strcmp(extension,"gif")) || (!strcmp(extension,"bmp")) ||
|
||||||
(!strcmp(extension,"tga")) || (!strcmp(extension,"pcx")) ||
|
(!strcmp(extension,"tga")) || (!strcmp(extension,"pcx")) ||
|
||||||
@ -38,7 +39,8 @@ dword Put_icon(dword extension, yy)
|
|||||||
(!strcmp(extension,"jpeg")) || (!strcmp(extension,"raw")) ||
|
(!strcmp(extension,"jpeg")) || (!strcmp(extension,"raw")) ||
|
||||||
(!strcmp(extension,"psd")) {fnum = 19; ftype="Image";}
|
(!strcmp(extension,"psd")) {fnum = 19; ftype="Image";}
|
||||||
//ïèêòîãðàììû
|
//ïèêòîãðàììû
|
||||||
IF (!strcmp(extension,"ico")) || (!strcmp(extension,"cur")) {fnum = 20; ftype="Icon";}
|
IF (!strcmp(extension,"ico")) {fnum = 20; ftype="Icon";}
|
||||||
|
IF (!strcmp(extension,"cur")) || (!strcmp(extension,"ani")) {fnum = 20; ftype="Cursor";}
|
||||||
//àðõèâû
|
//àðõèâû
|
||||||
IF (!strcmp(extension,"rar")) || (!strcmp(extension,"zip")) ||
|
IF (!strcmp(extension,"rar")) || (!strcmp(extension,"zip")) ||
|
||||||
(!strcmp(extension,"cab")) || (!strcmp(extension,"tar")) ||
|
(!strcmp(extension,"cab")) || (!strcmp(extension,"tar")) ||
|
||||||
|
@ -81,9 +81,11 @@ void GetIni(byte onload)
|
|||||||
/// íóæíî ÷òîáû ïðîñòî âîçâðàùàëî òåêñò ///
|
/// íóæíî ÷òîáû ïðîñòî âîçâðàùàëî òåêñò ///
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
void Write_Debug_Error(int error_number){
|
void Write_Debug_Error(int error_number)
|
||||||
|
{
|
||||||
|
char unknown_error[8];
|
||||||
|
|
||||||
IF (error_number<0) error_number=-1*error_number;
|
if (error_number<0) error_number=-1*error_number;
|
||||||
switch (error_number) //èçâåñíàÿ îøèáêà - ïèøåì êàêàÿ è óõîäèì
|
switch (error_number) //èçâåñíàÿ îøèáêà - ïèøåì êàêàÿ è óõîäèì
|
||||||
{
|
{
|
||||||
CASE 2: RunProgram(#NOTIFY_PATH, "Eolite: error 2 - Function is not supported for the given file system");
|
CASE 2: RunProgram(#NOTIFY_PATH, "Eolite: error 2 - Function is not supported for the given file system");
|
||||||
@ -99,7 +101,7 @@ void Write_Debug_Error(int error_number){
|
|||||||
case 8: RunProgram(#NOTIFY_PATH, "Eolite: error 8 - FAT table is destroyed");
|
case 8: RunProgram(#NOTIFY_PATH, "Eolite: error 8 - FAT table is destroyed");
|
||||||
return;
|
return;
|
||||||
case 9: RunProgram(#NOTIFY_PATH, "Eolite: error 9 - FAT table is destroyed");
|
case 9: RunProgram(#NOTIFY_PATH, "Eolite: error 9 - FAT table is destroyed");
|
||||||
RETURN;
|
return;
|
||||||
case 10:RunProgram(#NOTIFY_PATH, "Eolite: error 10 - Access denied");
|
case 10:RunProgram(#NOTIFY_PATH, "Eolite: error 10 - Access denied");
|
||||||
RETURN;
|
RETURN;
|
||||||
case 11:RunProgram(#NOTIFY_PATH, "Eolite: error 11 - Device error");
|
case 11:RunProgram(#NOTIFY_PATH, "Eolite: error 11 - Device error");
|
||||||
@ -110,6 +112,8 @@ void Write_Debug_Error(int error_number){
|
|||||||
RETURN;
|
RETURN;
|
||||||
case 32:RunProgram(#NOTIFY_PATH, "Eolite: error 32 - Too many processes");
|
case 32:RunProgram(#NOTIFY_PATH, "Eolite: error 32 - Too many processes");
|
||||||
RETURN;
|
RETURN;
|
||||||
default:RunProgram(#NOTIFY_PATH, "Unknown error number O_o");
|
default:copystr(IntToStr(error_number), #unknown_error);
|
||||||
|
copystr(" - Unknown error number O_o", #unknown_error+strlen(#unknown_error));
|
||||||
|
RunProgram(#NOTIFY_PATH, #unknown_error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user