Subversion Repositories Kolibri OS

Rev

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

Rev 6176 Rev 6278
Line 9... Line 9...
9
dword mouse_opt;
9
dword mouse_opt;
10
unsigned char POP_server1[128]="pop.server.com";
10
unsigned char POP_server1[128]="pop.server.com";
11
unsigned char POP_server_port1[5]="110";
11
unsigned char POP_server_port1[5]="110";
12
unsigned char SMTP_server1[128]="smtp.server.com";
12
unsigned char SMTP_server1[128]="smtp.server.com";
13
unsigned char SMTP_server_port1[5]="25";
13
unsigned char SMTP_server_port1[5]="25";
14
edit_box POP_server_box        = {210,190,90 ,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,sizeof(POP_server1),#POP_server1,#mouse_opt,100000000000b};
14
edit_box POP_server_box        = {210,230,125 ,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,sizeof(POP_server1),#POP_server1,#mouse_opt,100000000000b};
15
edit_box POP_server_port_box   = {210,190,115,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,5,#POP_server_port1,#mouse_opt,100000000000b};
15
edit_box POP_server_port_box   = {210,230,160,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,5,#POP_server_port1,#mouse_opt,100000000000b};
16
edit_box SMTP_server_box       = {210,190,140,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,sizeof(SMTP_server1),#SMTP_server1,#mouse_opt,100000000000b};
16
edit_box SMTP_server_box       = {210,230,195,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,sizeof(SMTP_server1),#SMTP_server1,#mouse_opt,100000000000b};
17
edit_box SMTP_server_port_box  = {210,190,165,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,5,#SMTP_server_port1,#mouse_opt,100000000000b};
17
edit_box SMTP_server_port_box  = {210,230,230,0xffffff,0x94AECE,0xffc90E,0xCACACA,0,5,#SMTP_server_port1,#mouse_opt,100000000000b};
Line 18... Line 18...
18
 
18
 
19
 
19
 
20
void SettingsDialog()
20
void SettingsDialog()
Line 95... Line 95...
95
 
95
 
96
void OptionsWindow()
96
void OptionsWindow()
97
{
97
{
98
	#define ELEM_X 25
98
	#define ELEM_X 25
-
 
99
	int i;
-
 
100
	incn y;
99
	int i;
101
	y.n=0;
100
	DrawBar(0, Form.cheight - 40, Form.cwidth, 1, system.color.work_graph);
102
	DrawBar(0, Form.cheight - 40, Form.cwidth, 1, system.color.work_graph);
101
	DrawBar(0, Form.cheight - 40+1, Form.cwidth, 1, LBUMP);
103
	DrawBar(0, Form.cheight - 40+1, Form.cwidth, 1, LBUMP);
Line 102... Line 104...
102
	DrawCaptButton(Form.cwidth-79, Form.cheight-32, 70, 25, 19, system.color.work_button, system.color.work_button_text,"Apply");
104
	DrawCaptButton(Form.cwidth-79, Form.cheight-32, 70, 25, 19, system.color.work_button, system.color.work_button_text,"Apply");
103
 
105
 
104
	WriteTextB(ELEM_X, 20, 0x90, system.color.work_text, "Network settings");
106
	WriteText(ELEM_X, y.inc(20), 0x81, system.color.work_text, "Network settings");
105
	CheckBox(ELEM_X, 45, 17, "Use custom settings", checked[0]);
107
	CheckBox(ELEM_X, y.inc(35), 17, "Use custom settings", checked[0]);
106
	CheckBox(ELEM_X, 65, 18, "Manual configuration", checked[1]);
-
 
107
	for (i=0; i<4; i++)
108
	CheckBox(ELEM_X, y.inc(30), 18, "Manual configuration", checked[1]);
108
	{
-
 
109
		WriteText(ELEM_X+40, i*25+4+POP_server_box.top, 0x80, system.color.work_text, text1[i]);
-
 
110
		DrawRectangle(POP_server_box.left-1, i*25+POP_server_box.top-1, POP_server_box.width+2, 16, system.color.work_graph);
109
	EDI = system.color.work;
111
	}
110
	for (i=0; i<4; i++)	WriteText(ELEM_X+40, i*35+POP_server_box.top, 0xD0, system.color.work_text, text1[i]);
112
	edit_box_draw stdcall(#POP_server_box);
111
	DrawEditBox(#POP_server_box);
113
	edit_box_draw stdcall(#POP_server_port_box);
112
	DrawEditBox(#POP_server_port_box);
114
	edit_box_draw stdcall(#SMTP_server_box);
113
	DrawEditBox(#SMTP_server_box);
115
	edit_box_draw stdcall(#SMTP_server_port_box);
114
	DrawEditBox(#SMTP_server_port_box);