Subversion Repositories Kolibri OS

Rev

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

Rev 6635 Rev 6678
Line 32... Line 32...
32
int WinX, WinY, WinW, WinH;
32
int WinX, WinY, WinW, WinH;
33
 
33
 
Line 34... Line 34...
34
dword set_mouse_dd;
34
dword set_mouse_dd;
35
char path_start[4096]="\0";
35
char path_start[4096]="\0";
36
edit_box path_start_ed = {230,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,2,4098,#path_start,#set_mouse_dd, 100000000000010b,0,0};
36
edit_box path_start_ed = {290,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,4098,#path_start,#set_mouse_dd, 100000000000010b,0,0};
Line 37... Line 37...
37
 
37
 
38
void settings_dialog()
38
void settings_dialog()
39
{   
39
{   
40
	byte id;
40
	byte id;
Line 89... Line 89...
89
				edit_box_key stdcall (#path_start_ed);	
89
				edit_box_key stdcall (#path_start_ed);	
90
				break;
90
				break;
91
				
91
				
Line 92... Line 92...
92
			case evReDraw:
92
			case evReDraw:
93
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 357+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
93
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 370+skin_height,0x34,system.color.work,TITLE_SETT);
94
				DrawSettingsCheckBoxes();
94
				DrawSettingsCheckBoxes();
95
		}
95
		}
96
	}
96
	}
97
}
97
}
Line 106... Line 106...
106
 
106
 
Line 107... Line 107...
107
void DrawSettingsCheckBoxes()
107
void DrawSettingsCheckBoxes()
108
{
108
{
109
	incn y;
109
	incn y;
110
	int x=11;
110
	int x=11, but_x;
111
	y.n = 0;
111
	y.n = 0;
112
	CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS,  show_dev_name);
112
	CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS,  show_dev_name);
113
	CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES,  real_files_names_case);
113
	CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES,  real_files_names_case);
114
	CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR,  show_status_bar);
114
	CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR,  show_status_bar);
115
	CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END,  info_after_copy);
115
	CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END,  info_after_copy);
Line 120... Line 120...
120
	WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH);
120
	WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH);
121
	path_start_ed.top = y.inc(23);
121
	path_start_ed.top = y.inc(23);
122
	path_start_ed.left = x;
122
	path_start_ed.left = x;
123
	DrawEditBox(#path_start_ed);
123
	DrawEditBox(#path_start_ed);
124
	DrawFlatButton(x-1, y.inc(26), strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT);
124
	but_x = DrawFlatButton(x-1, y.inc(34), 6, SAVE_PATH_AS_DEFAULT);
125
	DrawFlatButton(x-1+strlen(SAVE_PATH_AS_DEFAULT)+3*8, y.inc(0), strlen(SAVE_START_PATH_AS_DEFAULT)+3*8, 24, 7, SAVE_START_PATH_AS_DEFAULT);
125
	DrawFlatButton(x-1+but_x, y.inc(0), 7, SAVE_START_PATH_AS_DEFAULT);
126
	DrawFlatButton(x-1, y.inc(36), strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS);
126
	DrawFlatButton(x-1, y.inc(38), 5, EDIT_FILE_ASSOCIATIONS);
127
}
127
}
128
 
128
 
Line 129... Line 129...
129
 
129
 
130
void LoadIniSettings()
130
void LoadIniSettings()