Rev 3404 | Rev 3432 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3404 | Rev 3412 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | #include "..\lib\mem.h" |
11 | #include "..\lib\mem.h" |
12 | #include "..\lib\dll.h" |
12 | #include "..\lib\dll.h" |
13 | #include "..\lib\lib.obj\box_lib.h" |
13 | #include "..\lib\lib.obj\box_lib.h" |
14 | #include "..\lib\file_system.h" |
14 | #include "..\lib\file_system.h" |
15 | #include "..\lib\figures.h" |
15 | #include "..\lib\figures.h" |
- | 16 | #include "..\lib\encoding.h" |
|
16 | //images |
17 | //images |
17 | #include "imgs\toolbar.txt" |
18 | #include "imgs\toolbar.txt" |
18 | #include "imgs\left_p.txt" |
19 | #include "imgs\left_p.txt" |
Line 19... | Line 20... | ||
19 | 20 | ||
Line 23... | Line 24... | ||
23 | #define ONLY_SHOW 0 |
24 | #define ONLY_SHOW 0 |
24 | #define WITH_REDRAW 1 |
25 | #define WITH_REDRAW 1 |
25 | #define ONLY_OPEN 2 |
26 | #define ONLY_OPEN 2 |
Line 26... | Line 27... | ||
26 | 27 | ||
27 | //ïåðåìåííûå |
28 | //ïåðåìåííûå |
- | 29 | #define TITLE "Eolite File Manager v1.64" |
|
28 | #define title "Eolite File Manager v1.64" |
30 | #define ABOUT_TITLE "Eolite v1.64" |
29 | dword col_work = 0xE4DFE1; |
31 | dword col_work = 0xE4DFE1; |
30 | dword col_border = 0x819FC5; |
32 | dword col_border = 0x819FC5; |
31 | dword col_padding = 0xC8C9C9; |
33 | dword col_padding = 0xC8C9C9; |
32 | dword col_selec = 0x94AECE; |
34 | dword col_selec = 0x94AECE; |
Line 419... | Line 421... | ||
419 | } |
421 | } |
420 | } |
422 | } |
421 | } |
423 | } |
422 | break; |
424 | break; |
423 | case evReDraw: |
425 | case evReDraw: |
424 | DefineAndDrawWindow(40,20,550,500,0x73,col_work,title); |
426 | DefineAndDrawWindow(40,20,550,500,0x73,col_work,TITLE); |
425 | GetProcessInfo(#Form, SelfInfo); |
427 | GetProcessInfo(#Form, SelfInfo); |
426 | if (Form.status_window>2) break; |
428 | if (Form.status_window>2) break; |
427 | min_win_h = disc_num*16+195; |
429 | min_win_h = disc_num*16+195; |
428 | if (Form.height < min_win_h) MoveSize(OLD,OLD,OLD,min_win_h); |
430 | if (Form.height < min_win_h) MoveSize(OLD,OLD,OLD,min_win_h); |
429 | if (Form.width<480) MoveSize(OLD,OLD,480,OLD); |
431 | if (Form.width<480) MoveSize(OLD,OLD,480,OLD); |
Line 555... | Line 557... | ||
555 | 557 | ||
556 | if (!TestBit(ESDWORD[off-40], 4)) //ýòî ÔÀÉË èëè ïàïêà? |
558 | if (!TestBit(ESDWORD[off-40], 4)) //ýòî ÔÀÉË èëè ïàïêà? |
557 | { |
559 | { |
558 | strcpy(#temp, off); |
560 | strcpy(#temp, off); |
559 | Put_icon(#temp+_strrchr(#temp,'.'), BUTTON_HEIGHT/2-7+y, color); |
561 | Put_icon(#temp+_strrchr(#temp,'.'), BUTTON_HEIGHT/2-7+y, color); |
560 | WriteText(7-strlen(ConvertSize(ESDWORD[off-8]))*6+onLeft(75,0),BUTTON_HEIGHT-6/2+y,0x80,0,ConvertSize(ESDWORD[off-8])); //size |
562 | WriteText(7-strlen(ConvertMemSize(ESDWORD[off-8]))*6+onLeft(75,0),BUTTON_HEIGHT-6/2+y,0x80,0,ConvertMemSize(ESDWORD[off-8])); //size |
561 | } |
563 | } |
562 | else |
564 | else |
563 | if (!strcmp("..",off)) |
565 | if (!strcmp("..",off)) |
564 | Put_icon("..", BUTTON_HEIGHT/2-7+y, color); |
566 | Put_icon("..", BUTTON_HEIGHT/2-7+y, color); |