Rev 8854 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6289 | leency | 1 | |
2 | void DrawPathBar() |
||
3 | { |
||
4 | if (efm) { |
||
8854 | leency | 5 | return; |
6 | } |
||
7 | if (show_breadcrumb.checked) { |
||
8 | DrawBreadCrumbs(); |
||
9 | return; |
||
10 | } |
||
11 | |||
12 | |||
8779 | leency | 13 | |
8764 | leency | 14 | |
6291 | leency | 15 | DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, col.odd_line); |
7634 | leency | 16 | DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph); |
7806 | leency | 17 | DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,PATH_BTN); |
7422 | leency | 18 | DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.work_light); |
7806 | leency | 19 | |
7462 | leency | 20 | |
21 | |||
22 | |||
7634 | leency | 23 | PathShow.font_color = col.list_gb_text; |
24 | PathShow_prepare stdcall(#PathShow); |
||
6289 | leency | 25 | PathShow_draw stdcall(#PathShow); |
26 | } |
||
27 | |||
28 | |||
29 | collection_int breadCrumb=0; |
||
7972 | leency | 30 | char PathShow_path[4096]; |
6289 | leency | 31 | block btn; |
7227 | leency | 32 | int i; |
6289 | leency | 33 | unsigned text_line; |
8868 | leency | 34 | { |
6289 | leency | 35 | strcat(#PathShow_path, #path); |
36 | for (i=0; i<50; i++) DeleteButton(i+BREADCRUMB_ID); |
||
37 | breadCrumb.drop(); |
||
38 | for (i=0; PathShow_path[i]; i++) |
||
39 | { |
||
40 | if (PathShow_path[i]=='/') { |
||
41 | PathShow_path[i] = NULL; |
||
42 | breadCrumb.add(i+1); |
||
43 | } |
||
44 | } |
||
45 | breadCrumb.add(i+1); |
||
6782 | leency | 46 | btn.set_size(246,10,NULL,20); |
6739 | leency | 47 | //area_w = Form.cwidth - btn.x - 20; |
8868 | leency | 48 | for (i=0; i |
6289 | leency | 49 | { |
50 | text_line = breadCrumb.get(i) + #PathShow_path; |
||
51 | btn.w = strlen(text_line)*8+10; |
||
52 | DrawBreadcrumbButton(btn.x, btn.y, btn.w, btn.h, i+BREADCRUMB_ID, text_line); |
||
53 | btn.x += btn.w; |
||
54 | } |
||
55 | //DrawFavButton(btn.x); |
||
6291 | leency | 56 | //btn.x+=20; |
57 | btn.x++; |
||
58 | DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,sc.work); |
||
7806 | leency | 59 | } |
6289 | leency | 60 | |
61 | |||
62 | |||
63 | { |
||
64 | int i, slashpos = #path; |
||
65 | for (i=0; i!=clickid+2; i++) { |
||
66 | slashpos=strchr(slashpos,'/')+1; |
||
67 | } |
||
68 | ESBYTE[slashpos-1] = NULL; |
||
6782 | leency | 69 | Open_Dir(#path,WITH_REDRAW); |
6289 | leency | 70 | } |
71 | |||
72 | |||
73 | |||
74 | { |
||
75 | int i; |
||
76 | DrawRectangle(x,y,w,h,sc.work_graph); |
||
7806 | leency | 77 | for (i=0; (i |
7634 | leency | 78 | DrawRectangle3D(x+1,y+1,w-2,h-2,sc.work_light, sc.work_dark); |
7806 | leency | 79 | DefineHiddenButton(x+1,y+1,w-2,h-2,id); |
7422 | leency | 80 | WriteText(-strlen(text)*8+w/2+x,h/2+y-7,0x90,sc.work_text,text); |
7806 | leency | 81 | DrawBar(x, y+h+1, w+1, 1, sc.work_light); |
82 | }20);>50;> |
||
6289 | leency | 83 |