Subversion Repositories Kolibri OS

Rev

Rev 8947 | Rev 8953 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8947 Rev 8949
Line 66... Line 66...
66
					break;
66
					break;
67
				}
67
				}
68
				else if (id==6)
68
				else if (id==6)
69
				{
69
				{
70
					strcpy(#path_start,#path);
70
					strcpy(#path_start,path);
71
					path_start_ed.size = path_start_ed.pos = strlen(#path_start);
71
					path_start_ed.size = path_start_ed.pos = strlen(#path_start);
72
					ini.SetString("DefaultPath", #path, strlen(#path));
72
					ini.SetString("DefaultPath", path, strlen(path));
73
					edit_box_draw stdcall (#path_start_ed);
73
					edit_box_draw stdcall (#path_start_ed);
74
					break;
74
					break;
75
				}
75
				}
76
				else if (id==7)
76
				else if (id==7)
77
				{
77
				{
78
					SetDefaultPath(#path_start);
78
					SetDefaultPath(#path_start);
Line 101... Line 101...
101
				break;
101
				break;
102
				
102
				
Line 103... Line 103...
103
			case evReDraw:
103
			case evReDraw:
104
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
104
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
105
					365+skin_height,0x34,sc.work,TITLE_SETT,0);
105
					-efm*62+365+skin_height,0x34,sc.work,TITLE_SETT,0);
106
				GetProcessInfo(#Settings, SelfInfo);
106
				GetProcessInfo(#Settings, SelfInfo);
107
				DrawSettingsCheckBoxes();
107
				DrawSettingsCheckBoxes();
108
		}
108
		}
109
	}
109
	}
110
}
110
}
Line 123... Line 123...
123
	int but_x;
123
	int but_x;
124
	#define FRX 26
124
	#define FRX 26
125
	#define XXX 11
125
	#define XXX 11
126
	y.n = 0;
126
	y.n = 0;
127
	show_dev_name.draw(XXX, y.inc(14));
127
	if (!efm) {
-
 
128
		show_dev_name.draw(XXX, y.inc(14));
128
	show_status_bar.draw(XXX, y.inc(25));
129
		show_status_bar.draw(XXX, y.inc(25));
129
	show_breadcrumb.draw(XXX, y.inc(25));
130
		show_breadcrumb.draw(XXX, y.inc(25));
130
	big_icons.draw(XXX, y.inc(25));
131
	}
-
 
132
	big_icons.draw(XXX, y.inc(25));
131
	colored_lines.draw(XXX, y.inc(25));
133
	colored_lines.draw(XXX, y.inc(25));
132
	font_size.draw(XXX, y.inc(31));
134
	font_size.draw(XXX, y.inc(31));
133
	line_height.draw(XXX, y.inc(31));
135
	line_height.draw(XXX, y.inc(31));
134
	
136
	
Line 158... Line 160...
158
	Form.left   = ini.GetInt("WinX", 100); 
160
	Form.left   = ini.GetInt("WinX", 100); 
159
	Form.top    = ini.GetInt("WinY", 30); 
161
	Form.top    = ini.GetInt("WinY", 30); 
160
	Form.width  = ini.GetInt("WinW", efm*170+550); 
162
	Form.width  = ini.GetInt("WinW", efm*170+550); 
161
	Form.height = ini.GetInt("WinH", efm*100+517); 
163
	Form.height = ini.GetInt("WinH", efm*100+517); 
162
	ini.GetString("DefaultPath", #path, 4096, "/rd/1");
164
	ini.GetString("DefaultPath", #path_start, 4096, "/rd/1");
163
	ini.GetString("DefaultPath", #path_start, 4096, "/rd/1");
-
 
164
	path_start_ed.size = path_start_ed.pos = strlen(#path_start);
165
	path_start_ed.size = path_start_ed.pos = strlen(#path_start);
165
	kfont.init(DEFAULT_FONT);
166
	kfont.init(DEFAULT_FONT);
166
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
167
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
167
	if(streq(#temp,"off")) kfont.smooth = false; else kfont.smooth = true;
168
	if(streq(#temp,"off")) kfont.smooth = false; else kfont.smooth = true;
168
}
169
}