Subversion Repositories Kolibri OS

Rev

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

Rev 5985 Rev 5987
Line 56... Line 56...
56
				else if (id==26) && (files.item_h>18) files.item_h--;
56
				else if (id==26) && (files.item_h>18) files.item_h--;
57
				else if (id==27) MOUSE_TIME++;
57
				else if (id==27) MOUSE_TIME++;
58
				else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
58
				else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
59
				//else if (id==29) smooth_font ^= true;
59
				//else if (id==29) smooth_font ^= true;
60
				else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); }
60
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
61
				else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); }
61
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
62
				EventRedrawWindow(Form.left,Form.top);
62
				EventRedrawWindow(Form.left,Form.top);
63
				DrawSettingsCheckBoxes();
63
				DrawSettingsCheckBoxes();
64
			break;
64
			break;
65
					
65
					
Line 66... Line 66...
66
			case evKey:
66
			case evKey:
Line 93... Line 93...
93
	CheckBox2(10, 77, 24, USE_TWO_PANELS,  two_panels); 
93
	CheckBox2(10, 77, 24, USE_TWO_PANELS,  two_panels); 
94
	//CheckBox2(10, 99, 29, smooth_FONT,  smooth_font); 
94
	//CheckBox2(10, 99, 29, smooth_FONT,  smooth_font); 
95
	MoreLessBox(10, 99, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK);
95
	MoreLessBox(10, 99, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK);
96
	MoreLessBox(10, 125, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
96
	MoreLessBox(10, 125, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
97
	if (font.data) MoreLessBox(10, 152, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL);
97
	if (label.font) MoreLessBox(10, 152, 18, 30, 31, #system.color, label.size.pt, FONT_SIZE_LABEL);
98
}
98
}
99
 
99
 
Line 100... Line 100...
100
 
100
 
101
void LoadIniSettings()
101
void LoadIniSettings()
Line 105... Line 105...
105
	FileShow.font_number = 0;
105
	FileShow.font_number = 0;
106
	ini_get_int stdcall   (eolite_ini_path, #config_section, "ShowDeviceName",    1); show_dev_name = EAX;
106
	ini_get_int stdcall   (eolite_ini_path, #config_section, "ShowDeviceName",    1); show_dev_name = EAX;
107
	ini_get_int stdcall   (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX;
107
	ini_get_int stdcall   (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX;
108
	ini_get_int stdcall   (eolite_ini_path, #config_section, "InfoAfterCopy",     0); info_after_copy = EAX;
108
	ini_get_int stdcall   (eolite_ini_path, #config_section, "InfoAfterCopy",     0); info_after_copy = EAX;
109
	ini_get_int stdcall   (eolite_ini_path, #config_section, "FontSize",          9); font.size.text = EAX;
109
	ini_get_int stdcall   (eolite_ini_path, #config_section, "FontSize",          9); label.size.pt = EAX;
110
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TwoPanels",         0); two_panels = EAX;
110
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TwoPanels",         0); two_panels = EAX;
111
	//ini_get_int stdcall   (eolite_ini_path, #config_section, "UseSmoothFont",     true);smooth_font = EAX;
111
	//ini_get_int stdcall   (eolite_ini_path, #config_section, "UseSmoothFont",     true);smooth_font = EAX;
112
	ini_get_int stdcall   (eolite_ini_path, #config_section, "LineHeight",       18); files.item_h = EAX;
112
	ini_get_int stdcall   (eolite_ini_path, #config_section, "LineHeight",       18); files.item_h = EAX;
113
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TimeDoubleClick",  50); MOUSE_TIME = EAX;
113
	ini_get_int stdcall   (eolite_ini_path, #config_section, "TimeDoubleClick",  50); MOUSE_TIME = EAX;
114
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
114
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX;
115
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
115
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX;
116
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
116
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX;
117
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
117
	ini_get_int stdcall   (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX;
118
	ini_get_str stdcall   (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
118
	ini_get_str stdcall   (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
119
 
119
 
Line 120... Line 120...
120
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,"/sys/FONTS/Tahoma.kf");
120
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
121
	font.load(#temp);
121
	label.init(#temp);
122
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
122
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
123
	if(!strcmp(#temp,"off"))smooth_font = false;
123
	if(!strcmp(#temp,"off"))smooth_font = false;
124
	else smooth_font = true;
124
	else smooth_font = true;
125
}
125
}
Line 130... Line 130...
130
	
130
	
Line 131... Line 131...
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
133
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
133
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt);
135
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
135
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
136
	//ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
136
	//ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
137
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
137
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
138
	ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
138
	ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
139
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
139
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
Line 145... Line 145...
145
	{
145
	{
146
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
146
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
148
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
148
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
149
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text);
149
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", label.size.pt);
150
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
150
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
151
		//ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
151
		//ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
152
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
152
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
153
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
153
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
154
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
154
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
155
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
155
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
Line 185... Line 185...
185
 
185
 
Line 186... Line 186...
186
 
186
 
187
void BigFontsChange()
187
void BigFontsChange()
188
{
188
{
189
	files.item_h = font.size.text + 4;
189
	files.item_h = label.size.pt + 4;
190
	if (files.item_h<18) files.item_h = 18;
190
	if (files.item_h<18) files.item_h = 18;
191
	files_active.item_h = files_inactive.item_h = files.item_h;
191
	files_active.item_h = files_inactive.item_h = files.item_h;