Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5464 → Rev 5478

/programs/cmm/eolite/Eolite.c
83,8 → 83,8
 
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
 
#define TITLE "Eolite File Manager v2.56"
#define ABOUT_TITLE "Eolite v2.56"
#define TITLE "Eolite File Manager v2.57"
#define ABOUT_TITLE "Eolite v2.57"
dword col_padding, col_selec, col_lpanel;
 
int toolbar_buttons_x[7]={9,46,85,134,167,203};
/programs/cmm/eolite/include/settings.h
22,9 → 22,6
?define APPLY_T "Apply"
#endif
 
int mouse_ddd;
char lineh_s[30]="18\0";
edit_box LineHeight_ed = {52,10,97,0xffffff,0x94AECE,0xffc90E,0xffffff,2,4,#lineh_s,#mouse_ddd, 1000000000000000b,2,2};
 
void settings_dialog()
{
35,7 → 32,6
if (active_settings) ExitProcess();
active_settings=1;
 
SetEventMask(0x27);
loop() switch(WaitEvent())
{
case evButton:
60,6 → 56,8
if (id==20) show_dev_name ^= 1;
if (id==21) real_files_names_case ^= 1;
if (id==22) info_after_copy ^= 1;
if (id==25) files.line_h++;
if (id==26) && (files.line_h>8) files.line_h--;
DrawSettingsCheckBoxes();
break;
71,14 → 69,8
action_buf = 300;
ExitProcess();
}
EAX=key<<8;
edit_box_key stdcall(#LineHeight_ed);
break;
case evMouse:
edit_box_mouse stdcall (#LineHeight_ed);
break;
case evReDraw:
DefineAndDrawWindow(Form.left + 100, 150, 300, 210+GetSkinHeight(),0x34,sc.work,TITLE_SETT);
GetProcessInfo(#settings_form, SelfInfo);
85,12 → 77,6
 
DrawSettingsCheckBoxes();
 
WriteText(10, 84, 0x80, 0x000000, SET_3);
key = itoa(files.line_h);
strcpy(#lineh_s, key);
edit_box_draw stdcall (#LineHeight_ed);
DrawRectangle(LineHeight_ed.left-1, LineHeight_ed.top-1, LineHeight_ed.width+2, 16, sc.work_graph);
 
DrawFlatButton(9, 127, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
 
DrawFlatButton(128, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, APPLY_T);
103,6 → 89,7
CheckBox2(10, 11, 20, SET_1, show_dev_name);
CheckBox2(10, 33, 21, SET_2, real_files_names_case);
CheckBox2(10, 55, 22, SET_4, info_after_copy);
MoreLessBox(10, 82, 18, 25, 26, sc.work_graph, 0xD2D3D3, 0x000000, files.line_h, SET_3);
}
 
 
126,7 → 113,7
ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", show_dev_name);
ini_set_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", real_files_names_case);
ini_set_int stdcall (eolite_ini_path, "Config", "InfoAfterCopy", info_after_copy);
ini_set_int stdcall (eolite_ini_path, "Config", "LineHeight", atoi(#lineh_s));
ini_set_int stdcall (eolite_ini_path, "Config", "LineHeight", files.line_h);
}