diff --git a/programs/fs/Eolite/trunk/Eolite_svn/Eolite.c-- b/programs/fs/Eolite/trunk/Eolite_svn/Eolite.c--
deleted file mode 100644
index 15a8fcd12e..0000000000
--- a/programs/fs/Eolite/trunk/Eolite_svn/Eolite.c--
+++ /dev/null
@@ -1,723 +0,0 @@
-//Leency & Veliant -=- KolibriOS Team -=- 2008
-
-#codesize
-#include "lib\kolibri.h--"
-#include "lib\memory.h--"
-#include "lib\edit_box_lib.h--"
-#include "include\run_file.h--"
-#include "include\icons_f.h--"
-#include "imgs\toolbar_new.cpp"
-#include "imgs\left_p.cpp"
-
-//локализация и настройки
-byte header[27] = "Eolite File Manager v0.96.7";
-#define videlenie 0x94AECE; //цвет выделенного элемента из списка файлов
-int toolbar_buttons_x[6]={14,51,90,139,172,208};
-//
-dword but_num=0, kolichestvo=0, curbtn=0, za_kadrom=0;
-byte cut_active, rename_active, del_active;
-byte show_actions=1, show_preview=0, sort_num=1, isdir;
-dword razm_scrl; //для скрола
-byte path[256]="/rd/1/", edit_path[256], PathHistory[2560], temp[256]; //для путей
-byte file_path[256], file_name[256]; //для файлов
-byte copyfile[256],copy_name[256]; //копирование
-dword i; //для циклов
-dword file_mas[6898]; //список файлов
-dword temp_int;
-dword stak[100]=0; //окно About
-
-edit_box edit1= {250,252,17,0xffffff,0x94AECE,0xD3DDEB,0xffffff,0,248,#edit_path,64,6,6};
-edit_box edit2= {250,218,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_name,64,6,6};
-
-proc_info Form;
-
-struct {
- int func;
- int pos;
- int rezerv;
- int sizefile;
- int buffer;
- char rezerv2;
- int stroka;
-}open_file_70;
-dword buf=0, off; //для текста и буфера
-dword devbuf=0, dev_num;
-#include "include\LVabout.c--"
-
-
-void main()
-byte pressed, key, id;
-mouse m;
-{
- devbuf= malloc(3112); //буфер где-то на 10 девайсов в левой панели
- open_file_70.func = 1;
- open_file_70.pos = 0;
- open_file_70.rezerv = 0;
- open_file_70.sizefile = 10;
- open_file_70.buffer = devbuf;
- open_file_70.rezerv2 = 0;
- open_file_70.stroka = "/";
- $mov eax,70
- $mov ebx,#open_file_70.func
- $int 0x40
- dev_num=EBX;
- load_dll(); //подгружает либу с едит_боксом
- IF (param[0]<>'') {copystr(#param,#edit_path); Goto_edit_path();}
- Open_Dir(#path,2);
- SetEventMask();
- loop()
- {
- switch(WaitEvent())
- {
- CASE evMouse:
- id = 0;
- IF (del_active==1) break;
- m.get();
- //
- IF (vert==65535) IF (curbtn==0) FileList_ReDraw(-3); ELSE FileList_ReDraw(-1);
- IF (vert==1) IF (curbtn==but_num-1) FileList_ReDraw(3); ELSE FileList_ReDraw(1);
- //выделение используя ПКМ
- //IF (m.pkm==1) && (m.x>197) && (m.x
56)
- // IF (m.y-skin_width-56/18<>curbtn) FileList_ReDraw(m.y-skin_width-56/18-curbtn);
- //скролл
- IF (m.y>Form.width) || (57+razm_scrl>m.y) m.y=57+razm_scrl; //если курсор над окном
- IF (m.lkm==0) pressed=0; ELSE
- IF (m.x>=Form.width-21) && (m.x<=Form.width-6) pressed=1;
- IF (pressed==1)
- {
- temp_int=za_kadrom; //сохраняем старое количество
- za_kadrom = m.y -57-razm_scrl * kolichestvo / onTop(22,57);
- IF (but_num+za_kadrom>kolichestvo) za_kadrom=kolichestvo-but_num;
- IF (temp_int<>za_kadrom) List_ReDraw(); //чтоб лишний раз не перерисовывать
- }
- break;
-//Button pressed-----------------------------------------------------------------------------
- case evButton:
- IF (edit1.flags<>64) {edit1.flags=64; edit_box_draw stdcall(#edit1);} //сбрасываем выделение при нажатии на батон
- id=GetButtonID();
- IF (id==1) ExitProcess();
- IF (del_active==1) {IF (id==301) || (id==302) Del_File(302-id); break;}
- switch(id)
- {
- CASE 21: GoBack(); break;//Назад
- CASE 23: IF (strcmp(#path,"/")<>0) Dir_Up(); break;//up!
- CASE 24: key=24; //cut
- CASE 25: goto CTRLC_MARK; //copy
- CASE 26: Paste(); break;//paste
- CASE 27: Goto_edit_path(); break; //goto edit_path
- CASE 31...33: //sort
- IF (sort_num==id-30) break;
- IF(sort_num==1)DrawBar(onLeft(197,163)/2+215,45,6,9,0xE4DFE1);
- IF(sort_num==2)DrawBar(onLeft(110,0),45,6,9,0xE4DFE1);
- IF(sort_num==3)DrawBar(onLeft(39,0),45,6,9,0xE4DFE1);
- sort_num=id-30;
- Open_Dir(#path,1);
- break;
- case 30: //about
- EAX = 51; EBX = 1;
- ECX = #authors; EDX = #stak;
- $int 40h;
- break;
- case 50: //стрелка вверх на скроле
- FileList_ReDraw(-1);
- BREAK;
- case 51: //стрелка вниз на скроле
- FileList_ReDraw(1);
- BREAK;
- case 78: //preview
- IF (show_preview==1) show_preview=0; ELSE show_preview=1;
- Preview();
- BREAK;
- case 77: //actions
- IF (show_actions==1) show_actions=0; ELSE show_actions=1;
- Actions(); Preview();
- BREAK;
- case 80: goto REN_MARK; //rename
- case 81: Del_Form(); BREAK;//Delete file
- }
- if (id>200) //кнопки из списка файлов
- {
- IF (curbtn!=id-201) {FileList_ReDraw(id-201-curbtn); break;}
- else OPEN_MARK:
- if (!isdir) Run_File(#file_path); else
- if (strcmp(za_kadrom+curbtn+1*304 + buf+72,"..")==0) Dir_Up(); else
- { OPEN_DEV:
- copystr(#file_path, #path);
- copystr("/", #path+strlen(#path));
- DrawBar(197,curbtn*18+57,onLeft(22,197),18,0xFFFFFF); //закрашиваем старое выделение
- za_kadrom=curbtn=0;
- Open_Dir(#path,1);
- }
- break;
- }
- if (id>=100) && (id<130) //подключённые носители информации
- { DEVICE_MARK:
- copystr(id-100*304+ devbuf+72, #path);
- IF (strcmp(#path,"rd")==0) copystr("/rd/1",#file_path);
- ELSE {
- copystr("/", #file_path);
- copystr(#path, #file_path+strlen(#file_path));
- }
- GOTO OPEN_DEV;
- }
- break;
-//Key pressed-----------------------------------------------------------------------------
- case evKey:
- key = GetKey();
- IF (del_active==1)
- {
- IF (key==013) Del_File(true);
- IF (key==027) Del_File(false);
- break;
- }
- IF (edit1.flags<>64) || (edit2.flags<>64) SWITCH (key) { CASE 8: CASE 180...182: CASE 051...056: goto EDIT_KEY_MARK; } //1..10 и ноум/енд в едитбоксах
- switch (key)
- {
- case 209...217: id=key-109; IF(dev_num>id-100)GOTO DEVICE_MARK; break;
- case 8: GoBack(); break; //Назад
- case 014: MoveSize(80,80,OLD,OLD); Run_Program("/sys/File Managers/Eolite", #path); break; //новое окно
- case 024: //Ctrl+X cut
- case 089: //Ctrl+Ins copy
- case 003: //Ctrl+C copy
- CTRLC_MARK:
- IF (isdir) break; //папки пока что копировать не умеем
- copystr(#file_name,#copy_name);
- copystr(#file_path,#copyfile); //вычисляем какой файл копировать
- IF (key==24) cut_active=1; ELSE cut_active=0;
- break;
- case 022: Paste(); break;//Ctrl+V paste
- case 027: //Esc
- IF (rename_active==1) Line_ReDraw(videlenie, 100);
- break;
- case 013: //Enter
- IF (rename_active==1) {Line_ReDraw(videlenie, curbtn); break;}
- IF (strcmp(#path,#edit_path)<>0) Goto_edit_path();
- ELSE GOTO OPEN_MARK;
- break;
- case 56: //IF (rename_active==1) break;//up
- case 178: //up
- FileList_ReDraw(-1);
- break;
- case 177: //down
- FileList_ReDraw(1);
- break;
- case 180: //home
- FileList_ReDraw(-za_kadrom-curbtn);
- break;
- case 181: //end
- FileList_ReDraw(kolichestvo-za_kadrom-curbtn+but_num);
- break;
- case 183: //Page Down
- FileList_ReDraw(but_num-1);
- break;
- case 184: //Page Up
- FileList_ReDraw(-but_num+1);
- break;
- case 051: //Нажата F2
- REN_MARK:
- IF (isdir==1) break; //папки пока что копировать не умеем
- edit2.flags=66; //делаем компонент активным
- DeleteButton(curbtn+201); //это чтоб можно было выделять мышью
- edit2.width=onLeft(24,217);
- edit2.top=curbtn*18+59+skin_width;
- edit2.size=strlen(#file_name); edit2.pos=strlen(#file_name);
- edit_box_draw stdcall (#edit2);
- DrawBar(218,curbtn*18+58,edit2.width+1,1,0xFFFFCC); //полоса желтая сверху для одинаковости
- rename_active=1;
- BREAK;
- case 052: //Нажата F3
- IF (isdir==false) Run_Program("/sys/tinypad", #file_path); BREAK;
- case 054: Open_Dir(#path,1); BREAK; //перерисовать окно F5
- case 182: Del_Form(); BREAK; //delete file
- default: EDIT_KEY_MARK:
- EAX=key <<8;
- IF (rename_active==0) edit_box_key stdcall (#edit1); ELSE edit_box_key stdcall (#edit2);
- }
- break;
- case evReDraw: draw_window(); BREAK;
- }
- IF (rename_active==0) edit_box_mouse stdcall(#edit1); ELSE edit_box_mouse stdcall(#edit2);
- }
- free(buf); //free memory
- ExitProcess();
-}
-
-
-inline fastcall void draw_window()
-{
- WindowRedrawStatus(1);
- skin_width = GetSkinWidth();
- DefineAndDrawWindow(100,100,600,410,0x43,0x10E4DFE1,0,0,#header); //DrawTitle(#header);
- Form.getme();
- IF (Form.height==skin_width+3) {WindowRedrawStatus(2); return;} //это зачёт!
- IF (Form.height<280) MoveSize(OLD,OLD,OLD,280);
- IF (Form.width<480) MoveSize(OLD,OLD,480,OLD);
- //toolbar buttons
- PutImage(#toolbar,246,39,5,0);
- FOR (j=0; j<6; j++) DefineButton(toolbar_buttons_x[j],5,31,29,21+j+BT_HIDE,0xE4DFE1);
- //полоса адреса
- DrawBar(251,0,onLeft(251,60),12,0xE4DFE1); //фон над полосой адреса
- edit1.width=Form.width-314;
- edit1.top=13+skin_width;
- KEdit();
- DrawRegion(251,12,onLeft(61,251),16,0x94AECE); //ободок
- DrawBar(251,29,onLeft(251,60),10,0xE4DFE1); //фон под полосой адреса
- DefineButton(onLeft(34,0),6,27,28,30+BT_HIDE+BT_NOFRAME,0xE4DFE1); //about
- DefineButton(onLeft(61,0),12,18,16,27+BT_HIDE,0xE4DFE1); //кнопка перехода
- PutImage(#goto_about,56,40,onLeft(60,0),0);
- //прямоугольники внутри
- DrawRegion(6,40,Form.width-12,Form.height-skin_width-46,0x94AECE); //синий ободок
- DrawRegion(5,39,Form.width-10,Form.height-skin_width-44,0xE4DFE1); //фон
- Devices(); //панель слева на синем фоне
- //Buttons
- DrawFlatButton(197,40,onLeft(197,163),16,31,0xE4DFE1,"File");
- DrawFlatButton(onLeft(163,0),40,73,16,32,0xE4DFE1,"Type");
- DrawFlatButton(onLeft(90,0),40,68,16,33,0xE4DFE1,"Size");
- IF (sort_num==1) WriteText(onLeft(197,163)/2+197+18,45,0x80,0x4E78AC,"\x19",0);
- ELSE IF (sort_num==2) WriteText(onLeft(110,0),45,0x80,0x4E78AC,"\x19",0);
- ELSE WriteText(onLeft(39,0),45,0x80,0x4E78AC,"\x19",0);
- //прокрутка
- DrawFlatButton(onLeft(22,0),40,16,16,50,0xE4DFE1,"\x18"); //прокрутка вверх
- DrawFlatButton(onLeft(22,0),onTop(22,0),16,16,51,0xE4DFE1,"\x19");//прокрутка вниз
- DrawBar(onLeft(22,0),57,1,onTop(22,57),0x94AECE); //линия слева от прокрутки
- but_num=onTop(6,57)/18;
- IF (but_num>100) but_num=1; ELSE IF (kolichestvoonTop(22,57)-on_y+56) || (za_kadrom+but_num>=kolichestvo) on_y=onTop(23+razm_scrl,0); //для большого списка
- DrawFlatButton(onLeft(22,0),on_y,16,razm_scrl,0,0xE4DFE1,"");//ползунок
- DrawBar(onLeft(21,0),57,15,on_y-57,0xCED0D0);//поле до ползунка
- DrawBar(onLeft(21,0),on_y+razm_scrl+1,15,onTop(22,57)-razm_scrl-on_y+56,0xCED0D0); //поле после ползунка
-}
-
-
-void FileList_ReDraw(int curbtn_)
-{
- if (curbtn_<=0) //вверх
- {
- IF (za_kadrom==0) && (curbtn==0) return;
- IF (-curbtn_-1curbtn_)
- {
- Line_ReDraw(0xFFFFFF, curbtn); //белая полоса
- curbtn+=curbtn_;
- Line_ReDraw(videlenie, curbtn); //выделение
- return;
- }
- ELSE
- {
- IF(but_num+za_kadrom+curbtn_>=kolichestvo) za_kadrom=kolichestvo-but_num; ELSE za_kadrom+=curbtn_+curbtn-but_num+1;
- curbtn=but_num;
- List_ReDraw();
- }
- }
-}
-
-
-void List_ReDraw()
-{
- IF (kolichestvo-za_kadrombut_num-1) curbtn=but_num-1; //это если выделение после схлопывания окна за кадром
- //
- FOR (j=0; jj) Line_ReDraw(0xFFFFFF, j); ELSE Line_ReDraw(videlenie, curbtn);
- temp_int=but_num-1*18+75;
- DrawBar(197,temp_int,onLeft(22,197),onTop(temp_int,6),0xFFFFFF); //заливка белым доконца
- DrawBar(onLeft(163,0),temp_int,1,onTop(temp_int,6),0xE4DFE1); //полоса серая вертикальная 1
- DrawBar(onLeft(90,0),temp_int,1,onTop(temp_int,6),0xE4DFE1); //полоса серая вертикальная 2
- TVScroll();
-}
-
-
-void Line_ReDraw(dword color, filenum){
- dword y, size;
- if (rename_active==1)
- {
- rename_active=0;
- edit2.flags=64;
- DefineButton(197,curbtn+1*18+39,onLeft(22,197),18,curbtn+201+BT_HIDE+BT_NOFRAME,0xFFFFFF);
- IF (filenum==100) filenum=curbtn; ELSE
- {
- copystr(#path,#temp);
- copystr(#file_name,#temp+strlen(#temp));
- IF (strcmp(#file_path,#temp)<>0) && (strlen(#file_name)>0)
- { CopyFile(#file_path,#temp); Del_File(true); }
- }
- }
- DrawBar(197,filenum*18+57,onLeft(22,197),18,color); //полоса белая или выделения
- //
- y= filenum*18+85; //положение текста по Y
- IF (strcmp(".",buf+72)<>0) off=file_mas[filenum+za_kadrom]*304 + buf+72; ELSE off=file_mas[filenum+za_kadrom+1]*304 + buf+72;
- temp_int = onLeft(220,160)/6;
- IF (strlen(off)", y);
- IF (color==videlenie)
- {
- IconFairing(temp_int, y, videlenie); //закрашиваем иконку
- copystr(#path,#file_path);
- copystr(off,#file_name);
- copystr(off,#file_path+strlen(#file_path)); //итак, file_path=файлу, т.к. по-умолчанию это прога
- }
- DrawBar(onLeft(163,0),filenum*18+57,1,18,0xE4DFE1); //полоса серая вертикальная 1
- DrawBar(onLeft(90,0),filenum*18+57,1,18,0xE4DFE1); //полоса серая вертикальная 2
- //Preview();
-}
-
-
-void Open_Dir(dword path_,redraw){
- IF (buf) free(buf);
- //open_file_70.func = 1; //а нафига, они сверху есть...
- //open_file_70.pos = 0;
- //open_file_70.rezerv = 0;
- open_file_70.sizefile = 6898;
- buf = malloc(2097152);
- open_file_70.buffer = buf;
- //open_file_70.rezerv2 = 0;
- open_file_70.stroka = path_;
- $mov eax,70
- $mov ebx,#open_file_70.func
- $int 0x40
- kolichestvo=EBX;
- //
- if (kolichestvo<>-1) && (redraw>0)
- {
- FOR (j=0;j0) ChangeCase(off);} //регистр
- FOR (j=0;j100) but_num=1; ELSE//эта странная строчка для того если размеры окна слишком маленькие
- IF (kolichestvo0) && (strlen(#path)>6) kolichestvo--; //фак! это бред! хз как оно работает
- FOR (i=0;i<=kolichestvo;i++) //а папки всё выше и выше...
- {
- EAX=ESDWORD[off-40];
- $shr eax,4
- $and eax,1
- IF (EAX) {file_mas[k]=i; k++;}
- ELSE {file_mas[kolichestvo-l]=i; l++;}
- off += 304;
- }
- //k=0; l=kolichestvo;
- switch(sort_num)
- {
- CASE 1: //упорядочиваем файлы по имени
- WriteText(onLeft(197,163)/2+215,45,0x80,0x4E78AC,"\x19",0);
- IF (strcmp(#path,"/")==0) break;
- IF (strcmp("..",buf+72+304)<>0) Sort_by_Name(k,kolichestvo-1); ELSE Sort_by_Name(k,kolichestvo);
- break;
- case 2: //упорядочиваем файлы по типу
- WriteText(onLeft(110,0),45,0x80,0x4E78AC,"\x19",0);
- IF (strcmp("..",buf+72+304)<>0) Sort_by_Type(k, kolichestvo-1); ELSE Sort_by_Type(k, kolichestvo);
- break;
- case 3:
- WriteText(onLeft(39,0),45,0x80,0x4E78AC,"\x19",0);
- IF (strcmp("..",buf+72+304)<>0) Sort_by_Size(k,kolichestvo-1); ELSE Sort_by_Size(k,kolichestvo);
- BREAK;
- }
- IF (strcmp(#path,"/")<>0) IF (strcmp("..",304+buf+72)<>0) Sort_by_Name(0,k-1); ELSE Sort_by_Name(2,k-1); //иногда имя папки начинается с !,&...
- IF (strcmp(".",buf+72)<>0) && (strlen(#path)>6) kolichestvo++;
-}
-
-
-dword onLeft(dword right,left) {return Form.width-right-left;}
-dword onTop(dword down,up) {return Form.height-skin_width-down-up;}
-
-
-void Del_Form()
-{
- IF (isdir==true) return; //папки пока что удалять не умеем
- temp_int=Form.width-200+197/2;
- //типа окно
- FOR (i=5;i<11;i++) DeleteButton(201+i); //удаляем кнопки под формой
- DrawFlatButton(temp_int,160,200,80,0,0xE4DFE1, ""); //форма
- WriteText(temp_int+19,175,0x80,0,"Do you really want to delete",28);
- IF (strlen(#file_name)<28)
- {
- WriteText(strlen(#file_name)*6+temp_int+20,190,0x80,0,"?",1);
- WriteText(temp_int+20,190,0x80,0,#file_name,24); //пишем имя
- }
- ELSE
- {
- WriteText(164+temp_int,190,0x80,0,"...?",4);
- WriteText(temp_int+20,190,0,0,#file_name,24); //пишем имя
- }
- //кнопочки
- DrawFlatButton(temp_int+20,208,70,20,301,0xFFB6B5,"Yes");
- DrawFlatButton(temp_int+111,208,70,20,302,0xC6DFC6,"No");
- del_active=1;
-}
-
-void Del_File(byte dodel)
-{
- IF (dodel==true){
- run_file_70.func = 8;
- run_file_70.flag = 0;
- run_file_70.param= 0;
- run_file_70.rez1 = 0;
- run_file_70.rez2 = 0;
- run_file_70.rezerv2 = 0;
- run_file_70.stroka = #file_path;
- $mov eax,70
- $mov ebx,#run_file_70.func
- $int 0x40}
- del_active=0;
- DeleteButton(301); DeleteButton(302); //удаляем кнопочки Yes/No
- Open_Dir(#path,1);
-}
-
-
-void Paste()
-{
- IF (strcmp(#copyfile,"")==0) return; //отмена, еши ещё ничё не скопировали
- copystr(#path,#temp);
- copystr(#copy_name,#temp+strlen(#temp));
- if (strcmp(#copyfile,#temp)==0) //если мы копируем и вставляем в одной и той же папке
- {
- copystr(#path,#temp);
- copystr("new_",#temp+strlen(#temp));
- copystr(#copy_name,#temp+strlen(#temp));
- }
- CopyFile(#copyfile,#temp);
- IF (cut_active==1) //если мы выбрали вырезать
- {
- copystr(#copyfile,#file_path);
- Del_File(true);
- copyfile='';
- cut_active=0;
- }
- Open_Dir(#path,1);
-}
-
-
-void Tip(int y, dword caption, id, arrow)
-{
- DrawBar(22,y,160,17,0xE4DFE1); //серое сверху
- WriteText(30,y+5,0x80,0,caption,0); //text Goto:
- IF (id<>0) DefineButton(164,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0xE4DFE1); //кнопа для стрелки
- WriteText(170,y+5,0x80,0,arrow,0); //стрелка вниз
- DrawBar(22,y+17,160,1,0x94AECE); //подчёркивание
-}
-
-
-void Devices()
-{
- byte dev_icon; dword drive_name[30]; char dev_name[4];
- DrawBar(7,41,190,15,0x00699C); //синий прямоугольник - сверху
- DrawBar(7,56,15,onTop(21,41),0x00699C); //синий прямоугольник - слева
- DrawBar(182,56,15,onTop(21,41),0x00699C); //синий прямоугольник - справа
- //список дисков
- Tip(56, "Goto:", 0, "");
- DrawBar(22,74,160,dev_num*16+1,0xFFFFFF); //белое
- for (i=0;i",0);
- //delete file
- DefineButton(22,dev_num*16+125,159,16,81+BT_HIDE,0xE4DFE1);
- WriteText(47,dev_num*16+130,0x80,0,"Delete file ",0);
- //create folder
- DefineButton(22,dev_num*16+142,159,16,82+BT_HIDE,0xE4DFE1);
- WriteText(47,dev_num*16+147,0x80,0,"Create folder ",0);
- DrawBar(22,dev_num*16+159,160,15,0x00699C); //синее после Actions
- }
- ELSE
- {
- DeleteButton(80); DeleteButton(81); DeleteButton(82);
- Tip(dev_num*16+90, "Actions", 77, "\x18");
- DrawBar(22,dev_num*16+108,160,51,0x00699C); //синее
- }
-}
-
-
-/*void Dir_Up()
-{
- byte temp_[256];
- i=strlen(#path)-1;
- path[i]=0x00;
- do i--; while (path[i]<>'/'); copystr(#path+i+1,#temp_);
- path[i+1]=0x00;
- ChangeCase(#temp_);
- za_kadrom=curbtn=0; //вверх списка
- Open_Dir(#path,2);
- FOR (i=kolichestvo; i>0; i--;) IF(strcmp(file_mas[i]*304+buf+72,#temp_)==0) BREAK;
- //
- IF (i0) za_kadrom=i; ELSE za_kadrom=i-1;}
- ELSE {za_kadrom=kolichestvo-but_num; curbtn=i-kolichestvo+but_num;}
- List_ReDraw();
-}*/
-
-/*void Dir_Up()
-{
- i=strlen(#path)-1;
- do i--; while (path[i]<>'/');
- path[i+1]=0x00;
- za_kadrom=0; curbtn=0; //вверх списка
- Open_Dir(#path,1);
-}*/
-
-//баг - если сверху, то сверху,а не снизу
-void Dir_Up()
-{
- byte temp_[256];
- i=strlen(#path)-1;
- path[i]=0x00;
- do i--; while (path[i]<>'/'); copystr(#path+i+1,#temp_);
- path[i+1]=0x00;
- ChangeCase(#temp_);
- za_kadrom=curbtn=0; //вверх списка
- Open_Dir(#path,2);
- FOR (i=kolichestvo; i>0; i--;) IF(strcmp(file_mas[i]*304+buf+72,#temp_)==0) BREAK;
- //
- if (i>kolichestvo-but_num)
- {
- za_kadrom=kolichestvo-but_num;
- IF (strcmp(".",buf+72)<>0) curbtn=i-kolichestvo+but_num; ELSE curbtn=i-kolichestvo+but_num-1;
- }
- ELSE IF (strcmp(".",buf+72)<>0) FileList_ReDraw(i); ELSE FileList_ReDraw(i-1);
- List_ReDraw();
-}
-
-
-void Preview()
-{
- dword top_pr=dev_num*16+123;
- top_pr+=show_actions*51; //ничинаем ниже, если Акшнс видимы
- DeleteButton(78);
- if (show_preview==1)
- {
- Tip(top_pr,"Preview",78,"\x19");
- DrawBar(22,top_pr+18,160,100,0xFFFFFF); //белое
- //WriteText(30,top_pr+30,0x80,0,"kolichestvo:",0); WriteText(105,top_pr+30,0x80,0,IntToStr(kolichestvo),0);
- //WriteText(30,top_pr+40,0x80,0,"but_num:",0); WriteText(105,top_pr+40,0x80,0,IntToStr(but_num),0);
- //WriteText(30,top_pr+50,0x80,0,"curbtn",0); WriteText(105,top_pr+50,0x80,0,IntToStr(curbtn),0);
- //WriteText(30,top_pr+60,0x80,0,"ra_kadrom:",0); WriteText(105,top_pr+60,0x80,0,IntToStr(za_kadrom),0);
- //WriteText(30,top_pr+70,0x80,0,#file_path,0);
- //WriteText(30,top_pr+80,0x80,0,#file_name,0);
- WriteText(30,top_pr+60,0x80,0,"Not realized... Yet.",0);
- //WriteText(30,top_pr+70,0x80,0,"Nable, I'm waiting (:",0);
- DrawBar(22,top_pr+118,160,onTop(top_pr+118,6),0x00699C); //синее
- }
- ELSE {
- Tip(top_pr,"Preview",78,"\x18");
- DrawBar(22,top_pr+18,160,onTop(top_pr+18,6),0x00699C); //синее
- }
-}
-
-
-void Goto_edit_path()
-{
- IF (strcmp(#path,#edit_path)==0) return; //проверка не в этой ли мы папке
- IF (strcmp(#edit_path+strlen(#edit_path)-1,"/")<>0) copystr("/",#edit_path+strlen(#edit_path)); //если нет, + "/"
- Open_Dir(#edit_path,0); //проверяем если файлы в папке, так мы узнаём существует ли она
- IF (kolichestvo==-1) KEdit(); ELSE //просто очищаем полосу адреса
- {za_kadrom=curbtn=0; copystr(#edit_path,#path);}//наверх списка
- Open_Dir(#path,1);
-}
-
-
-inline fastcall void GoBack() //вначале удаляем текущий путь, а потом копируем то, что осталось
-{
- //char old_dir[256]='';
- i=strlen(#PathHistory)-2;
- //
- //WHILE (PathHistory[i]<>'/') { copystr(#PathHistory[i],#old_dir); i--; };
- //old_dir[strlen(#old_dir)-1]=0x00;
- //DrawTitle(#old_dir);
- //
- WHILE (PathHistory[i]<>'|') { i--; };
- IF (i>0) PathHistory[i]=0x00;
- WHILE (PathHistory[i]<>'|') { copystr(#PathHistory[i],#path); i--; }
- IF (i>0) PathHistory[i]=0x00;
- za_kadrom=curbtn=0; Open_Dir(#path,1);
- //FOR (i=0; i=1073741824) copystr(" Gb",#temp);
- ELSE IF (bytes>=1048576) copystr(" Mb",#temp);
- ELSE IF (bytes>=1024) copystr(" Kb",#temp);
- ELSE copystr(" b ",#temp);
- WHILE (bytes>1023) bytes/=1024;
- copystr(IntToStr(bytes),#size_prefix);
- copystr(#temp,#size_prefix+strlen(#size_prefix));
- EAX=#size_prefix;
-}
-
-
-void Sort_by_Size(int a, b) // для первого вызова: a = 0, b = <элементов в массиве> - 1
-{
- int i= a;
- IF (a >= b) return;
- FOR (j = a; j <= b; j++)
- {
- IF (ESDWORD[file_mas[j]*304 + buf+72-8] <= ESDWORD[file_mas[b]*304 + buf+72-8])
- { file_mas[i] >< file_mas[j]; i++;}
- }
- Sort_by_Size (a, i-2);
- Sort_by_Size (i, b);
-}
-
-
-void Sort_by_Name(int a, b) // для первого вызова: a = 0, b = <элементов в массиве> - 1
-{
- int i = a;
- IF (a >= b) return;
- FOR (j = a; j <= b; j++)
- IF (strcmp(file_mas[j]*304 + buf+72, file_mas[b]*304 + buf+72)<=0) { file_mas[i] >< file_mas[j]; i++;}
- Sort_by_Name(a, i-2);
- Sort_by_Name(i, b);
-}
-
-
-int partition1(dword a, b)
-{
- dword i = a; byte filename1[256], filename2[256]; int n;
- for (j = a; j <= b; j++)
- {
- //
- copystr(file_mas[j]*304 + buf+72, #filename1);
- copystr(file_mas[b]*304 + buf+72, #filename2);
- n=strlen(#filename1)-1;
- WHILE (filename1[n]<>'.') && (n>0) n--;
- IF (n) copystr(#filename1+n+1, #filename1);
- n=strlen(#filename2)-1;
- WHILE (filename2[n]<>'.') && (n>0) n--;
- IF (n) copystr(#filename2+n+1, #filename2);
- //
- n=strcmp(#filename1, #filename2);
- IF (n<0) { file_mas[i] >< file_mas[j]; i++;}
- IF (n==0) && (strcmp(file_mas[j]*304 + buf+72, file_mas[b]*304 + buf+72)<=0) { file_mas[i] >< file_mas[j]; i++;}
- }
- EAX = i-1;
-}
-
-void Sort_by_Type(dword a, b) // для первого вызова: a = 0, b = <элементов в массиве> - 1
-{
- int c;
- IF (a >= b) RETURN;
- c = partition1(a, b);
- Sort_by_Type(a, c-1);
- Sort_by_Type(c+1, b);
-}
diff --git a/programs/fs/Eolite/trunk/Eolite_svn/include/icons_f.h-- b/programs/fs/Eolite/trunk/Eolite_svn/include/icons_f.h--
deleted file mode 100644
index edbeeadc84..0000000000
--- a/programs/fs/Eolite/trunk/Eolite_svn/include/icons_f.h--
+++ /dev/null
@@ -1,68 +0,0 @@
-void IconFairing(dword filenum, y, videlenie)
-{
- if (filenum<5) //файлик
- {
- DrawBar(200,y-26,2,15,videlenie);
- DrawBar(214,y-26,2,15,videlenie);
- DrawBar(210,y-26,4,1,videlenie);//ле
- DrawBar(211,y-25,3,1,videlenie);//сен
- DrawBar(212,y-24,2,1,videlenie);//ка
- DrawBar(213,y-23,1,1,videlenie);//
- }
- if (filenum==16) || (filenum==17) //папка
- {
- DrawBar(201,y-13,15,2,videlenie); //снизу линия
- DrawBar(200,y-26,1,15,videlenie); //слева линия
- DrawBar(208,y-26,8,2,videlenie); //сверху справа линия
- IF (filenum==17) DrawBar(211,y-25,1,1,0x1A7B17); //зелёная точка стрелки
- //.точки
- PutPixel(201,y-26+skin_width,videlenie); //сверху слева точка
- PutPixel(207,y-26+skin_width,videlenie); //сверху справа точка
- PutPixel(201,y-14+skin_width,videlenie); //слева снизу точка
- PutPixel(215,y-14+skin_width,videlenie); //справа снизу точка
- PutPixel(215,y-24+skin_width,videlenie); //какая разница где
- }
- IF (filenum==13) PutPixel(215,y-26+skin_width,videlenie); //skin
- IF (filenum==14) {DrawBar(200,y-26,1,15,videlenie); DrawBar(215,y-26,1,15,videlenie);} //video
-}
-
-dword Put_icon(dword extension, yy)
-{
- dword ftype="", fnum=0; //еши неизвесный файл
- IF (strcmp(extension,".kex")==0) {fnum = 6; ftype="Program";}
- IF (strcmp(extension,".cvs")==0) {fnum = 18; ftype="Graph";}
- IF (strcmp(extension,".cmd")==0) {fnum = 5; ftype="CMD skript";}
- IF (strcmp(extension,".skn")==0) {fnum = 13; ftype="Skin";}
- IF (strcmp(extension,".chr")==0) {fnum = 10; ftype="Font";}
- IF (strcmp(extension,".avi")==0) {fnum = 14; ftype="Video";}
- IF (strcmp(extension,".asm")==0) {fnum = 11; ftype="Source";}
- IF (strcmp(extension,".inc")==0) fnum = 9;
- IF (strcmp(extension,".exe")==0) {fnum = 7; ftype="Win32 Exec";}
- IF (strcmp(extension,".dll")==0) || (strcmp(extension,".obj")==0) {fnum = 8; ftype="Library";}
- IF (strcmp(extension,".ini")==0) || (strcmp(extension,"conf")==0) {fnum = 8; ftype="Config";}
- IF (strcmp(extension,".htm")==0) || (strcmp(extension,"html")==0) {fnum = 2; ftype="Web-page";}
- //text
- IF (strcmp(extension,".txt")==0) {fnum = 1; ftype="Text";}
- IF (strcmp(extension,".doc")==0) {fnum = 1; ftype="Text";}
- IF (strcmp(extension,".rtf")==0) {fnum = 1; ftype="Text";}
- //изображения
- IF (strcmp(extension,".gif")==0) || (strcmp(extension,".bmp")==0) ||
- (strcmp(extension,".tga")==0) || (strcmp(extension,".pcx")==0) ||
- (strcmp(extension,".png")==0) || (strcmp(extension,".jpg")==0) ||
- (strcmp(extension,"jpeg")==0) || (strcmp(extension,".raw")==0) {fnum = 3; ftype="Image";}
- //архивы
- IF (strcmp(extension,".rar")==0) || (strcmp(extension,".zip")==0) ||
- (strcmp(extension,".cab")==0) || (strcmp(extension,".tar")==0) ||
- (strcmp(extension,".ajr")==0) {fnum = 15; ftype="Archive";}
- //audio
- IF (strcmp(extension,".mp3")==0) {fnum = 12; ftype="Music";}
- IF (strcmp(extension,".wav")==0) || (strcmp(extension,".mid")==0) ||
- (strcmp(extension,"midi")==0) || (strcmp(extension,".ogg")==0) {fnum = 12; ftype="Audio";}
- //папка
- IF (strcmp(extension,"")==0) || (strcmp(extension," ")==0)
- { fnum=21-strlen(extension); WriteText(onLeft(140,0),yy-22,0x80,0,extension,0);}
- //
- PutImage(fnum*16*15*3+#ficons,16,15,200,yy-26);
- WriteText(onLeft(155,0),yy-22,0x80,0,ftype,0);
- return fnum;
-}
diff --git a/programs/fs/Eolite/trunk/Eolite_svn/include/run_file.h-- b/programs/fs/Eolite/trunk/Eolite_svn/include/run_file.h--
deleted file mode 100644
index f9cb423eba..0000000000
--- a/programs/fs/Eolite/trunk/Eolite_svn/include/run_file.h--
+++ /dev/null
@@ -1,92 +0,0 @@
-#include "imgs\icons.cpp"
-
-struct {
- int func;
- int flag;
- int param;
- int rez1;
- int rez2;
- char rezerv2;
- int stroka;
-}run_file_70;
-
-
-///////////////////////////
-// Запуск программы //
-///////////////////////////
-void Run_Program(dword run_path, run_param)
-{
- run_file_70.func = 7;
- run_file_70.flag = 0;
- run_file_70.param= run_param;
- run_file_70.rez1 = 0;
- run_file_70.rez2 = 0;
- run_file_70.rezerv2 = 0;
- run_file_70.stroka = run_path;
- $mov eax,70
- $mov ebx,#run_file_70.func
- $int 0x40
-}
-
-
-/*char *extension[25]={".skn",".avi",".htm","html",".3ds",".lif",".cvs",".mp3",
-".wav",".mid","midi",".rtf",".txt",".inc",".ini",".dat",".asm",".gif",".bmp",
-".tga",".pcx",".png",".jpg","jpeg", 0}; //массив указателей
-char *prog_path[25]={"desktop","/sys/kvid","/sys/network/HTMLv","/sys/network/HTMLv",
-"/sys/demos/3d/view3ds","/sys/demos/life2","graph","AC97SND","AC97SND","MIDAMP",
-"MIDAMP","RtfRead","TinyPad","TinyPad","TinyPad","TinyPad","TinyPad","MV","MV",
-"MV","MV","@rcher","JpegView","JpegView", 0};
-
-
-void Run_File(dword fpath)
-{
- byte i;
- dword file_ext[4]=fpath+strlen(fpath)-4;
- FOR(i=0; extension[i]!=0; i++) IF (strcmp(file_ext,extension[i])==0)
- {
- Run_Program(prog_path[i], fpath);
- return;
- }
- Run_Program(fpath, "");
-}*/
-
-///////////////////////////
-// Запуск файла //
-///////////////////////////
-void Run_File(dword fpath)
-{
- dword extension[4], fparam[256];
- copystr(fpath,#fparam); //по-умолчанию прога и параметр равны, если окажется что это файл, парам - сбросим
- copystr(fpath+strlen(fpath)-4,#extension); //узнаём расширение файла с каким работаем
- //тут мы это расширение сравнимаем, и, если оно асоциируется с прогой, прога - это fpath
- IF (strcmp(#extension,".skn")==0) copystr("desktop",fpath);
- IF (strcmp(#extension,".avi")==0) copystr("/sys/kvid",fpath);
- IF (strcmp(#extension,".htm")==0) copystr("/sys/network/HTMLv",fpath);
- IF (strcmp(#extension,"html")==0) copystr("/sys/network/HTMLv",fpath);
- //IF (strcmp(#extension,".htm")==0) || (strcmp(#extension,"html")==0) copystr("/hd0/2/Programs/QIP/Users/419114984/RcvdFiles/313257308_Veliant/browser/HTMLv",fpath);
- IF (strcmp(#extension,".3ds")==0) copystr("/sys/demos/3d/view3ds",fpath);
- IF (strcmp(#extension,".lif")==0) copystr("/sys/demos/life2",fpath);
- IF (strcmp(#extension,".cvs")==0) copystr("graph",fpath);
- //audio
- IF (strcmp(#extension,".mp3")==0) copystr("AC97SND",fpath);
- IF (strcmp(#extension,".wav")==0) copystr("AC97SND",fpath);
- IF (strcmp(#extension,".mid")==0) copystr("MIDAMP",fpath);
- IF (strcmp(#extension,"midi")==0) copystr("MIDAMP",fpath);
- //text
- IF (strcmp(#extension,".rtf")==0) copystr("RtfRead",fpath);
- IF (strcmp(#extension,".txt")==0) copystr("TinyPad",fpath);
- IF (strcmp(#extension,".inc")==0) copystr("TinyPad",fpath);
- IF (strcmp(#extension,".ini")==0) copystr("TinyPad",fpath);
- IF (strcmp(#extension,".dat")==0) copystr("TinyPad",fpath);
- IF (strcmp(#extension,".asm")==0) copystr("TinyPad",fpath); //AsmMenu1,AsmMenu2
- //изображения
- IF (strcmp(#extension,".gif")==0) copystr("MV",fpath); //GifView,MenuAnimage
- IF (strcmp(#extension,".bmp")==0) copystr("MV",fpath); //BmpMenu1,MenuAnimage
- IF (strcmp(#extension,".tga")==0) copystr("MV",fpath);
- IF (strcmp(#extension,".pcx")==0) copystr("MV",fpath);
- IF (strcmp(#extension,".png")==0) copystr("@rcher",fpath);
- IF (strcmp(#extension,".jpg")==0) copystr("JpegView",fpath);
- IF (strcmp(#extension,"jpeg")==0) copystr("JpegView",fpath);
- IF (strcmp(fpath,#fparam)==0) copystr("",#fparam); //если fpath не изменился, то это таки, наверное, прога, параметров нет.
- Run_Program(fpath, #fparam); //запуск!
-}
diff --git a/programs/fs/Eolite/trunk/Eolite_svn/lib/edit_box_lib.h-- b/programs/fs/Eolite/trunk/Eolite_svn/lib/edit_box_lib.h--
deleted file mode 100644
index 15968b60b6..0000000000
--- a/programs/fs/Eolite/trunk/Eolite_svn/lib/edit_box_lib.h--
+++ /dev/null
@@ -1,81 +0,0 @@
-//BOX_LIB
-dword edit_box_draw = #aEdit_box_draw;
-dword edit_box_key = #aEdit_box_key;
-dword edit_box_mouse = #aEdit_box_mouse;
-dword version_ed = #aVersion_ed;
-
-dword am__ = 0x0;
-dword bm__ = 0x0;
-
-char aEdit_box_draw[9] = "edit_box\0";
-char aEdit_box_key[13] = "edit_box_key\0";
-char aEdit_box_mouse[15] = "edit_box_mouse\0";
-char aVersion_ed[11] = "version_ed\0";
-
-char aCheck_box_draw [15] = "check_box_draw\0";
-char aCheck_box_mouse [16] = "check_box_mouse\0";
-char aVersion_ch [11] = "version_ch\0";
-
-char aOption_box_draw [16] = "option_box_draw\0";
-char aOption_box_mouse[17] = "option_box_mouse\0";
-char aVersion_op [11] = "version_op\0" ;
-
-
-struct edit_box{
-dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
-text_color, max, text, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
-};
-
-
-
-int load_dll(EAX)
-{
-//set mask
- $mov eax,40
- $mov ebx,0x27
- $int 0x40
-// load DLL
- $mov eax, 68
- $mov ebx, 19
- ECX="/sys/lib/box_lib.obj";
- $int 0x40
- $test eax, eax
- $jz exit
-
-// initialize import
- $mov edx,eax
- ESI=#edit_box_draw;
-import_loop:
- $lodsd
- $test eax,eax
- $jz import_done
- $push edx
-import_find:
- $mov ebx,DSDWORD[EDX]
- $test ebx, ebx
- $jz exit
- $push eax
-nex1:
- $mov cl,DSBYTE[EAX];
- $cmp cl,DSBYTE[EBX];
- $jnz import_find_next
- $test cl,cl
- $jz import_found
- $inc eax
- $inc ebx
- $jmp nex1
-import_find_next:
- $pop eax
- $add edx, 8
- $jmp import_find
-import_found:
- $pop eax
- $mov eax,DSDWORD[edx+4]
- $mov DSDWORD[esi-4],eax
- $pop edx
- $jmp import_loop
-import_done:
- return 0;
-exit:
- return -1;
-}
diff --git a/programs/fs/Eolite/trunk/Eolite_svn/lib/kolibri.h-- b/programs/fs/Eolite/trunk/Eolite_svn/lib/kolibri.h--
deleted file mode 100644
index 898cbf3e2f..0000000000
--- a/programs/fs/Eolite/trunk/Eolite_svn/lib/kolibri.h--
+++ /dev/null
@@ -1,392 +0,0 @@
-//CODED by Veliant, Leency. GNU GPL licence.
-
-#startaddress 0
-#code32 TRUE
-
-char os_name[8] = {'M','E','N','U','E','T','0','1'};
-dword os_version = 0x00000001;
-dword start_addr = #main;
-dword final_addr = #stop+32;
-dword alloc_mem = 0x00100000;
-dword x86esp_reg = 0x00100000; // 0x0007fff0;
-dword I_Param = #param;
-dword I_Icon = 0x0;
-dword skin_width;
-
-char param[256]="";
-
-//Events
-#define evMouse 6
-#define evButton 3
-#define evKey 2
-#define evReDraw 1
-#define evNet 8
-
-//Button options
-#define BT_DEL 0x80000000
-#define BT_HIDE 0x40000000
-#define BT_NOFRAME 0x20000000
-
-#define OLD -1
-#define true 1
-#define false 0
-
-
-
-int vert;
-struct mouse{
- dword x,y,lkm,pkm;
- void get();
-};
-
-void mouse::get()
-{
- EAX = 37;
- EBX = 1;
- $int 0x40
- $mov ebx, eax
- $shr eax, 16
- $and ebx,0x0000FFFF
- x = EAX;
- y = EBX;
- EAX = 37;
- EBX = 2;
- $int 0x40
- $mov ebx, eax
- $and eax, 0x00000001
- $shr ebx, 1
- $and ebx, 0x00000001
- lkm = EAX;
- pkm = EBX;
- EAX = 37; //бЄа®««
- EBX = 7;
- $int 0x40
- $mov ebx, eax
- $shr eax, 16
- $and ebx,0x0000FFFF
- //hor = EAX;
- vert = EBX;
-}
-
-
-//---------------------------------------------------------------------------
-struct f70{
- dword func;
- dword param1;
- dword param2;
- dword param3;
- dword param4;
- char rezerv;
- dword name;
-};
-//---------------------------------------------------------------------------
-struct BDVK{
- dword attr;
- byte type_name;
- byte rez1, rez2, rez3;
- dword timecreate;
- dword datecreate;
- dword timelastaccess;
- dword datelastaccess;
- dword timelastedit;
- dword datelastedit;
- dword sizelo;
- dword sizehi;
- char name[518];
-};
-//---------------------------------------------------------------------------
-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 getme();
-};
-
-void proc_info::getme()
-{
- EAX = 9;
- EBX = #use_cpu;
- ECX = -1;
- $int 0x40
-}
-//-------------------------------------------------------------------------------
-
-inline fastcall dword WaitEvent(){
- EAX = 10; // wait here for event
- $int 0x40
-}
-
-inline fastcall void ExitProcess(){
- EAX = -1; // close this program
- $int 0x40
-}
-
-inline fastcall word GetKey(){
- EAX = 2; // just read this key from buffer
- $int 0x40
- EAX = EAX >> 8;
-}
-
-inline fastcall word GetButtonID(){
- EAX = 17; // Get ID
- $int 0x40
- EAX = EAX >> 8;
-}
-
-
-inline fastcall void DrawTitle(dword ECX)
-{
- EAX = 71;
- EBX = 1;
- $int 0x40;
-}
-
-inline fastcall dword GetSkinWidth()
-{
- EAX = 48;
- EBX = 4;
- $int 0x40
-}
-
-
-inline fastcall void DeleteButton(dword EDX)
-{
- EAX = 8;
- EDX = EDX + BT_DEL;
- $int 0x40;
-}
-
-
-inline fastcall dword strlen(dword EDI)
-{
-#speed
- ECX=EAX=0;
- ECX--;
- $REPNE $SCASB
- EAX=EAX-2-ECX;
-#codesize
-}
-
-
-inline fastcall int strcmp(dword EAX,EBX)
-{
-#speed
- ESI=EAX;
- EBX--;
-TOP:
- EBX++;
- $LODSB
- $CMP AL,0
- $JE HERE
- $CMP DSBYTE[EBX],AL
- $JE TOP
-HERE:
- AL-=DSBYTE[EBX];
- return AL;
-#codesize
-}
-
-
-inline fastcall dword ChangeCase(dword EDX)
-{
-#speed
- AL=DSBYTE[EDX];
- IF(AL>='a')&&(AL<='z')DSBYTE[EDX]=AL&0x5f;
- EDX++;
- do{
- AL=DSBYTE[EDX];
- IF(AL>='A')&&(AL<='Z')DSBYTE[EDX]=AL|0x20;
- EDX++;
- }while(AL!=0);
-#codesize
-}
-
-
-inline fastcall void WindowRedrawStatus(dword EBX)
-{
- EAX = 12; // function 12:tell os about windowdraw
- $int 0x40
-}
-
-
-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;
- ESI = headerType << 24 | headerColour;
- $xor eax,eax
- $int 0x40
-}
-
-
-inline fastcall void SetEventMask(dword EBX,ECX,EDX) //Coded by Leency :D
-{
- $mov eax,40
- $mov ebx,100111b
- $int 0x40
-}
-
-void DefineButton(dword x,y,w,h,EDX,ESI)
-{
- EAX = 8;
- EBX = x<<16+w;
- ECX = skin_width+y<<16+h;
- $int 0x40
-}
-
-void WriteText(dword x,y,byte fontType, dword color, EDX, ESI)
-{
- EAX = 4;
- EBX = x<<16+skin_width+y;
- ECX = fontType<<24+color;
- $int 0x40;
-}
-
-inline fastcall void PutPixel(dword EBX,ECX,EDX)
-{
- EAX=1;
- $int 0x40
-}
-
-void DrawBar(dword x,y,w,h,EDX)
-{
-#speed
- EAX = 13;
- EBX = x<<16+w;
- ECX = skin_width+y<<16+h;
- $int 0x40
-#codesize
-}
-
-void DrawRegion(dword x,y,width,height,color1)
-{
- DrawBar(x,y,width,1,color1); //Ї®«®б Ј®а ᢥаег
- DrawBar(x,y+height,width,1,color1); //Ї®«®б Ј®а бЁ§г
- DrawBar(x,y,1,height,color1); //Ї®«®б ўҐаег б«Ґў
- DrawBar(x+width,y,1,height+1,color1); //Ї®«®б ўҐаег бЇа ў
-}
-
-void DrawFlatButton(dword x,y,width,height,id,color,text)
-{
- DrawRegion(x,y,width,height,0x94AECE);
- DrawBar(x+1,y+1,width-1,1,0xFFFFFF); //Ї®«®б Ј®а ЎҐ« п
- DrawBar(x+1,y+height-1,width-2,1,0xC7C7C7); //ўҐ¬ ўҐаў
- DrawBar(x+1,y+1,1,height-1,0xFFFFFF); //Ї®«®б ўҐаў ЎҐ« Ї
- DrawBar(x+width-1,y+2,1,height-2,0xC7C7C7); //ўҐ¬ ўҐаў
- DrawBar(x+2,y+2,width-3,height-3,color); //§ «ЁўЄ
- IF (id<>0) DefineButton(x,y,width,height,id+BT_HIDE,0xEFEBEF); //®ЇаҐ¤Ґ«ЇҐ¬ Є®ЇЄЈ
- WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,0,text,0);
-}
-
-
-void PutImage(dword EBX,w,h,x,y)
-{
- EAX = 7;
- ECX = w<<16+h;
- EDX = x<<16+y+skin_width;
- $int 0x40
-}
-
-
-void copystr(dword s,d)
-{
- $mov esi,s
- $mov edi,d
- $cld
-l1:
- $lodsb
- $stosb
- $test al,al
- $jnz l1
-}
-
-
-int j=0;
-char buffer[11]="";
-inline fastcall dword IntToStr(dword ESI)
-{
- $mov edi, #buffer
- $mov ecx, 10
- $test esi, esi
- $jns f1
- $mov al, '-'
- $stosb
- $neg esi
-f1:
- $mov eax, esi
- $push -'0'
-f2:
- $xor edx, edx
- $div ecx
- $push edx
- $test eax, eax
- $jnz f2
-f3:
- $pop eax
- $add al, '0'
- $stosb
- $jnz f3
- $mov eax, #buffer
- $ret
-}
-
-
-inline fastcall dword MoveSize(dword EBX,ECX,EDX,ESI)
-{
- EAX = 67;
- $int 0x40
-}
-
-
-f70 CopyFile_f;
-BDVK CopyFile_atr;
-inline fastcall dword CopyFile(dword EBX,ECX)
-{
- dword s=EBX, d=ECX, cBufer=0;
- CopyFile_f.func = 5;
- CopyFile_f.param1 = 0;
- CopyFile_f.param2 = 0;
- CopyFile_f.param3 = 0;
- CopyFile_f.param4 = #CopyFile_atr;
- CopyFile_f.rezerv = 0;
- CopyFile_f.name = s;
- $mov eax, 70
- $mov ebx, #CopyFile_f
- $int 0x40
-
- if (EAX == 0)
- {
- cBufer = malloc(CopyFile_atr.sizelo);
- CopyFile_f.func = 0;
- CopyFile_f.param1 = 0;
- CopyFile_f.param2 = 0;
- CopyFile_f.param3 = CopyFile_atr.sizelo;
- CopyFile_f.param4 = cBufer;
- CopyFile_f.rezerv = 0;
- CopyFile_f.name = s;
- $mov eax, 70
- $mov ebx, #CopyFile_f
- $int 0x40
-
- IF (EAX == 0)
- {
- CopyFile_f.func = 2;
- CopyFile_f.param1 = 0;
- CopyFile_f.param2 = 0;
- CopyFile_f.param3 = CopyFile_atr.sizelo;
- CopyFile_f.param4 = cBufer;
- CopyFile_f.rezerv = 0;
- CopyFile_f.name = d;
- $mov eax, 70
- $mov ebx, #CopyFile_f
- $int 0x40
- }
- }
-
-}
diff --git a/programs/fs/Eolite/trunk/Eolite_svn/lib/memory.h-- b/programs/fs/Eolite/trunk/Eolite_svn/lib/memory.h--
deleted file mode 100644
index ad68fada36..0000000000
--- a/programs/fs/Eolite/trunk/Eolite_svn/lib/memory.h--
+++ /dev/null
@@ -1,36 +0,0 @@
-#code32 TRUE
-
-inline fastcall dword malloc(dword ECX){
- dword size, heap;
- #speed
- size = ECX;
- EAX = 68;
- EBX = 11;
- $int 0x40;
- heap = EAX;
- IF (size<=heap)
- {
- EAX = 68;
- EBX = 12;
- ECX = size;
- $int 0x40;
- }
- ELSE EAX=-1;
- #codesize
-}
-
-inline fastcall dword free(dword ECX){
- #speed
- EAX = 68;
- EBX = 13;
- $int 0x40;
- #codesize
-}
-
-inline fastcall dword realloc(dword ECX, EDX){
- #speed
- EAX = 68;
- EBX = 20;
- $int 0x40;
- #codesize
-}