Subversion Repositories Kolibri OS

Rev

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

Rev 7782 Rev 7784
Line 24... Line 24...
24
//                       DATA                        //
24
//                       DATA                        //
25
//                                                   //
25
//                                                   //
26
//===================================================//
26
//===================================================//
Line 27... Line 27...
27
 
27
 
28
#define TOOLBAR_H 34
28
#define TOOLBAR_H 34
29
#define TOOLBAR_ICON_WIDTH  26
29
#define TOOLBAR_ICON_WIDTH  24
Line 30... Line 30...
30
#define TOOLBAR_ICON_HEIGHT 24
30
#define TOOLBAR_ICON_HEIGHT 22
Line 31... Line 31...
31
 
31
 
32
#define DEFAULT_EDITOR "/sys/tinypad"
32
#define DEFAULT_EDITOR "/sys/tinypad"
Line 413... Line 413...
413
	#define BLOCKS_GAP 15
413
	#define BLOCKS_GAP 15
414
	#define TOOLBAR_BUTTON_WIDTH 26
414
	#define TOOLBAR_BUTTON_WIDTH 26
415
	incn x;
415
	incn x;
416
	DefineAndDrawWindow(Form.left,Form.top,Form.width,Form.height,0x73,0,#title,0);
416
	DefineAndDrawWindow(Form.left,Form.top,Form.width,Form.height,0x73,0,#title,0);
417
	GetProcessInfo(#Form, SelfInfo);
417
	GetProcessInfo(#Form, SelfInfo);
-
 
418
	system.color.get();
418
	if (Form.status_window>2) return;
419
	if (Form.status_window>2) return;
Line 419... Line 420...
419
 
420
 
420
	if (Form.width  < 200) { MoveSize(OLD,OLD,200,OLD); return; }
421
	if (Form.width  < 200) { MoveSize(OLD,OLD,200,OLD); return; }
Line 421... Line 422...
421
	if (Form.height < 200) { MoveSize(OLD,OLD,OLD,200); return; }
422
	if (Form.height < 200) { MoveSize(OLD,OLD,OLD,200); return; }
422
	
423
	
Line 423... Line 424...
423
	DrawBar(0, 0, Form.cwidth, TOOLBAR_H - 1, 0xe1e1e1);
424
	DrawBar(0, 0, Form.cwidth, TOOLBAR_H - 1, system.color.work);
424
	DrawBar(0, TOOLBAR_H - 1, Form.cwidth, 1, 0x7F7F7F);
425
	DrawBar(0, TOOLBAR_H - 1, Form.cwidth, 1, system.color.work_graph);
425
	
426
	
Line 454... Line 455...
454
	DrawScroller();
455
	DrawScroller();
455
}
456
}
Line 456... Line 457...
456
 
457
 
457
void DrawToolbarButton(char image_id, int x)
458
void DrawToolbarButton(char image_id, int x)
458
{
459
{
459
	DefineButton(x+1, 6, TOOLBAR_ICON_WIDTH-2, TOOLBAR_ICON_HEIGHT-2, 10+image_id + BT_HIDE, 0);
460
	DefineButton(x+1, 6, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, 10+image_id + BT_HIDE, 0);
-
 
461
	//img_draw stdcall(skin.image, x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, TOOLBAR_ICON_WIDTH-1*image_id, 0);
-
 
462
	DrawOvalBorder(x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, system.color.work_graph, 
-
 
463
		system.color.work_graph,system.color.work_graph, system.color.work_dark);
460
	img_draw stdcall(skin.image, x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, TOOLBAR_ICON_WIDTH-1*image_id, 0);
464
	img_draw stdcall(skin.image, x+1, 5+1, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, TOOLBAR_ICON_WIDTH*image_id, 0);
Line 461... Line 465...
461
}
465
}
462
 
466
 
463
void DrawScroller()
467
void DrawScroller()