Subversion Repositories Kolibri OS

Rev

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

Rev 8946 Rev 8949
Line 4... Line 4...
4
//                                                   //
4
//                                                   //
5
//===================================================//
5
//===================================================//
6
 
6
 
Line 7... Line 7...
7
char work_area_pointer[1024];
7
char work_area_pointer[1024];
8
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x000000, 0xFFFFCC, #path, #work_area_pointer, 0};
8
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x000000, 0xFFFFCC, NULL, #work_area_pointer, 0};
9
void DrawPathBar()
9
void DrawPathBar()
10
{
10
{
11
	if (efm) {
11
	if (efm) {
12
		DrawPathBarKfm();
12
		DrawPathBarKfm();
13
		return;
13
		return;
Line 17... Line 17...
17
		DrawBreadCrumbs(); 
17
		DrawBreadCrumbs(); 
18
		return;
18
		return;
19
	}
19
	}
20
 
20
 
Line -... Line 21...
-
 
21
	PathShow.text_pointer = location[0];
21
	PathShow.start_x = 250;
22
	PathShow.start_x = 250;
22
	PathShow.start_y = 17;
23
	PathShow.start_y = 17;
23
	PathShow.area_size_x = Form.cwidth-300;
24
	PathShow.area_size_x = Form.cwidth-300;
24
	DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, col.odd_line);
25
	DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, col.odd_line);
25
	DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph);
26
	DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph);
Line 45... Line 46...
45
	} else {
46
	} else {
46
		bgc = 0xFFFFCC; 
47
		bgc = 0xFFFFCC; 
47
		PathShow.font_color = 0x222222;
48
		PathShow.font_color = 0x222222;
48
	}
49
	}
49
	if (active_panel==0) PathShow.text_pointer = #path; else PathShow.text_pointer = #inactive_path;
50
	PathShow.start_y = Form.cheight - status_bar_h+2;
50
	PathShow.start_x = 4;
-
 
51
	PathShow.area_size_x = Form.cwidth/2-8;
-
 
52
	PathShow.start_y = Form.cheight - status_bar_h+2;
-
 
53
 
51
 
Line -... Line 52...
-
 
52
	PathShow.start_x = 4;
-
 
53
	PathShow.area_size_x = Form.cwidth/2-8;
54
	_DRAW_BAR:
54
	do {
55
	DrawBar(PathShow.start_x-2,PathShow.start_y-3,PathShow.area_size_x+5,14,bgc);
55
		DrawBar(PathShow.start_x-2,PathShow.start_y-3,PathShow.area_size_x+5,14,bgc);
56
	DrawRectangle(PathShow.start_x-3,PathShow.start_y-4,PathShow.area_size_x+6,15,sc.work_graph);
56
		DrawRectangle(PathShow.start_x-3,PathShow.start_y-4,PathShow.area_size_x+6,15,sc.work_graph);
-
 
57
		PathShow.text_pointer = location[i];
57
	PathShow_prepare stdcall(#PathShow);
58
		PathShow_prepare stdcall(#PathShow);
58
	PathShow_draw stdcall(#PathShow);
59
		PathShow_draw stdcall(#PathShow);
59
	i++;
60
		
60
	if (i<2) {
-
 
61
		if (active_panel==0) PathShow.text_pointer = #inactive_path; else PathShow.text_pointer = #path;
-
 
62
		PathShow.start_x = Form.cwidth/2 + 2;
61
		PathShow.start_x = Form.cwidth/2 + 2;
63
		PathShow.area_size_x = Form.cwidth - PathShow.start_x - 5;
62
		PathShow.area_size_x = Form.cwidth - PathShow.start_x - 5;		
64
		goto _DRAW_BAR;
63
		i++;
65
	}
64
	} while (i<2);
Line 66... Line 65...
66
 
65
 
67
	DrawBar(0,PathShow.start_y-2,1,15,sc.work);
66
	DrawBar(0,PathShow.start_y-2,1,15,sc.work);
68
	DrawBar(Form.cwidth-1,PathShow.start_y-2,1,15,sc.work);
67
	DrawBar(Form.cwidth-1,PathShow.start_y-2,1,15,sc.work);
69
	DrawBar(1,PathShow.start_y+12,Form.cwidth-2,1,sc.work_light);
68
	DrawBar(1,PathShow.start_y+12,Form.cwidth-2,1,sc.work_light);
Line 70... Line -...
70
}
-
 
71
 
-
 
72
void DrawPathBarKfm_Line()
-
 
73
{
-
 
74
 
-
 
75
}
-
 
76
 
69
}
77
 
70
 
78
//===================================================//
71
//===================================================//
79
//                                                   //
72
//                                                   //
80
//                   BREADCRUMBS                     //
73
//                   BREADCRUMBS                     //
Line 87... Line 80...
87
 block btn;
80
 block btn;
88
 int i;
81
 int i;
89
 unsigned text_line;
82
 unsigned text_line;
90
 {
83
 {
91
	strcat(#PathShow_path, #path);
84
	strcat(#PathShow_path, path);
92
	for (i=0; i<50; i++) DeleteButton(i+BREADCRUMB_ID);
85
	for (i=0; i<50; i++) DeleteButton(i+BREADCRUMB_ID);
93
	breadCrumb.drop();
86
	breadCrumb.drop();
94
	for (i=0; (PathShow_path[i]) && (i
87
	for (i=0; (PathShow_path[i]) && (i
95
	{
88
	{
96
		if (PathShow_path[i]=='/') {
89
		if (PathShow_path[i]=='/') {
97
			PathShow_path[i] = NULL;
90
			PathShow_path[i] = NULL;
Line 116... Line 109...
116
 
109
 
Line 117... Line 110...
117
 
110
 
118
void ClickOnBreadCrumb(unsigned clickid)
111
void ClickOnBreadCrumb(unsigned clickid)
119
{
112
{
120
	int i, slashpos = #path;
113
	int i, slashpos = path;
121
	for (i=0; i!=clickid+2; i++) {
114
	for (i=0; i!=clickid+2; i++) {
122
		slashpos=strchr(slashpos,'/')+1;
115
		slashpos=strchr(slashpos,'/')+1;
123
	}
116
	}
124
	ESBYTE[slashpos-1] = NULL;
117
	ESBYTE[slashpos-1] = NULL;
125
	Open_Dir(#path,WITH_REDRAW);
118
	Open_Dir(path,WITH_REDRAW);
Line 126... Line 119...
126
}
119
}
127
 
120