Subversion Repositories Kolibri OS

Rev

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

Rev 7202 Rev 7227
Line 31... Line 31...
31
int WinX, WinY, WinW, WinH;
31
int WinX, WinY, WinW, WinH;
Line 32... Line 32...
32
 
32
 
33
dword set_mouse_dd;
33
dword set_mouse_dd;
34
char path_start[4096]="\0";
34
char path_start[4096]="\0";
-
 
35
edit_box path_start_ed = {290,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,4098,
Line 35... Line 36...
35
edit_box path_start_ed = {290,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,4098,#path_start,#set_mouse_dd, 100000000000010b,0,0};
36
	                      #path_start,#set_mouse_dd, 100000000000010b,0,0};
36
 
37
 
37
void settings_dialog()
38
void settings_dialog()
38
{   
39
{   
Line 88... Line 89...
88
				edit_box_key stdcall (#path_start_ed);	
89
				edit_box_key stdcall (#path_start_ed);	
89
				break;
90
				break;
90
				
91
				
Line 91... Line 92...
91
			case evReDraw:
92
			case evReDraw:
92
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 370+skin_height,0x34,system.color.work,TITLE_SETT,0);
93
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 380, 
-
 
94
					390+skin_height,0x34,system.color.work,TITLE_SETT,0);
93
				DrawSettingsCheckBoxes();
95
				DrawSettingsCheckBoxes();
94
		}
96
		}
95
	}
97
	}
96
}
98
}
Line 105... Line 107...
105
 
107
 
Line 106... Line 108...
106
void DrawSettingsCheckBoxes()
108
void DrawSettingsCheckBoxes()
107
{
109
{
108
	incn y;
110
	incn y;
109
	int x=11, but_x;
111
	int x=11, frx=26, but_x;
110
	y.n = 0;
112
	y.n = 0;
111
	CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS,  show_dev_name);
113
	CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS,  show_dev_name);
112
	CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES,  real_files_names_case);
114
	CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES,  real_files_names_case);
113
	CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR,  show_status_bar);
115
	CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR,  show_status_bar);
114
	CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END,  info_after_copy);
116
	CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END,  info_after_copy);
115
	CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS,  show_breadcrumb);
117
	CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS,  show_breadcrumb);
116
	CheckBox(x, y.inc(25), 24, USE_TWO_PANELS,  two_panels);
118
	CheckBox(x, y.inc(25), 24, USE_TWO_PANELS,  two_panels);
117
	MoreLessBox(x, y.inc(31), 30, 31, kfont.size.pt, FONT_SIZE_LABEL);
119
	MoreLessBox(x, y.inc(31), 30, 31, kfont.size.pt, FONT_SIZE_LABEL);
118
	MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT);
120
	MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT);
-
 
121
	
119
	WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH);
122
	DrawFrame(x, y.inc(37), 340, 95, START_PATH);
-
 
123
	// START_PATH {
120
	path_start_ed.top = y.inc(23);
124
	path_start_ed.top = y.inc(21);
121
	path_start_ed.left = x;
125
	path_start_ed.left = frx;
122
	DrawEditBox(#path_start_ed);
126
	DrawEditBox(#path_start_ed);
123
	but_x = DrawStandartCaptButton(x-1, y.inc(34), 6, SAVE_PATH_AS_DEFAULT);
127
	but_x = DrawStandartCaptButton(frx, y.inc(34), 6, SAVE_PATH_AS_DEFAULT);
124
	DrawStandartCaptButton(x-1+but_x, y.inc(0), 7, SAVE_START_PATH_AS_DEFAULT);
128
	DrawStandartCaptButton(frx+but_x, y.inc(0), 7, SAVE_START_PATH_AS_DEFAULT);
-
 
129
	// } START_PATH
-
 
130
 
125
	DrawStandartCaptButton(x-1, y.inc(38), 5, EDIT_FILE_ASSOCIATIONS);
131
	DrawStandartCaptButton(x, y.inc(52), 5, EDIT_FILE_ASSOCIATIONS);
126
}
132
}
Line 127... Line 133...
127
 
133
 
128
 
134