Subversion Repositories Kolibri OS

Rev

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

Rev 6251 Rev 6253
Line 3... Line 3...
3
*/
3
*/
Line 4... Line 4...
4
 
4
 
5
#define MEMSIZE 0x9000
5
#define MEMSIZE 0x9000
6
#include "..\lib\strings.h" 
6
#include "..\lib\strings.h" 
7
#include "..\lib\mem.h" 
7
#include "..\lib\mem.h" 
8
#include "..\lib\file_system.h"
8
#include "..\lib\io.h"
Line 9... Line 9...
9
#include "..\lib\gui.h"
9
#include "..\lib\gui.h"
10
 
10
 
11
#include "..\lib\obj\libio_lib.h"
11
#include "..\lib\obj\libio_lib.h"
Line 85... Line 85...
85
		// 	break;
85
		// 	break;
Line 86... Line 86...
86
 
86
 
87
		case evButton:
87
		case evButton:
88
			id=GetButtonID();               
88
			id=GetButtonID();               
89
			if (id==1) ExitProcess();
89
			if (id==1) ExitProcess();
90
			if (id>=100) RunProgram(app_path_collection.get(id-100), "");
90
			if (id>=100) EventRunApp(id-100);
Line 91... Line 91...
91
			break;
91
			break;
92
 
92
 
93
		case evReDraw:
93
		case evReDraw:
Line 175... Line 175...
175
	DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(system.color.work, system.color.work_graph, 180));
175
	DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(system.color.work, system.color.work_graph, 180));
176
	DrawBar(0,list.y-1, Form.cwidth, 1, system.color.work_graph);
176
	DrawBar(0,list.y-1, Form.cwidth, 1, system.color.work_graph);
177
	label.write_center(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title);
177
	label.write_center(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title);
178
}
178
}
Line -... Line 179...
-
 
179
 
-
 
180
void EventRunApp(dword appid)
-
 
181
{
-
 
182
	if (file_exists(app_path_collection.get(appid))) {
-
 
183
		io.run(app_path_collection.get(appid), "");
-
 
184
	}
-
 
185
	else {
-
 
186
		notify("'Application not found' -E");
-
 
187
	}
-
 
188
}
Line 179... Line 189...
179
 
189