/programs/cmm/eolite/Eolite.c |
---|
83,8 → 83,8 |
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
#define TITLE "Eolite File Manager v2.46" |
#define ABOUT_TITLE "Eolite v2.46" |
#define TITLE "Eolite File Manager v2.47" |
#define ABOUT_TITLE "Eolite v2.47" |
dword col_padding, col_selec, col_lpanel; |
int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
128,7 → 128,7 |
PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0}; |
#include "include\copy.h" |
#include "include\other.h" |
#include "include\gui.h" |
#include "include\sorting.h" |
#include "include\icons.h" |
#include "include\left_panel.h" |
441,7 → 441,18 |
} |
inline fastcall signed int _strrchr( ESI,BL) |
{ |
int jj=0, last=strlen(ESI); |
do{ |
jj++; |
$lodsb |
IF(AL==BL) last=jj; |
} while(AL!=0); |
return last; |
} |
void menu_action(dword id) |
{ |
if (id==COPY_PASTE_END) |
994,7 → 1005,11 |
} |
} |
//need to remove these functiones, they are a very old shit :) |
dword onLeft(dword right,left) {EAX=Form.width-right-left;} |
dword onTop(dword down,up) {EAX=Form.height-GetSkinHeight()-down-up;} |
stop: |
char menu_stak[4096]; |
/programs/cmm/eolite/compile_en.bat |
---|
4,6 → 4,7 |
@del Eolite |
cls |
c-- Eolite.c |
@kpack Eolite.com |
@rename Eolite.com Eolite |
@del warning.txt |
@del lang.h-- |
/programs/cmm/eolite/compile_ru.bat |
---|
4,6 → 4,7 |
@del Eolite |
cls |
c-- Eolite.c |
@kpack Eolite.com |
@rename Eolite.com Eolite |
@del warning.txt |
@del lang.h-- |
/programs/cmm/eolite/include/other.h |
---|
File deleted |
\ No newline at end of file |
/programs/cmm/eolite/include/gui.h |
---|
0,0 → 1,59 |
dword col_palette[14] = {0xD2D3D3,0xD4D4D4,0xD6D5D6,0xD8D7D8,0xDAD8D9,0xDCDADB, |
0xDFDCDD,0xE1DDDE,0xE2DEE0,0xE4DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1}; |
inline fastcall void Scroll() { //Ïðîêðóòêà |
dword on_y, i; |
if (files.count<=0) |
{ |
on_y = 57; |
scroll_size = onTop(22,58); |
} |
else |
{ |
on_y = files.first * onTop(22,57) / files.count +57; |
scroll_size=onTop(22,57) * files.visible - files.visible / files.count; |
if (scroll_size<20) scroll_size = 20; //óñòàíàâëèâàåì ìèíèìàëüíûé ðàçìåð ñêðîëëà |
if (scroll_size>onTop(22,57)-on_y+56) || (files.first+files.visible>=files.count) on_y=onTop(23+scroll_size,0); //äëÿ áîëüøîãî ñïèñêà |
} |
DrawFlatButton(onLeft(27,0),on_y,16,scroll_size,0,-1,"");//ïîëçóíîê |
if (!scroll_used) for (i=0; i<13; i++) DrawBar(onLeft(25-i,0), on_y+2, 1, scroll_size-3, col_palette[13-i]); |
if (scroll_used) for (i=0; i<13; i++) DrawBar(onLeft(25-i,0), on_y+2, 1, scroll_size-3, col_palette[i]); |
//ïîëå äî ïîëçóíêà |
if (on_y>58) DrawBar(onLeft(26,0),57,15,1, 0xC7C9C9); |
DrawBar(onLeft(26,0),58,1, on_y-58,0xC7C9C9); |
DrawBar(onLeft(25,0),58,14,on_y-58,0xCED0D0); |
//ïîëå ïîñëå ïîëçóíêà |
if (onTop(22,57)-scroll_size+55>on_y) DrawBar(onLeft(26,0),on_y+scroll_size+1,15,1,0xC7C9C9); |
DrawBar(onLeft(26,0),on_y+scroll_size+2,1,onTop(22,57)-scroll_size-on_y+55,0xC7C9C9); |
DrawBar(onLeft(25,0),on_y+scroll_size+2,14,onTop(22,57)-scroll_size-on_y+55,0xCED0D0); |
} |
void DrawFlatButton(dword x,y,width,height,id,color,text) |
{ |
int fill_h; |
DrawRectangle(x,y,width,height,sc.work_graph); |
DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,col_padding); |
PutPixel(x+width-1, y+1, col_padding); |
if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3); |
IF (id<>0) DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF); |
WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,sc.work_text,text); |
} |
void DrawFilledBar(dword x, y, w, h) |
{ |
int i, fill_h; |
if (h <= 14) fill_h = h; else fill_h = 14; |
for (i=0; i<fill_h; i++) DrawBar(x, y+i, w, 1, col_palette[14-i]); |
DrawBar(x, y+i, w, h-fill_h, col_palette[14-i]); |
} |
void ShowMessage(dword message, pause_duration) |
{ |
int form_x=files.w-220/2+files.x; |
int form_y=160; |
DrawPopup(form_x,form_y,220,80,1,sc.work,sc.work_graph); |
WriteText(-strlen(message)*3+110+form_x,80/2-4+form_y,0x80,sc.work_text,message); |
pause(pause_duration); |
if (pause_duration) List_ReDraw(); |
} |
/programs/cmm/eolite/include/left_panel.h |
---|
84,18 → 84,6 |
} |
} |
void DrawRamDiskSpace() |
{ |
int free_rd_space = GetFreeRamDiskClusters() * 49 / ALL_RD_CLUSTERS; |
DefineButton(120, 80, 49, 4, 27+BT_HIDE, 0); |
if (!free_rd_space) |
DrawBar(121, 81, 49-free_rd_space, 3, 0xFF0000); |
else |
{ |
DrawBar(121, 81, 49-free_rd_space, 3, 0x7A7F84); |
DrawBar(121+49-free_rd_space, 81, free_rd_space, 3, 0xC4C4C4); |
} |
} |
void SystemDiscsDraw() |
{ |
201,4 → 189,3 |
ActionsDraw(); |
LeftPanelBgDraw(); |
} |
/programs/cmm/eolite/include/settings.h |
---|
3,6 → 3,7 |
#define EDITOR_PATH "/sys/tinypad" |
#ifdef LANG_RUS |
?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
?define TITLE_SETT " áâனª¨" |
?define SET_1 "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
?define SET_2 "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
10,6 → 11,7 |
?define CANCEL_T "⬥ " |
?define APPLY_T "ਬ¥¨âì" |
#else |
?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
?define TITLE_SETT "Settings" |
?define SET_1 "Show device class name" |
?define SET_2 "Show real file names without changing case" |
20,7 → 22,7 |
int mouse_ddd; |
char lineh_s[30]="18\0"; |
edit_box LineHeight_ed = {50,10,70,0xffffff,0x94AECE,0x9098B0,0x9098B0,2,4,#lineh_s,#mouse_ddd, 1000000000000010b,2,2}; |
edit_box LineHeight_ed = {52,10,70,0xffffff,0x94AECE,0xffc90E,0xffffff,2,4,#lineh_s,#mouse_ddd, 1000000000000000b,2,2}; |
checkbox2 ShowDeviceName_chb = {10*65536+15, 10*65536+15, 5, 0xffffff, 0x9098B0, 0x80000000, SET_1, 110b}; |
checkbox2 RealFileNamesCase_chb = {10*65536+15, 30*65536+15, 5, 0xffffff, 0x9098B0, 0x80000000, SET_2, 100b}; |
28,6 → 30,7 |
{ |
byte id; |
unsigned int key; |
proc_info settings_form; |
dword eolite_ini_path = abspath("Eolite.ini"); |
if (active_about) ExitProcess(); |
active_about=1; |
52,6 → 55,10 |
active_about=0; |
ExitProcess(); |
} |
if (id==5) |
{ |
RunProgram("tinypad", "/sys/settings/assoc.ini"); |
} |
break; |
case evKey: |
74,6 → 81,7 |
case evReDraw: |
DefineAndDrawWindow(Form.left + 100, 150, 300, 200+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
GetProcessInfo(#settings_form, SelfInfo); |
if (show_dev_name) ShowDeviceName_chb.flags = 110b; |
ELSE ShowDeviceName_chb.flags = 100b; |
87,9 → 95,11 |
check_box_draw stdcall (#ShowDeviceName_chb); |
check_box_draw stdcall (#RealFileNamesCase_chb); |
edit_box_draw stdcall (#LineHeight_ed); |
WriteText(10, 55, 0x80, 0x000000, SET_3); |
DrawFlatButton(128,160,70,22,10,0xE4DFE1, APPLY_T); |
DrawFlatButton(208,160,70,22,11,0xE4DFE1, CANCEL_T); |
DrawRectangle(LineHeight_ed.left-1, LineHeight_ed.top-1, LineHeight_ed.width+2, 16, sc.work_graph); |
WriteText(10, 57, 0x80, 0x000000, SET_3); |
DrawFlatButton(9, 100, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
DrawFlatButton(128, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, APPLY_T); |
DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
} |
} |