Subversion Repositories Kolibri OS

Rev

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

Rev 7804 Rev 7806
Line 19... Line 19...
19
		if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll width
19
		if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll width
20
		if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y= sc_y + sc_h - sc_slider_h - 1; //äëÿ áîëüøîãî ñïèñêà 
20
		if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y= sc_y + sc_h - sc_slider_h - 1; //äëÿ áîëüøîãî ñïèñêà 
21
	}
21
	}
22
	//slider
22
	//slider
23
	DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col.graph);
23
	DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,sc.work_graph);
24
	DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, system.color.work_light , system.color.work_dark);
24
	DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, sc.work_light , sc.work_dark);
25
	if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]);
25
	if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]);
26
	if (scroll_used)  for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]);
26
	if (scroll_used)  for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]);
27
 
27
 
Line 28... Line 28...
28
	sc_center = sc_slider_h / 2 + sc_slider_y;
28
	sc_center = sc_slider_h / 2 + sc_slider_y;
Line 29... Line 29...
29
 
29
 
30
	DrawBar(sc_x+4,   sc_center-3, 8,  1, col.graph);
30
	DrawBar(sc_x+4,   sc_center-3, 8,  1, sc.work_graph);
Line 31... Line 31...
31
	DrawBar(sc_x+4+1, sc_center-2, 8,  1, system.color.work_light);
31
	DrawBar(sc_x+4+1, sc_center-2, 8,  1, sc.work_light);
32
 
32
 
Line 33... Line 33...
33
	DrawBar(sc_x+3,   sc_center,   10, 1, col.graph);
33
	DrawBar(sc_x+3,   sc_center,   10, 1, sc.work_graph);
34
	DrawBar(sc_x+3+1, sc_center+1, 10, 1, system.color.work_light);
34
	DrawBar(sc_x+3+1, sc_center+1, 10, 1, sc.work_light);
Line 35... Line 35...
35
 
35
 
36
	DrawBar(sc_x+4,   sc_center+3, 8,  1, col.graph);
36
	DrawBar(sc_x+4,   sc_center+3, 8,  1, sc.work_graph);
37
	DrawBar(sc_x+4+1, sc_center+4, 8,  1, system.color.work_light);
37
	DrawBar(sc_x+4+1, sc_center+4, 8,  1, sc.work_light);
38
 
38
 
Line 53... Line 53...
53
}
53
}
54
 
54
 
Line 55... Line 55...
55
void DrawFlatButtonSmall(dword x,y,width,height,id,text)
55
void DrawFlatButtonSmall(dword x,y,width,height,id,text)
56
{
56
{
57
	DrawRectangle(x,y,width,height,col.graph);
57
	DrawRectangle(x,y,width,height,sc.work_graph);
58
	DrawRectangle3D(x+1,y+1,width-2,height-2, system.color.work_light, system.color.work_dark);
58
	DrawRectangle3D(x+1,y+1,width-2,height-2, sc.work_light, sc.work_dark);
59
	PutPixel(x+width-1, y+1, system.color.work_dark);
59
	PutPixel(x+width-1, y+1, sc.work_dark);
60
	DrawFilledBar(x+2, y+2, width-3, height-3);
60
	DrawFilledBar(x+2, y+2, width-3, height-3);
61
	if (id) DefineHiddenButton(x+1,y+1,width-2,height-2,id);
61
	if (id) DefineHiddenButton(x+1,y+1,width-2,height-2,id);
62
	WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,system.color.work_text,text);
62
	WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,sc.work_text,text);
63
}
63
}
Line 64... Line 64...
64
 
64
 
65
void DrawFilledBar(dword x, y, w, h)
65
void DrawFilledBar(dword x, y, w, h)
Line 66... Line 66...
66
{ int i; for (i=0; i
66
{ int i; for (i=0; i
67
 
67
 
68
int popin_w=260;
68
int popin_w=260;
69
void DrawEolitePopup(dword b1_text, b2_text)
69
void DrawEolitePopup(dword b1_text, b2_text)
70
{
70
{
71
	int but_x;
71
	int but_x;
72
	int popin_x = files.w - popin_w / 2 + files.x ;
72
	int popin_x = files.w - popin_w / 2 + files.x ;
73
	DrawPopup(popin_x, 160, popin_w, 95, 1, system.color.work, col.graph);
73
	DrawPopup(popin_x, 160, popin_w, 95, 1, sc.work, sc.work_graph);
74
	but_x = DrawStandartCaptButton(popin_x+23, 215, POPUP_BTN1, b1_text);
74
	but_x = DrawStandartCaptButton(popin_x+23, 215, POPUP_BTN1, b1_text);
Line 75... Line 75...
75
	DrawStandartCaptButton(popin_x+23 + but_x, 215, POPUP_BTN2, b2_text);
75
	DrawStandartCaptButton(popin_x+23 + but_x, 215, POPUP_BTN2, b2_text);
76
}
76
}
77
 
77
 
78
void DrawDot(dword x,y) {
78
void DrawDot(dword x,y) {
79
	dword col_pxl = MixColors(col.graph, col.work, 60);
79
	dword col_pxl = MixColors(sc.work_graph, sc.work, 60);
80
	DrawBar(x+1,y,2,4,col.graph);
80
	DrawBar(x+1,y,2,4,sc.work_graph);
81
	DrawBar(x,y+1,4,2,col.graph);
81
	DrawBar(x,y+1,4,2,sc.work_graph);
82
	PutPixel(x,y,col_pxl);
82
	PutPixel(x,y,col_pxl);
83
	PutPixel(x+3,y,col_pxl);
83
	PutPixel(x+3,y,col_pxl);