Subversion Repositories Kolibri OS

Rev

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

Rev 5846 Rev 5877
Line 55... Line 55...
55
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
55
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
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) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); }
61
				else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); }
61
				else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); }
62
				EventRedrawWindow(Form.left,Form.top);
62
				EventRedrawWindow(Form.left,Form.top);
63
				DrawSettingsCheckBoxes();
63
				DrawSettingsCheckBoxes();
64
			break;
64
			break;
65
					
65
					
Line 68... Line 68...
68
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
68
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
69
				break;
69
				break;
70
				
70
				
Line 71... Line 71...
71
			case evReDraw:
71
			case evReDraw:
72
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 280+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
72
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 260+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
73
				DrawSettingsCheckBoxes();
73
				DrawSettingsCheckBoxes();
74
				DrawFlatButton(9, 208, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
74
				DrawFlatButton(9, 183, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT);
75
				DrawFlatButton(9, 240, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
75
				DrawFlatButton(9, 215, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS);
76
		}
76
		}
77
	}
77
	}
78
}
78
}
Line 79... Line 79...
79
 
79
 
Line 90... Line 90...
90
	CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS,  show_dev_name);
90
	CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS,  show_dev_name);
91
	CheckBox2(10, 33, 21, SHOW_REAL_NAMES,  real_files_names_case);
91
	CheckBox2(10, 33, 21, SHOW_REAL_NAMES,  real_files_names_case);
92
	CheckBox2(10, 55, 22, NOTIFY_COPY_END,  info_after_copy);
92
	CheckBox2(10, 55, 22, NOTIFY_COPY_END,  info_after_copy);
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, USE_SMOOTH_FONT,  smooth_font); 
94
	//CheckBox2(10, 99, 29, USE_SMOOTH_FONT,  smooth_font); 
95
	MoreLessBox(10, 125, 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, 152, 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, 179, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL);
97
	if (font.data) MoreLessBox(10, 152, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL);
98
}
98
}
99
 
99
 
Line 100... Line 100...
100
 
100
 
101
void LoadIniSettings()
101
void LoadIniSettings()
Line 107... Line 107...
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); font.size.text = 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;
Line 126... Line 126...
126
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
126
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
127
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
127
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
128
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text);
128
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text);
129
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
129
	ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
130
	ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
130
	//ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
133
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
133
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
135
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
135
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
136
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
136
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
Line 141... Line 141...
141
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
141
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
142
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
142
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
143
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text);
143
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text);
144
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
144
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels);
145
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
145
		//ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font);
146
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
146
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h);
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME);
148
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
148
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left);
149
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
149
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
150
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
150
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
151
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);
151
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);