Subversion Repositories Kolibri OS

Rev

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

Rev 7375 Rev 7422
Line 6... Line 6...
6
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
6
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
7
	?define SHOW_BREADCRUMBS "ˆá¯®«ì§®¢ âì 'å«¥¡­ë¥ ªà®èª¨'"
7
	?define SHOW_BREADCRUMBS "ˆá¯®«ì§®¢ âì 'å«¥¡­ë¥ ªà®èª¨'"
8
	?define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
8
	?define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
9
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
9
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
10
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
10
	?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥â­ë¥ «¨­¨¨ ¢ ᯨ᪥"
-
 
11
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
11
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
12
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
12
	?define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
13
	?define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
13
	?define SAVE_START_PATH_AS_DEFAULT "‚¢¥¤¥­­ë© ¯ãâì"
14
	?define SAVE_START_PATH_AS_DEFAULT "‚¢¥¤¥­­ë© ¯ãâì"
14
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
15
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
15
	?define START_PATH " ‘â àâ®¢ë© ¯ãâì: "
16
	?define START_PATH " ‘â àâ®¢ë© ¯ãâì: "
Line 21... Line 22...
21
	?define NOTIFY_COPY_END "Notify when copying finished"
22
	?define NOTIFY_COPY_END "Notify when copying finished"
22
	?define SHOW_BREADCRUMBS "Show breadcrumbs"
23
	?define SHOW_BREADCRUMBS "Show breadcrumbs"
23
	?define BIG_ICONS "Big icons in list"
24
	?define BIG_ICONS "Big icons in list"
24
	?define USE_TWO_PANELS "Two panels"
25
	?define USE_TWO_PANELS "Two panels"
25
	?define FONT_SIZE_LABEL "Font size"
26
	?define COLORED_LINES "Highlight even lines in list"
-
 
27
	?define FONT_SIZE_LABEL "Font size"
26
	?define LIST_LINE_HEIGHT "List line height"
28
	?define LIST_LINE_HEIGHT "List line height"
27
	?define SAVE_PATH_AS_DEFAULT "Current path"
29
	?define SAVE_PATH_AS_DEFAULT "Current path"
28
	?define SAVE_START_PATH_AS_DEFAULT "Typed path"
30
	?define SAVE_START_PATH_AS_DEFAULT "Typed path"
29
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
31
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
30
	?define START_PATH " Start path: "
32
	?define START_PATH " Start path: "
Line 42... Line 44...
42
checkbox info_after_copy  = { NOTIFY_COPY_END };
44
checkbox info_after_copy  = { NOTIFY_COPY_END };
43
checkbox show_breadcrumb  = { SHOW_BREADCRUMBS };
45
checkbox show_breadcrumb  = { SHOW_BREADCRUMBS };
44
checkbox big_icons        = { BIG_ICONS };
46
checkbox big_icons        = { BIG_ICONS };
45
checkbox two_panels       = { USE_TWO_PANELS };
47
checkbox two_panels       = { USE_TWO_PANELS };
46
 
48
checkbox colored_lines    = { COLORED_LINES };
-
 
49
 
Line 47... Line 50...
47
 
50
 
48
void settings_dialog()
51
void settings_dialog()
49
{   
52
{   
Line 86... Line 89...
86
				info_after_copy.click(id);
89
				info_after_copy.click(id);
87
				two_panels.click(id);
90
				two_panels.click(id);
88
				show_breadcrumb.click(id);
91
				show_breadcrumb.click(id);
89
				show_status_bar.click(id);
92
				show_status_bar.click(id);
90
				if (font_size.click(id)) { 
93
				colored_lines.click(id);
-
 
94
				if (font_size.click(id)) { 
91
					kfont.size.pt = font_size.value; 
95
					kfont.size.pt = font_size.value; 
92
					kfont.changeSIZE(); 
96
					kfont.changeSIZE(); 
93
					BigFontsChange(); 
97
					BigFontsChange(); 
94
				}
98
				}
95
				if (line_height.click(id)) files.item_h = files_inactive.item_h = line_height.value; 
99
				if (line_height.click(id)) files.item_h = files_inactive.item_h = line_height.value; 
Line 106... Line 110...
106
				break;
110
				break;
107
				
111
				
Line 108... Line 112...
108
			case evReDraw:
112
			case evReDraw:
109
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
113
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
110
					410+skin_height,0x34,system.color.work,TITLE_SETT,0);
114
					435+skin_height,0x34,system.color.work,TITLE_SETT,0);
111
				GetProcessInfo(#Settings, SelfInfo);
115
				GetProcessInfo(#Settings, SelfInfo);
112
				DrawSettingsCheckBoxes();
116
				DrawSettingsCheckBoxes();
113
		}
117
		}
114
	}
118
	}
115
}
119
}
Line 133... Line 137...
133
	info_after_copy.draw(x, y.inc(25));
137
	info_after_copy.draw(x, y.inc(25));
134
	show_breadcrumb.draw(x, y.inc(25));
138
	show_breadcrumb.draw(x, y.inc(25));
135
	big_icons.draw(x, y.inc(25));
139
	big_icons.draw(x, y.inc(25));
136
	two_panels.draw(x, y.inc(25));
140
	two_panels.draw(x, y.inc(25));
137
	font_size.draw(x, y.inc(31));
141
	colored_lines.draw(x, y.inc(25));
-
 
142
	font_size.draw(x, y.inc(31));
138
	line_height.draw(x, y.inc(31));
143
	line_height.draw(x, y.inc(31));
139
	
144
	
Line 140... Line 145...
140
	DrawFrame(x, y.inc(37), 340, 95, START_PATH);
145
	DrawFrame(x, y.inc(37), 340, 95, START_PATH);
141
	// START_PATH {
146
	// START_PATH {
Line 159... Line 164...
159
	show_status_bar.checked = ini.GetInt("ShowStatusBar", true); 
164
	show_status_bar.checked = ini.GetInt("ShowStatusBar", true); 
160
	info_after_copy.checked = ini.GetInt("InfoAfterCopy", false); 
165
	info_after_copy.checked = ini.GetInt("InfoAfterCopy", false); 
161
	big_icons.checked       = ini.GetInt("BigIcons", false); BigIconsSwitch();
166
	big_icons.checked       = ini.GetInt("BigIcons", false); BigIconsSwitch();
162
	two_panels.checked      = ini.GetInt("TwoPanels", false); 
167
	two_panels.checked      = ini.GetInt("TwoPanels", false); 
163
	kfont.size.pt   = ini.GetInt("FontSize", 13); 
168
	colored_lines.checked   = ini.GetInt("ColoredLines", false); 
-
 
169
	kfont.size.pt   = ini.GetInt("FontSize", 13); 
164
	files.item_h    = ini.GetInt("LineHeight", 19);
170
	files.item_h    = ini.GetInt("LineHeight", 19);
165
	Form.left   = ini.GetInt("WinX", 200); 
171
	Form.left   = ini.GetInt("WinX", 200); 
166
	Form.top    = ini.GetInt("WinY", 50); 
172
	Form.top    = ini.GetInt("WinY", 50); 
167
	Form.width  = ini.GetInt("WinW", 550); 
173
	Form.width  = ini.GetInt("WinW", 550); 
168
	Form.height = ini.GetInt("WinH", 506); 
174
	Form.height = ini.GetInt("WinH", 506); 
Line 182... Line 188...
182
	ini.SetInt("ShowDeviceName", show_dev_name.checked);
188
	ini.SetInt("ShowDeviceName", show_dev_name.checked);
183
	ini.SetInt("ShowStatusBar", show_status_bar.checked);
189
	ini.SetInt("ShowStatusBar", show_status_bar.checked);
184
	ini.SetInt("RealFileNamesCase", show_real_names.checked);
190
	ini.SetInt("RealFileNamesCase", show_real_names.checked);
185
	ini.SetInt("InfoAfterCopy", info_after_copy.checked);
191
	ini.SetInt("InfoAfterCopy", info_after_copy.checked);
186
	ini.SetInt("FontSize", kfont.size.pt);
192
	ini.SetInt("BigIcons", big_icons.checked);
187
	ini.SetInt("BigIcons", big_icons.checked);
-
 
188
	ini.SetInt("TwoPanels", two_panels.checked);
193
	ini.SetInt("TwoPanels", two_panels.checked);
189
	ini.SetInt("LineHeight", files.item_h);
194
	ini.SetInt("ColoredLines", colored_lines.checked);
-
 
195
	ini.SetInt("FontSize", kfont.size.pt);
-
 
196
	ini.SetInt("LineHeight", files.item_h);
190
	ini.SetInt("WinX", Form.left);
197
	ini.SetInt("WinX", Form.left);
191
	ini.SetInt("WinY", Form.top);
198
	ini.SetInt("WinY", Form.top);
192
	ini.SetInt("WinW", Form.width);
199
	ini.SetInt("WinW", Form.width);
193
	ini.SetInt("WinH", Form.height);
200
	ini.SetInt("WinH", Form.height);
194
}
201
}