Subversion Repositories Kolibri OS

Rev

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

Rev 8854 Rev 8868
Line 128... Line 128...
128
#define DDW 120
128
#define DDW 120
Line 129... Line 129...
129
 
129
 
130
void _SystemDiscs::Draw()
130
void _SystemDiscs::Draw()
131
{    
131
{    
132
	char dev_name[15], disc_name[100], i, dev_icon, is_active=0, name_len;
132
	char dev_name[15], disc_name[100], i, dev_icon, is_active=0;
Line 133... Line 133...
133
	int draw_y, draw_x;
133
	int draw_y, draw_x;
Line 134... Line 134...
134
	
134
	
Line 190... Line 190...
190
	DrawRectangle(draw_x-1, draw_y-1, DDW+2-DEV_H_HOR, DEV_H_HOR+1, sc.work_graph);
190
	DrawRectangle(draw_x-1, draw_y-1, DDW+2-DEV_H_HOR, DEV_H_HOR+1, sc.work_graph);
191
	DrawBar(draw_x, draw_y, DDW+1-DEV_H_HOR, DEV_H_HOR, 0xFFFFFF);
191
	DrawBar(draw_x, draw_y, DDW+1-DEV_H_HOR, DEV_H_HOR, 0xFFFFFF);
192
	_PutImage(draw_x + 5, draw_y+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
192
	_PutImage(draw_x + 5, draw_y+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
193
	kfont.WriteIntoWindow(draw_x + 24, draw_y+2, 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
193
	kfont.WriteIntoWindow(draw_x + 24, draw_y+2, 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
194
	UnsafeDefineButton(draw_x, draw_y, DDW-1, DEV_H_HOR-1, btid+1+BT_HIDE,0xFFFFFF);
194
	DefineButton(draw_x, draw_y, DDW-1, DEV_H_HOR-1, btid+1+BT_HIDE,0xFFFFFF);
195
	DrawFlatButtonSmall(draw_x+DDW-DEV_H_HOR+1, draw_y-1, DEV_H_HOR-1, DEV_H_HOR+1, btid, "\x19");
195
	DrawFlatButtonSmall(draw_x+DDW-DEV_H_HOR+1, draw_y-1, DEV_H_HOR-1, DEV_H_HOR+1, btid, "\x19");
196
 
196
 
Line 197... Line 197...
197
	draw_x += DDW + 1;
197
	draw_x += DDW + 1;
198
	//DrawBar(draw_x, draw_y, Form.cwidth - draw_x - 2, DEV_H_HOR, sc.work);
198
	//DrawBar(draw_x, draw_y, Form.cwidth - draw_x - 2, DEV_H_HOR, sc.work);
199
}
199
}
Line 283... Line 283...
283
{
283
{
284
	int actions_y = SystemDiscs.list.count*DEV_H;
284
	int actions_y = SystemDiscs.list.count*DEV_H;
285
	int start_y = actions_y+159;
285
	int start_y = actions_y+159;
286
	int area_h;
286
	int area_h;
287
	int i;
287
	DrawBar(2,41,190,15,waves_pal[0]);		      //above devices block
288
	DrawBar(2,41,190,15,waves_pal[0]);		      //above devices block
-
 
289
	DrawBar(17,actions_y+75,160,15,waves_pal[0]); //below devices block
288
	DrawBar(17,actions_y+75,160,15,waves_pal[0]); //below devices block
290
	PutShadow(17,actions_y+75,160,1,1,3);
289
	PutShadow(17,actions_y+75,160,1,1,3);
291
	PutShadow(18,actions_y+75+1,158,1,1,1);
290
	PutShadow(18,actions_y+75+1,158,1,1,1);
292
	DrawBar(2,56,15,actions_y+103,waves_pal[0]);	          //on the left
291
	DrawBar(2,56,15,actions_y+103,waves_pal[0]);	          //on the left
293
	DrawBar(177,56,15,actions_y+103,waves_pal[0]);            //on the right
292
	DrawBar(177,56,15,actions_y+103,waves_pal[0]);            //on the right