Subversion Repositories Kolibri OS

Rev

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

Rev 5987 Rev 5996
Line 7... Line 7...
7
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
7
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
8
	?define smooth_FONT "ˆá¯®«ì§®¢ âì ᣫ ¦¥­­ë© èà¨äâ"
8
	?define smooth_FONT "ˆá¯®«ì§®¢ âì ᣫ ¦¥­­ë© èà¨äâ"
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
10
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
10
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
11
	?define T_DOUBLE_CLICK "‚à¥¬ï ¤¢®©­®£® ª«¨ª  (¢ á®âëå)"
11
	#define SAVE_PATH_AS_DEFAULT "‘®åà ­¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ­¨î"
12
	#define SAVE_PATH_AS_DEFAULT "‘®åà ­¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ­¨î"
-
 
13
#else
12
#else
14
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
13
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
15
	?define TITLE_SETT "Settings"
14
	?define TITLE_SETT "Settings"
16
	?define SHOW_DEVICE_CLASS "Show device class name"
15
	?define SHOW_DEVICE_CLASS "Show device class name"
17
	?define SHOW_REAL_NAMES "Show real file names without changing case"
16
	?define SHOW_REAL_NAMES "Show real file names without changing case"
Line 19... Line 18...
19
	?define USE_TWO_PANELS "Two panels"
18
	?define USE_TWO_PANELS "Two panels"
20
	?define smooth_FONT "Use smooth font"
19
	?define smooth_FONT "Use smooth font"
21
	?define LIST_LINE_HEIGHT "List line height"
20
	?define LIST_LINE_HEIGHT "List line height"
22
	?define NOTIFY_COPY_END "Notify when copying finished"
21
	?define NOTIFY_COPY_END "Notify when copying finished"
23
	?define T_DOUBLE_CLICK "Double click time (in hundredths)"
22
	#define SAVE_PATH_AS_DEFAULT "Save the current default path"
24
	#define SAVE_PATH_AS_DEFAULT "Save the current default path"
-
 
25
#endif
23
#endif
26
 
24
 
Line 27... Line 25...
27
char config_section[] = "Config";
25
char config_section[] = "Config";
28
int WinX, WinY, WinW, WinH;
26
int WinX, WinY, WinW, WinH;
Line 53... Line 51...
53
				else if (id==22) info_after_copy ^= 1;
51
				else if (id==22) info_after_copy ^= 1;
54
				else if (id==24) two_panels ^= true;
52
				else if (id==24) two_panels ^= true;
55
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
53
				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--;
54
				else if (id==26) && (files.item_h>18) files.item_h--;
57
				else if (id==27) MOUSE_TIME++;
55
				//else if (id==29) smooth_font ^= true;
58
				else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
-
 
59
				//else if (id==29) smooth_font ^= true;
-
 
60
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
56
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
61
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
57
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
62
				EventRedrawWindow(Form.left,Form.top);
58
				EventRedrawWindow(Form.left,Form.top);
63
				DrawSettingsCheckBoxes();
59
				DrawSettingsCheckBoxes();
64
			break;
60
			break;
Line 90... Line 86...
90
	CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS,  show_dev_name);
86
	CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS,  show_dev_name);
91
	CheckBox2(10, 33, 21, SHOW_REAL_NAMES,  real_files_names_case);
87
	CheckBox2(10, 33, 21, SHOW_REAL_NAMES,  real_files_names_case);
92
	CheckBox2(10, 55, 22, NOTIFY_COPY_END,  info_after_copy);
88
	CheckBox2(10, 55, 22, NOTIFY_COPY_END,  info_after_copy);
93
	CheckBox2(10, 77, 24, USE_TWO_PANELS,  two_panels); 
89
	CheckBox2(10, 77, 24, USE_TWO_PANELS,  two_panels);
94
	//CheckBox2(10, 99, 29, smooth_FONT,  smooth_font); 
90
	MoreLessBox(10, 125, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT);
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);
-
 
97
	if (label.font) MoreLessBox(10, 152, 18, 30, 31, #system.color, label.size.pt, FONT_SIZE_LABEL);
91
	if (label.font) MoreLessBox(10, 152, 18, 30, 31, #system.color, label.size.pt, FONT_SIZE_LABEL);
98
}
92
}
99
 
93
 
Line 107... Line 101...
107
	ini_get_int stdcall   (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX;
101
	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;
102
	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); label.size.pt = EAX;
103
	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;
104
	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;
105
	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;
106
	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;
107
	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;
108
	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;
109
	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/");
110
	ini_get_str stdcall   (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/");
119
 
111
 
Line 120... Line 112...
120
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
112
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
121
	label.init(#temp);
113
	label.init(#temp);
122
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
114
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
123
	if(!strcmp(#temp,"off"))smooth_font = false;
115
	if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true;
124
	else smooth_font = true;
-
 
125
}
116
}
Line 126... Line 117...
126
 
117
 
127
 
118
 
Line 132... Line 123...
132
	ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
123
	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);
124
	ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
134
	ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt);
125
	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);
126
	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);
127
	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);
128
	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);
-
 
140
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
129
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
141
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
130
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
142
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
131
	ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
143
	
132
	
Line 147... Line 136...
147
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
136
		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);
137
		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", label.size.pt);
138
		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);
139
		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);
140
		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);
141
		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);
142
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top);
156
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
143
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width);
157
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);
144
		ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height);
158
	}
145
	}
159
}
146
}