Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6038 → Rev 6039

/programs/cmm/eolite/Eolite.c
602,25 → 602,25
llist_copy(#files, #files_inactive);
strcpy(#path, #inactive_path);
col_selec = 0xCCCccc;
files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y, files.item_h);
files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2, files.item_h);
DrawList();
Open_Dir(#path,WITH_REDRAW);
llist_copy(#files, #files_active);
strcpy(#path, #active_path);
col_selec = 0x94AECE;
files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y, files.item_h);
files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y-2, files.item_h);
DrawList();
Open_Dir(#path,WITH_REDRAW);
}
if (active_panel==2)
{
files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y, files.item_h);
files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y-2, files.item_h);
DrawList();
Open_Dir(#path,WITH_REDRAW);
llist_copy(#files, #files_active);
strcpy(#path, #active_path);
col_selec = 0x94AECE;
files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y, files.item_h);
files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2, files.item_h);
DrawList();
Open_Dir(#path,WITH_REDRAW);
}
/programs/cmm/eolite/include/gui.h
53,8 → 53,7
if (height<18)
WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80 ,system.color.work_text,text);
else
WriteText(-strlen(text)*8+width/2+x+1,height/2+y-6,10010000b,system.color.work_text,text);
 
WriteText(-strlen(text)*8+width/2+x+1,height/2+y-6,0x90,system.color.work_text,text);
}
 
void DrawFilledBar(dword x, y, w, h)
/programs/cmm/eolite/include/settings.h
100,15 → 100,16
ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); label.size.pt = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 12); label.size.pt = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 19); files.item_h = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 506); WinH = EAX;
ini_get_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
 
 
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
label.init(#temp);
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
115,35 → 116,25
if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true;
}
 
void ProceedSaveSettings(dword save_path)
{
ini_set_int stdcall (save_path, #config_section, "ShowDeviceName", show_dev_name);
ini_set_int stdcall (save_path, #config_section, "RealFileNamesCase", real_files_names_case);
ini_set_int stdcall (save_path, #config_section, "InfoAfterCopy", info_after_copy);
ini_set_int stdcall (save_path, #config_section, "FontSize", label.size.pt);
ini_set_int stdcall (save_path, #config_section, "TwoPanels", two_panels);
ini_set_int stdcall (save_path, #config_section, "LineHeight", files.item_h);
ini_set_int stdcall (save_path, #config_section, "WinX", Form.left);
ini_set_int stdcall (save_path, #config_section, "WinY", Form.top);
ini_set_int stdcall (save_path, #config_section, "WinW", Form.width);
ini_set_int stdcall (save_path, #config_section, "WinH", Form.height);
}
 
void SaveIniSettings()
{
ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt);
ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
if(CMD_ENABLE_SAVE_IMG)
{
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", label.size.pt);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);
ProceedSaveSettings(eolite_ini_path);
if(CMD_ENABLE_SAVE_IMG) ProceedSaveSettings(fd_path_eolite_ini_path);
}
}
 
 
 
/programs/cmm/eolite/include/translations.h
1,5 → 1,5
#define TITLE "Eolite File Manager v3.34"
#define ABOUT_TITLE "Eolite 3.34"
#define TITLE "Eolite File Manager v3.35"
#define ABOUT_TITLE "Eolite 3.35"
 
#ifdef LANG_RUS
?define T_FILE "” ©«"
/programs/cmm/lib/kolibri.h
26,7 → 26,7
char param[4096];
char program_path[4096];
 
dword TEMP = 0;
#define bool char
 
#define NULL 0
#define OLD -1
33,8 → 33,7
#define true 1
#define false 0
 
//Events
 
//Process Events
#define evReDraw 1
#define evKey 2
#define evButton 3
44,8 → 43,6
#define evNetwork 8
#define evDebug 9
 
#define EVENT_MOUSE case 6: mouse.get();
 
//Button options
#define BT_DEL 0x80000000
#define BT_HIDE 0x40000000
/programs/cmm/lib/list_box.h
34,10 → 34,10
int KeyLeft();
int KeyRight();
void CheckDoesValuesOkey();
void debug_values();
void debug();
};
 
void llist::debug_values()
void llist::debug()
{
char yi[128];
sprintf(#yi, "%s %d %s %d %s %d %s %d %s %d %s %d", "first:", first, "visible:", visible, "count:", count, "col_max:", column_max, "cur_y:", cur_y, "cur_x:", cur_x);