Subversion Repositories Kolibri OS

Rev

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

Rev 4667 Rev 5493
Line 84... Line 84...
84
 
84
 
85
			case evReDraw:
85
			case evReDraw:
86
				sc.get();
86
				sc.get();
87
				DefineAndDrawWindow(215,100,WIN_W,WIN_H,0x73,sc.work,#header,0);
87
				DefineAndDrawWindow(215,100,WIN_W,WIN_H,0x73,sc.work,#header,0);
88
				GetProcessInfo(#Form, SelfInfo);
88
				GetProcessInfo(#Form, SelfInfo);
89
				if (Form.status_window>2) return;
89
				if (Form.status_window>2) break;
90
				if (Form.height<120) MoveSize(OLD,OLD,OLD,120);
90
				if (Form.height<120) MoveSize(OLD,OLD,OLD,120);
91
				if (Form.width<280) MoveSize(OLD,OLD,280,OLD);
91
				if (Form.width<280) MoveSize(OLD,OLD,280,OLD);
92
				diagram.Init(20, 87, Form.cwidth - 40, Form.cheight - 87 - 28);
92
				diagram.Init(20, 87, Form.cwidth - 40, Form.cheight - 87 - 28);
93
				Draw_Window();
93
				Draw_Window();
Line 103... Line 103...
103
					bufsize = ESI.http_msg.content_received;
103
					bufsize = ESI.http_msg.content_received;
104
					http_free stdcall (http_transfer);
104
					http_free stdcall (http_transfer);
105
					http_transfer=0;
105
					http_transfer=0;
106
					strcpy(#filepath, "/tmp0/1/");
106
					strcpy(#filepath, "/tmp0/1/");
107
					strcat(#filepath, #URL+strrchr(#URL, '/'));
107
					strcat(#filepath, #URL+strrchr(#URL, '/'));
108
					if (WriteFile(bufsize, bufpointer, #filepath))
108
					if (!WriteFile(bufsize, bufpointer, #filepath))
109
					{
109
					{
110
						strcpy(#notify_message, "File saved as ");
110
						strcpy(#notify_message, "File saved as ");
111
					}
111
					}
112
					else
112
					else
113
					{
113
					{
Line 233... Line 233...
233
			return;
233
			return;
234
		}
234
		}
235
	}
235
	}
236
	else
236
	else
237
	{
237
	{
238
		notify("File adress should starts form http://");
238
		notify("File adress should starts from http://");
239
	}
239
	}
240
}
240
}