Rev 7786 | Rev 7806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7786 | Rev 7804 | ||
---|---|---|---|
Line 430... | Line 430... | ||
430 | break; |
430 | break; |
431 | case SCAN_CODE_KEY_A: |
431 | case SCAN_CODE_KEY_A: |
432 | EventSelectAllFiles(true); |
432 | EventSelectAllFiles(true); |
433 | break; |
433 | break; |
434 | case SCAN_CODE_KEY_U: //unselect all files |
434 | case SCAN_CODE_KEY_U: //unselect all files |
435 | selected_count = 0; |
- | |
436 | EventSelectAllFiles(false); |
435 | EventSelectAllFiles(false); |
437 | break; |
436 | break; |
438 | } |
437 | } |
439 | break; |
438 | break; |
440 | } |
439 | } |
Line 527... | Line 526... | ||
527 | DrawDot(Form.cwidth-17,12+12); |
526 | DrawDot(Form.cwidth-17,12+12); |
528 | DefineHiddenButton(Form.cwidth-24,7,20,25,51+BT_NOFRAME); //dots |
527 | DefineHiddenButton(Form.cwidth-24,7,20,25,51+BT_NOFRAME); //dots |
529 | //main rectangles |
528 | //main rectangles |
530 | DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42-status_bar_h,col.graph); |
529 | DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42-status_bar_h,col.graph); |
531 | DrawRectangle(0,39,Form.cwidth-1,-show_status_bar.checked*status_bar_h + Form.cheight - 40,col.work_gradient[4]); //bg |
530 | DrawRectangle(0,39,Form.cwidth-1,-show_status_bar.checked*status_bar_h + Form.cheight - 40,col.work_gradient[4]); //bg |
532 | for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col.work_gradient[-i*3+15]); |
531 | for (i=0; i<6; i++) DrawBar(0, 34+i, Form.cwidth, 1, MixColors(system.color.work_dark, system.color.work, i*10)); |
533 | llist_copy(#files_active, #files); |
532 | llist_copy(#files_active, #files); |
534 | strcpy(#active_path, #path); |
533 | strcpy(#active_path, #path); |
535 | DrawStatusBar(); |
534 | DrawStatusBar(); |
536 | if (selected_count==0) Open_Dir(#path,ONLY_OPEN); //if there are no selected files -> refresh folder [L001] |
535 | if (selected_count==0) Open_Dir(#path,ONLY_OPEN); //if there are no selected files -> refresh folder [L001] |
537 | DrawFilePanels(); |
536 | DrawFilePanels(); |
Line 560... | Line 559... | ||
560 | char status_bar_str[80]; |
559 | char status_bar_str[80]; |
561 | int go_up_folder_exists=0; |
560 | int go_up_folder_exists=0; |
562 | if (!show_status_bar.checked) return; |
561 | if (!show_status_bar.checked) return; |
563 | if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1; |
562 | if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1; |
564 | DrawBar(0, Form.cheight - status_bar_h, Form.cwidth, status_bar_h, system.color.work); |
563 | DrawBar(0, Form.cheight - status_bar_h, Form.cwidth, status_bar_h, system.color.work); |
565 | sprintf(#status_bar_str, STATUS_STR, files.count-go_up_folder_exists, count_dir-go_up_folder_exists, files.count-count_dir, selected_count); |
564 | sprintf(#status_bar_str, T_STATUS_EVEMENTS, count_dir-go_up_folder_exists, files.count-count_dir); |
566 | WriteText(6,Form.cheight - 13,0x80,system.color.work_text,#status_bar_str); |
565 | WriteText(6,Form.cheight - 13,0x80,system.color.work_text,#status_bar_str); |
- | 566 | if (selected_count) { |
|
- | 567 | sprintf(#status_bar_str, T_STATUS_SELECTED, selected_count); |
|
- | 568 | WriteText(Form.cwidth - calc(strlen(#status_bar_str)*6)-6,Form.cheight - 13, |
|
- | 569 | 0x80,system.color.work_text,#status_bar_str); |
|
- | 570 | } |
|
567 | } |
571 | } |
Line 568... | Line 572... | ||
568 | 572 | ||
569 | void DrawFilePanels() |
573 | void DrawFilePanels() |
570 | { |
574 | { |