Rev 7804 | Rev 7813 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7804 | Rev 7806 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | break; |
236 | break; |
237 | } |
237 | } |
Line 238... | Line 238... | ||
238 | 238 | ||
239 | if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y-17) && (mouse.y |
239 | if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y-17) && (mouse.y |
240 | { |
240 | { |
241 | if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,system.color.work_dark,system.color.work_light); |
241 | if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.work_dark,sc.work_light); |
242 | WHILE (mouse.lkm) && (files.first>0) |
242 | WHILE (mouse.lkm) && (files.first>0) |
243 | { |
243 | { |
244 | pause(8); |
244 | pause(8); |
245 | files.first--; |
245 | files.first--; |
246 | List_ReDraw(); |
246 | List_ReDraw(); |
247 | mouse.get(); |
247 | mouse.get(); |
248 | } |
248 | } |
249 | DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,system.color.work_light,system.color.work_dark); |
249 | DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.work_light,sc.work_dark); |
Line 250... | Line 250... | ||
250 | } |
250 | } |
251 | 251 | ||
252 | if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y+files.h-16) && (mouse.y |
252 | if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y+files.h-16) && (mouse.y |
253 | { |
253 | { |
254 | if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,system.color.work_dark,system.color.work_light); |
254 | if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,sc.work_dark,sc.work_light); |
255 | while (mouse.lkm) && (files.first |
255 | while (mouse.lkm) && (files.first |
256 | { |
256 | { |
257 | pause(8); |
257 | pause(8); |
258 | files.first++; |
258 | files.first++; |
259 | List_ReDraw(); |
259 | List_ReDraw(); |
260 | mouse.get(); |
260 | mouse.get(); |
261 | } |
261 | } |
Line 262... | Line 262... | ||
262 | DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,system.color.work_light,system.color.work_dark); |
262 | DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,sc.work_light,sc.work_dark); |
263 | } |
263 | } |
264 | 264 | ||
Line 512... | Line 512... | ||
512 | if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; } |
512 | if (Form.height < 350) { MoveSize(OLD,OLD,OLD,350); return; } |
513 | if (!two_panels.checked) && (Form.width < 480) { MoveSize(OLD,OLD,480,OLD); return; } |
513 | if (!two_panels.checked) && (Form.width < 480) { MoveSize(OLD,OLD,480,OLD); return; } |
514 | if ( two_panels.checked) && (Form.width < 573) { MoveSize(OLD,OLD,573,OLD); return; } |
514 | if ( two_panels.checked) && (Form.width < 573) { MoveSize(OLD,OLD,573,OLD); return; } |
515 | GetProcessInfo(#Form, SelfInfo); |
515 | GetProcessInfo(#Form, SelfInfo); |
516 | SetAppColors(); |
516 | SetAppColors(); |
517 | ESDWORD[#toolbar_pal] = col.work; |
517 | ESDWORD[#toolbar_pal] = sc.work; |
518 | ESDWORD[#toolbar_pal+4] = MixColors(0, col.work, 35); |
518 | ESDWORD[#toolbar_pal+4] = MixColors(0, sc.work, 35); |
519 | PutPaletteImage(#toolbar, 246, 34, 0, 0, 8, #toolbar_pal); |
519 | PutPaletteImage(#toolbar, 246, 34, 0, 0, 8, #toolbar_pal); |
520 | DrawBar(127, 8, 1, 25, col.graph); |
520 | DrawBar(127, 8, 1, 25, sc.work_graph); |
521 | for (i=0; i<3; i++) DefineHiddenButton(toolbar_buttons_x[i]+2,7,31-5,29-5,21+i); |
521 | for (i=0; i<3; i++) DefineHiddenButton(toolbar_buttons_x[i]+2,7,31-5,29-5,21+i); |
522 | for (i=3; i<6; i++) DefineHiddenButton(toolbar_buttons_x[i], 5,31, 29, 21+i); |
522 | for (i=3; i<6; i++) DefineHiddenButton(toolbar_buttons_x[i], 5,31, 29, 21+i); |
523 | DrawBar(246,0, Form.cwidth - 246, 34, col.work); |
523 | DrawBar(246,0, Form.cwidth - 246, 34, sc.work); |
524 | DrawDot(Form.cwidth-17,12); |
524 | DrawDot(Form.cwidth-17,12); |
525 | DrawDot(Form.cwidth-17,12+6); |
525 | DrawDot(Form.cwidth-17,12+6); |
526 | DrawDot(Form.cwidth-17,12+12); |
526 | DrawDot(Form.cwidth-17,12+12); |
527 | DefineHiddenButton(Form.cwidth-24,7,20,25,51+BT_NOFRAME); //dots |
527 | DefineHiddenButton(Form.cwidth-24,7,20,25,51+BT_NOFRAME); //dots |
528 | //main rectangles |
528 | //main rectangles |
529 | 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,sc.work_graph); |
530 | 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 |
531 | for (i=0; i<6; i++) DrawBar(0, 34+i, Form.cwidth, 1, MixColors(system.color.work_dark, system.color.work, i*10)); |
531 | for (i=0; i<6; i++) DrawBar(0, 34+i, Form.cwidth, 1, MixColors(sc.work_dark, sc.work, i*10)); |
532 | llist_copy(#files_active, #files); |
532 | llist_copy(#files_active, #files); |
533 | strcpy(#active_path, #path); |
533 | strcpy(#active_path, #path); |
534 | DrawStatusBar(); |
534 | DrawStatusBar(); |
535 | 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] |
536 | DrawFilePanels(); |
536 | DrawFilePanels(); |
Line 547... | Line 547... | ||
547 | DrawFlatButtonSmall(files.x + files.w, files.y-17,16,16, 0,"\x18"); |
547 | DrawFlatButtonSmall(files.x + files.w, files.y-17,16,16, 0,"\x18"); |
548 | DrawFlatButtonSmall(files.x + files.w,files.y+files.h-16,16,16,0,"\x19"); |
548 | DrawFlatButtonSmall(files.x + files.w,files.y+files.h-16,16,16,0,"\x19"); |
549 | if (sort_type==1) sorting_arrow_x = files.w - 141 / 2 + files.x + 18; |
549 | if (sort_type==1) sorting_arrow_x = files.w - 141 / 2 + files.x + 18; |
550 | if (sort_type==2) sorting_arrow_x = files.x + files.w - 90; |
550 | if (sort_type==2) sorting_arrow_x = files.x + files.w - 90; |
551 | if (sort_type==3) sorting_arrow_x = strlen(T_SIZE)*3-30+files.x+files.w; |
551 | if (sort_type==3) sorting_arrow_x = strlen(T_SIZE)*3-30+files.x+files.w; |
552 | WriteText(sorting_arrow_x,files.y-12,0x80, system.color.work_text, sorting_arrow_t); |
552 | WriteText(sorting_arrow_x,files.y-12,0x80, sc.work_text, sorting_arrow_t); |
553 | DrawBar(files.x+files.w,files.y,1,files.h,col.graph); |
553 | DrawBar(files.x+files.w,files.y,1,files.h,sc.work_graph); |
554 | if (two_panels.checked) && (files.x<5) DrawBar(files.x+files.w+16,files.y,1,files.h,col.graph); |
554 | if (two_panels.checked) && (files.x<5) DrawBar(files.x+files.w+16,files.y,1,files.h,sc.work_graph); |
555 | } |
555 | } |
Line 556... | Line 556... | ||
556 | 556 | ||
557 | void DrawStatusBar() |
557 | void DrawStatusBar() |
558 | { |
558 | { |
559 | char status_bar_str[80]; |
559 | char status_bar_str[80]; |
560 | int go_up_folder_exists=0; |
560 | int go_up_folder_exists=0; |
561 | if (!show_status_bar.checked) return; |
561 | if (!show_status_bar.checked) return; |
562 | 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; |
563 | 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, sc.work); |
564 | sprintf(#status_bar_str, T_STATUS_EVEMENTS, count_dir-go_up_folder_exists, files.count-count_dir); |
564 | sprintf(#status_bar_str, T_STATUS_EVEMENTS, count_dir-go_up_folder_exists, files.count-count_dir); |
565 | WriteText(6,Form.cheight - 13,0x80,system.color.work_text,#status_bar_str); |
565 | WriteText(6,Form.cheight - 13,0x80,sc.work_text,#status_bar_str); |
566 | if (selected_count) { |
566 | if (selected_count) { |
567 | sprintf(#status_bar_str, T_STATUS_SELECTED, 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, |
568 | WriteText(Form.cwidth - calc(strlen(#status_bar_str)*6)-6,Form.cheight - 13, |
569 | 0x80,system.color.work_text,#status_bar_str); |
569 | 0x80,sc.work_text,#status_bar_str); |
570 | } |
570 | } |
Line 571... | Line 571... | ||
571 | } |
571 | } |
572 | 572 | ||
Line 855... | Line 855... | ||
855 | if (selected_count==0) && (!strncmp(#file_name,"..",2)) return; |
855 | if (selected_count==0) && (!strncmp(#file_name,"..",2)) return; |
856 | else |
856 | else |
857 | { |
857 | { |
858 | if (!files.count) return; |
858 | if (!files.count) return; |
859 | DrawEolitePopup(T_YES, T_NO); |
859 | DrawEolitePopup(T_YES, T_NO); |
860 | WriteText(-strlen(T_DELETE_FILE)*3+110+dform_x,175,0x80,system.color.work_text,T_DELETE_FILE); |
860 | WriteText(-strlen(T_DELETE_FILE)*3+110+dform_x,175,0x80,sc.work_text,T_DELETE_FILE); |
861 | if (selected_count) |
861 | if (selected_count) |
862 | { |
862 | { |
863 | sprintf(#f_count,"%s%d%s",DEL_MORE_FILES_1,selected_count,DEL_MORE_FILES_2); |
863 | sprintf(#f_count,"%s%d%s",DEL_MORE_FILES_1,selected_count,DEL_MORE_FILES_2); |
864 | WriteText(-strlen(#f_count)*3+110+dform_x,190,0x80,system.color.work_text,#f_count); |
864 | WriteText(-strlen(#f_count)*3+110+dform_x,190,0x80,sc.work_text,#f_count); |
865 | } |
865 | } |
866 | else |
866 | else |
867 | { |
867 | { |
868 | if (strlen(#file_name)<28) |
868 | if (strlen(#file_name)<28) |
869 | { |
869 | { |
870 | WriteText(strlen(#file_name)*3+110+dform_x+2,190,0x80,system.color.work_text,"?"); |
870 | WriteText(strlen(#file_name)*3+110+dform_x+2,190,0x80,sc.work_text,"?"); |
871 | WriteText(-strlen(#file_name)*3+110+dform_x,190,0x80,system.color.work_text,#file_name); |
871 | WriteText(-strlen(#file_name)*3+110+dform_x,190,0x80,sc.work_text,#file_name); |
872 | } |
872 | } |
873 | else |
873 | else |
874 | { |
874 | { |
875 | WriteText(164+dform_x,190,0x80,0,"...?"); |
875 | WriteText(164+dform_x,190,0x80,0,"...?"); |
876 | ESI = 24; |
876 | ESI = 24; |