Rev 6290 | Rev 6294 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6290 | Rev 6291 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | #include "..\lib\obj\libini.h" |
19 | #include "..\lib\obj\libini.h" |
20 | #include "..\lib\obj\box_lib.h" |
20 | #include "..\lib\obj\box_lib.h" |
21 | #include "..\lib\patterns\history.h" |
21 | #include "..\lib\patterns\history.h" |
Line 22... | Line 22... | ||
22 | 22 | ||
23 | //images |
- | |
24 | #include "imgs\toolbar.txt" |
23 | //images |
25 | #include "imgs\left_p.txt" |
24 | #include "imgs\left_p.txt" |
Line 26... | Line 25... | ||
26 | #include "imgs\icons.txt" |
25 | #include "imgs\icons.txt" |
27 | 26 | ||
Line 92... | Line 91... | ||
92 | int action_buf; |
91 | int action_buf; |
93 | int rand_n; |
92 | int rand_n; |
94 | byte CMD_REFRESH; |
93 | byte CMD_REFRESH; |
Line 95... | Line 94... | ||
95 | 94 | ||
96 | //struct t_settings { |
95 | //struct t_settings { |
97 | int sort_num=2, |
96 | char sort_num=2; |
98 | show_dev_name=true, |
97 | bool show_dev_name=true, |
99 | real_files_names_case=false, |
98 | real_files_names_case=false, |
100 | info_after_copy=false, |
99 | info_after_copy=false, |
101 | two_panels=false, |
100 | two_panels=false, |
102 | show_breadcrumb=false, |
101 | show_breadcrumb=false, |
Line 530... | Line 529... | ||
530 | cmd_free = false; |
529 | cmd_free = false; |
531 | } |
530 | } |
532 | } |
531 | } |
533 | } |
532 | } |
Line -... | Line 533... | ||
- | 533 | ||
- | 534 | void DrawFavButton(int x) |
|
- | 535 | { |
|
- | 536 | _PutImage(x,10,20,22,#fav); |
|
- | 537 | DefineButton(x,11,20-2,22-2,61+BT_HIDE+BT_NOFRAME,0); |
|
- | 538 | } |
|
534 | 539 | ||
535 | void draw_window() |
540 | void draw_window() |
536 | { |
541 | { |
537 | DefineAndDrawWindow(WinX+rand_n,WinY+rand_n,WinW,WinH,0x73,NULL,TITLE,0); |
542 | DefineAndDrawWindow(WinX+rand_n,WinY+rand_n,WinW,WinH,0x73,NULL,TITLE,0); |
538 | GetProcessInfo(#Form, SelfInfo); |
543 | GetProcessInfo(#Form, SelfInfo); |
539 | if (Form.status_window>2) return; |
544 | if (Form.status_window>2) return; |
540 | if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; } |
545 | if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; } |
541 | if (Form.width < 480) { MoveSize(OLD,OLD,480,OLD); return; } |
546 | if (Form.width < 480) { MoveSize(OLD,OLD,480,OLD); return; } |
542 | GetProcessInfo(#Form, SelfInfo); //if win_size changed |
547 | GetProcessInfo(#Form, SelfInfo); //if win_size changed |
543 | PutPaletteImage(#toolbar,246,34,0,0,8,#toolbar_pal); |
548 | _PutImage(0,0,246,34,#toolbar); |
544 | DrawBar(127, 8, 1, 25, col_graph); |
549 | DrawBar(127, 8, 1, 25, col_graph); |
545 | for (j=0; j<3; j++) DefineButton(toolbar_buttons_x[j]+2,5+2,31-5,29-5,21+j+BT_HIDE,NULL); |
550 | for (j=0; j<3; j++) DefineButton(toolbar_buttons_x[j]+2,5+2,31-5,29-5,21+j+BT_HIDE,NULL); |
546 | for (j=3; j<6; j++) DefineButton(toolbar_buttons_x[j],5,31,29,21+j+BT_HIDE,NULL); |
551 | for (j=3; j<6; j++) DefineButton(toolbar_buttons_x[j],5,31,29,21+j+BT_HIDE,NULL); |
547 | DrawBar(246,0, Form.cwidth - 246, 34, col_work); |
- | |
548 | if (!show_breadcrumb) { |
552 | DrawBar(246,0, Form.cwidth - 246, 34, col_work); |
549 | DrawRectangle(246,12,Form.cwidth - 303,16,col_graph); |
553 | _PutImage(Form.cwidth-17,11,6,18,#dots); |
550 | DefineButton(Form.cwidth - 32,6,27,28,51+BT_HIDE+BT_NOFRAME,0); //about |
- | |
551 | PutPaletteImage(#goto_about,56,34,Form.width-65,0,8,#goto_about_pal); |
- | |
552 | } |
554 | DefineButton(Form.cwidth-24,7,20,25,51+BT_HIDE+BT_NOFRAME,0); //dots |
553 | //main rectangles |
555 | //main rectangles |
554 | DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42,col_graph); |
556 | DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42,col_graph); |
555 | DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg |
557 | DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg |
556 | for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]); |
558 | for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]); |