Rev 4069 | Rev 4072 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4069 | Rev 4070 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
77 | ?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file" |
78 | #endif |
78 | #endif |
Line 79... | Line 79... | ||
79 | 79 | ||
Line 80... | Line 80... | ||
80 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
80 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
81 | 81 | ||
82 | #define TITLE "Eolite File Manager v2.0" |
82 | #define TITLE "Eolite File Manager v2.0.1" |
83 | #define ABOUT_TITLE "Eolite v2.0" |
83 | #define ABOUT_TITLE "Eolite v2.0.1" |
84 | dword col_work = 0xE4DFE1; |
84 | dword col_work = 0xE4DFE1; |
85 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
85 | dword col_border = 0x9098B0; //A0A0B8; //0x819FC5; |
86 | dword col_padding = 0xC8C9C9; |
86 | dword col_padding = 0xC8C9C9; |
Line 90... | Line 90... | ||
90 | int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
90 | int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
91 | char tmp_disk_del_param[3]="d0"; |
91 | char tmp_disk_del_param[3]="d0"; |
92 | struct path_string { char Item[4096]; }; |
92 | struct path_string { char Item[4096]; }; |
Line 93... | Line 93... | ||
93 | 93 | ||
- | 94 | int active_about=0; |
|
Line 94... | Line 95... | ||
94 | int active_about=0; |
95 | word about_window; |
Line 95... | Line 96... | ||
95 | 96 | ||
96 | llist files; |
97 | llist files; |
Line 254... | Line 255... | ||
254 | } |
255 | } |
255 | break; |
256 | break; |
256 | //Button pressed----------------------------------------------------------------------------- |
257 | //Button pressed----------------------------------------------------------------------------- |
257 | case evButton: |
258 | case evButton: |
258 | id=GetButtonID(); |
259 | id=GetButtonID(); |
- | 260 | if (id==1) |
|
- | 261 | { |
|
- | 262 | KillProcess(about_window); |
|
259 | if (id==1) ExitProcess(); |
263 | ExitProcess(); |
- | 264 | } |
|
260 | if (rename_active) break; |
265 | if (rename_active) break; |
261 | if (del_active) |
266 | if (del_active) |
262 | { |
267 | { |
263 | IF (id==301) || (id==302) Del_File(302-id); |
268 | IF (id==301) || (id==302) Del_File(302-id); |
264 | break; |
269 | break; |
Line 366... | Line 371... | ||
366 | break; |
371 | break; |
367 | case 013: //Enter |
372 | case 013: //Enter |
368 | IF (rename_active==1) {ReName(true); break;} |
373 | IF (rename_active==1) {ReName(true); break;} |
369 | Open(); |
374 | Open(); |
370 | break; |
375 | break; |
- | 376 | case 173: //Ctrl+Enter |
|
- | 377 | if (!itdir) |
|
- | 378 | { |
|
- | 379 | SwitchToAnotherThread(); |
|
- | 380 | CreateThread(#OpenWith,#open_with_stak+4092); |
|
- | 381 | } |
|
- | 382 | break; |
|
371 | case 178: //up |
383 | case 178: //up |
372 | List_Current(-1); |
384 | List_Current(-1); |
373 | break; |
385 | break; |
374 | case 177: //down |
386 | case 177: //down |
375 | List_Current(1); |
387 | List_Current(1); |
Line 838... | Line 850... | ||
838 | { |
850 | { |
839 | switch(N) |
851 | switch(N) |
840 | { |
852 | { |
841 | case 1: |
853 | case 1: |
842 | SwitchToAnotherThread(); |
854 | SwitchToAnotherThread(); |
843 | CreateThread(#about_dialog,#about_stak+4092); |
855 | about_window=CreateThread(#about_dialog,#about_stak+4092); |
844 | break; |
856 | break; |
845 | case 2: |
857 | case 2: |
846 | if (!files.count) break; |
858 | if (!files.count) break; |
847 | edit2.flags = 100000000000010b; //set active |
859 | edit2.flags = 100000000000010b; //set active |
848 | edit2.left = files.x + 21; |
860 | edit2.left = files.x + 21; |