Subversion Repositories Kolibri OS

Rev

Rev 6039 | Rev 6050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6039 Rev 6049
Line 42... Line 42...
42
				}
42
				}
43
				else if (id==6)
43
				else if (id==6)
44
				{
44
				{
45
					ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
45
					ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
46
					IF(CMD_ENABLE_SAVE_IMG)ini_set_str stdcall (fd_path_eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
46
					break;
47
					break;
-
 
48
				}
47
				}
49
				else if (id==20) show_dev_name ^= 1;
48
				else if (id==20) show_dev_name ^= 1;
50
				else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
49
				else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
51
				else if (id==22) info_after_copy ^= 1;
50
				else if (id==22) info_after_copy ^= 1;
52
				else if (id==24) two_panels ^= true;
51
				else if (id==24) two_panels ^= true;
Line 114... Line 113...
114
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
113
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
115
	if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true;
114
	if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true;
116
}
115
}
117
 
116
 
Line 118... Line -...
118
void ProceedSaveSettings(dword save_path) 
-
 
119
{
-
 
120
	ini_set_int stdcall (save_path, #config_section, "ShowDeviceName", show_dev_name);
-
 
121
	ini_set_int stdcall (save_path, #config_section, "RealFileNamesCase", real_files_names_case);
-
 
122
	ini_set_int stdcall (save_path, #config_section, "InfoAfterCopy", info_after_copy);
-
 
123
	ini_set_int stdcall (save_path, #config_section, "FontSize", label.size.pt);
-
 
124
	ini_set_int stdcall (save_path, #config_section, "TwoPanels", two_panels);
-
 
125
	ini_set_int stdcall (save_path, #config_section, "LineHeight", files.item_h);
-
 
126
	ini_set_int stdcall (save_path, #config_section, "WinX", Form.left);
-
 
127
	ini_set_int stdcall (save_path, #config_section, "WinY", Form.top);
-
 
128
	ini_set_int stdcall (save_path, #config_section, "WinW", Form.width);
-
 
129
	ini_set_int stdcall (save_path, #config_section, "WinH", Form.height);
-
 
130
}
-
 
Line 131... Line 117...
131
 
117
 
132
void SaveIniSettings()
118
void SaveIniSettings()
-
 
119
{
-
 
120
	ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
-
 
121
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
-
 
122
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
-
 
123
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt);
-
 
124
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
-
 
125
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
133
{
126
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
134
	ProceedSaveSettings(eolite_ini_path);
127
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
-
 
128
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
135
	if(CMD_ENABLE_SAVE_IMG) ProceedSaveSettings(fd_path_eolite_ini_path);
129
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
Line 136... Line 130...
136
}
130
}