Rev 5483 | Rev 5499 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5483 | Rev 5487 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | #include "..\lib\kolibri.h" |
10 | #include "..\lib\kolibri.h" |
11 | #include "..\lib\clipboard.h" |
11 | #include "..\lib\clipboard.h" |
12 | #include "..\lib\strings.h" |
12 | #include "..\lib\strings.h" |
13 | #include "..\lib\mem.h" |
13 | #include "..\lib\mem.h" |
14 | #include "..\lib\dll.h" |
14 | #include "..\lib\dll.h" |
15 | #include "..\lib\lib.obj\libini.h" |
- | |
16 | #include "..\lib\lib.obj\box_lib.h" |
- | |
17 | #include "..\lib\file_system.h" |
15 | #include "..\lib\file_system.h" |
18 | #include "..\lib\figures.h" |
16 | #include "..\lib\figures.h" |
19 | #include "..\lib\list_box.h" |
17 | #include "..\lib\list_box.h" |
20 | #include "..\lib\copyf.h" |
18 | #include "..\lib\copyf.h" |
21 | #include "..\lib\random.h" |
19 | #include "..\lib\random.h" |
- | 20 | //obj |
|
- | 21 | #include "..\lib\lib.obj\libini.h" |
|
- | 22 | #include "..\lib\lib.obj\box_lib.h" |
|
22 | //images |
23 | //images |
23 | #include "imgs\toolbar.txt" |
24 | #include "imgs\toolbar.txt" |
24 | #include "imgs\left_p.txt" |
25 | #include "imgs\left_p.txt" |
25 | #include "imgs\icons.txt" |
26 | #include "imgs\icons.txt" |
Line 80... | Line 81... | ||
80 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
81 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
81 | #endif |
82 | #endif |
Line 82... | Line 83... | ||
82 | 83 | ||
Line 83... | Line 84... | ||
83 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
84 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
84 | 85 | ||
85 | #define TITLE "Eolite File Manager v2.58" |
86 | #define TITLE "Eolite File Manager v2.6" |
Line 86... | Line 87... | ||
86 | #define ABOUT_TITLE "Eolite v2.58" |
87 | #define ABOUT_TITLE "Eolite v2.6" |
87 | dword col_padding, col_selec, col_lpanel; |
88 | dword col_padding, col_selec, col_lpanel; |
88 | 89 | ||
Line 595... | Line 596... | ||
595 | } |
596 | } |
Line 596... | Line 597... | ||
596 | 597 | ||
597 | 598 | ||
598 | void Line_ReDraw(dword color, filenum){ |
599 | void Line_ReDraw(dword color, filenum){ |
599 | dword text_col=0, |
600 | dword text_col=0, |
600 | ext1, |
601 | ext1, attr, |
601 | file_offet, |
602 | file_offet, |
602 | file_name_off, |
603 | file_name_off, |
603 | y=filenum*files.line_h+files.y; |
604 | y=filenum*files.line_h+files.y; |
Line 608... | Line 609... | ||
608 | DrawBar(files.x+3,y+17,16,1,color); |
609 | DrawBar(files.x+3,y+17,16,1,color); |
609 | if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color); |
610 | if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color); |
610 | if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); |
611 | if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); |
Line 611... | Line 612... | ||
611 | 612 | ||
612 | file_offet = file_mas[filenum+files.first]*304 + buf+32; |
613 | file_offet = file_mas[filenum+files.first]*304 + buf+32; |
613 | file.attr = ESDWORD[file_offet]; |
614 | attr = ESDWORD[file_offet]; |
614 | file.selected = ESBYTE[file_offet+7]; |
615 | file.selected = ESBYTE[file_offet+7]; |
615 | file.sizelo = ESDWORD[file_offet+32]; |
616 | file.sizelo = ESDWORD[file_offet+32]; |
Line 616... | Line 617... | ||
616 | file_name_off = file_offet+40; |
617 | file_name_off = file_offet+40; |
617 | 618 | ||
618 | if (! TestBit(file.attr, 4) ) //file or folder? |
619 | if (! TestBit(attr, 4) ) //file or folder? |
619 | { |
620 | { |
620 | Put_icon(file_name_off+_strrchr(file_name_off,'.'), files.x+3, files.line_h/2-7+y, color, 0); |
621 | Put_icon(file_name_off+_strrchr(file_name_off,'.'), files.x+3, files.line_h/2-7+y, color, 0); |
621 | WriteText(7-strlen(ConvertSize(file.sizelo))*6+Form.cwidth - 76,files.line_h-6/2+y,0x80,0,ConvertSize(file.sizelo)); |
622 | WriteText(7-strlen(ConvertSize(file.sizelo))*6+Form.cwidth - 76,files.line_h-6/2+y,0x80,0,ConvertSize(file.sizelo)); |
622 | } |
623 | } |
623 | else |
624 | else |
624 | { |
625 | { |
625 | if (strcmp("..",file_name_off)==0) ext1=".."; else ext1=" |
626 | if (strcmp("..",file_name_off)==0) ext1=".."; else ext1=" |
Line 626... | Line 627... | ||
626 | Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0); |
627 | Put_icon(ext1, files.x+3, files.line_h/2-7+y, color, 0); |
627 | } |
628 | } |
628 | 629 | ||
629 | if (TestBit(file.attr, 1)) || (TestBit(file.attr, 2)) text_col=0xA6A6B7; //system or hiden? |
630 | if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=0xA6A6B7; //system or hiden? |
630 | if (color!=0xFFFfff) |
631 | if (color!=0xFFFfff) |
631 | { |
632 | { |
632 | itdir = TestBit(file.attr, 4); |
633 | itdir = TestBit(attr, 4); |
633 | strcpy(#file_name, file_name_off); |
634 | strcpy(#file_name, file_name_off); |
634 | strcpy(#file_path, #path); |
635 | strcpy(#file_path, #path); |