Rev 5556 | Rev 5571 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5556 | Rev 5557 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | ?define T_DELETE_FILE "ë ¤¥©áâ¢¨â¥«ì® å®â¨â¥ 㤠«¨âì" |
34 | ?define T_DELETE_FILE "ë ¤¥©áâ¢¨â¥«ì® å®â¨â¥ 㤠«¨âì" |
35 | ?define T_YES " " |
35 | ?define T_YES " " |
36 | ?define T_NO "¥â" |
36 | ?define T_NO "¥â" |
37 | ?define T_CANCEL "⬥ " |
37 | ?define T_CANCEL "⬥ " |
38 | ?define T_CREATE "®§¤ âì" |
38 | ?define T_CREATE "®§¤ âì" |
- | 39 | ?define FILE_EXISTS " ©« á â ª¨¬ ¨¬¥¥¬ áãé¥áâ¢ã¥â" |
|
- | 40 | ?define FOLDER_EXISTS " ¯ª á â ª¨¬ ¨¬¥¥¬ áãé¥áâ¢ã¥â" |
|
39 | ?define T_DEL_ERROR_1 "訡ª . ¯ª ¥ ¯ãáâ ï." |
41 | ?define T_DEL_ERROR_1 "訡ª . ¯ª ¥ ¯ãáâ ï." |
40 | ?define WAIT_DELETING_FOLDER "¤ «ï¥âáï ¯ ¯ª . ®¤®¦¨â¥..." |
42 | ?define WAIT_DELETING_FOLDER "¤ «ï¥âáï ¯ ¯ª . ®¤®¦¨â¥..." |
41 | ?define NOT_CREATE_FOLDER "¥ 㤠«®áì ᮧ¤ âì ¯ ¯ªã." |
43 | ?define NOT_CREATE_FOLDER "¥ 㤠«®áì ᮧ¤ âì ¯ ¯ªã." |
42 | ?define NOT_CREATE_FILE "¥ 㤠«®áì ᮧ¤ âì ä ©«." |
44 | ?define NOT_CREATE_FILE "¥ 㤠«®áì ᮧ¤ âì ä ©«." |
43 | ?define ERROR_1 "訡ª ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj" |
45 | ?define ERROR_1 "訡ª ¯à¨ § £à㧪¥ ¡¨¡«¨®â¥ª¨ /rd/1/lib/box_lib.obj" |
Line 58... | Line 60... | ||
58 | ?define T_DELETE_FILE "Kas sa tahad tõesti kustutada" |
60 | ?define T_DELETE_FILE "Kas sa tahad tõesti kustutada" |
59 | ?define T_YES "Jah" |
61 | ?define T_YES "Jah" |
60 | ?define T_NO "Ei" |
62 | ?define T_NO "Ei" |
61 | ?define T_CANCEL "Cancel" |
63 | ?define T_CANCEL "Cancel" |
62 | ?define T_CREATE "Create" |
64 | ?define T_CREATE "Create" |
- | 65 | ?define FILE_EXISTS "The file with the same name exists" |
|
- | 66 | ?define FOLDER_EXISTS "A folder with the same name exists" |
|
63 | ?define T_DEL_ERROR_1 "Viga. Kataloog ei ole tühi." |
67 | ?define T_DEL_ERROR_1 "Viga. Kataloog ei ole tühi." |
64 | ?define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..." |
68 | ?define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..." |
65 | ?define NOT_CREATE_FOLDER "Kataloogi ei saa luua." |
69 | ?define NOT_CREATE_FOLDER "Kataloogi ei saa luua." |
66 | ?define NOT_CREATE_FILE "Faili ei saa luua." |
70 | ?define NOT_CREATE_FILE "Faili ei saa luua." |
67 | ?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj" |
71 | ?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj" |
Line 82... | Line 86... | ||
82 | ?define T_DELETE_FILE "Do you really want to delete" |
86 | ?define T_DELETE_FILE "Do you really want to delete" |
83 | ?define T_YES "Yes" |
87 | ?define T_YES "Yes" |
84 | ?define T_NO "No" |
88 | ?define T_NO "No" |
85 | ?define T_CANCEL "Cancel" |
89 | ?define T_CANCEL "Cancel" |
86 | ?define T_CREATE "Create" |
90 | ?define T_CREATE "Create" |
- | 91 | ?define FILE_EXISTS "The file with the same name exists" |
|
- | 92 | ?define FOLDER_EXISTS "A folder with the same name exists" |
|
87 | ?define T_DEL_ERROR_1 "Error. Folder isn't empty." |
93 | ?define T_DEL_ERROR_1 "Error. Folder isn't empty." |
88 | ?define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..." |
94 | ?define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..." |
89 | ?define NOT_CREATE_FOLDER "Folder can not be created." |
95 | ?define NOT_CREATE_FOLDER "Folder can not be created." |
90 | ?define NOT_CREATE_FILE "File can not be created." |
96 | ?define NOT_CREATE_FILE "File can not be created." |
91 | ?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj" |
97 | ?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj" |
Line 99... | Line 105... | ||
99 | ?define DEL_MORE_FILES_2 " pcs.)?" |
105 | ?define DEL_MORE_FILES_2 " pcs.)?" |
100 | #endif |
106 | #endif |
Line 101... | Line 107... | ||
101 | 107 | ||
Line 102... | Line 108... | ||
102 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
108 | enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir |
103 | 109 | ||
104 | #define TITLE "Eolite File Manager v2.77" |
110 | #define TITLE "Eolite File Manager v2.78" |
Line 105... | Line 111... | ||
105 | #define ABOUT_TITLE "Eolite v2.77" |
111 | #define ABOUT_TITLE "Eolite v2.78" |
106 | dword col_padding, col_selec, col_lpanel; |
112 | dword col_padding, col_selec, col_lpanel; |
Line 150... | Line 156... | ||
150 | 156 | ||
151 | mouse gestures; |
157 | mouse gestures; |
152 | signed x_old, y_old, dif_x, dif_y, adif_x, adif_y; |
158 | signed x_old, y_old, dif_x, dif_y, adif_x, adif_y; |
Line 153... | Line 159... | ||
153 | byte stats; |
159 | byte stats; |
154 | 160 | ||
155 | edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_name,#mouse_dd,64,6,6}; |
161 | edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xFFFFFF,0,248,#file_name,#mouse_dd,64,6,6}; |
156 | edit_box new_file_ed = {150,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#new_element_name,#mouse_dd,64,6,6}; |
162 | edit_box new_file_ed = {150,213,80,0xFFFFFF,0x94AECE,0x000000,0xFFFFFF,0,248,#new_element_name,#mouse_dd,100000000000010b,6,0}; |
Line 157... | Line 163... | ||
157 | PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0}; |
163 | PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0}; |
158 | PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0}; |
164 | PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0}; |
Line 421... | Line 427... | ||
421 | break; |
427 | break; |
422 | } |
428 | } |
423 | IF (new_element_active) |
429 | IF (new_element_active) |
424 | { |
430 | { |
425 | IF (key==027) NewElement(0); |
431 | IF (key==027) NewElement(0); |
- | 432 | IF (key==013) NewElement(1); |
|
426 | EAX=key<<8; |
433 | EAX=key<<8; |
427 | edit_box_key stdcall (#new_file_ed); |
434 | edit_box_key stdcall (#new_file_ed); |
428 | break; |
435 | break; |
429 | } |
436 | } |
430 | IF (edit2.flags!=64) && (key!=13) && (key!=27) |
437 | IF (edit2.flags!=64) && (key!=13) && (key!=27) |
Line 619... | Line 626... | ||
619 | DrawBar(files.x+files.w,files.y,1,onTop(22,files.y),sc.work_graph); //line to the left from the scroll |
626 | DrawBar(files.x+files.w,files.y,1,onTop(22,files.y),sc.work_graph); //line to the left from the scroll |
620 | DrawFlatButton(files.x+files.w,40,16,16,0,sc.work,"\x18"); |
627 | DrawFlatButton(files.x+files.w,40,16,16,0,sc.work,"\x18"); |
621 | DrawFlatButton(files.x+files.w,onTop(22,0),16,16,0,sc.work,"\x19"); |
628 | DrawFlatButton(files.x+files.w,onTop(22,0),16,16,0,sc.work,"\x19"); |
622 | Open_Dir(#path,ONLY_SHOW); |
629 | Open_Dir(#path,ONLY_SHOW); |
623 | if (del_active) Del_Form(); |
630 | if (del_active) Del_Form(); |
624 | if (new_element_active) NewElement_Form(); |
631 | if (new_element_active) NewElement_Form(new_element_active); |
625 | if (rename_active) FnProcess(2); |
632 | if (rename_active) FnProcess(2); |
626 | } |
633 | } |
Line 627... | Line 634... | ||
627 | 634 | ||
Line 1059... | Line 1066... | ||
1059 | RunProgram("/sys/@open", #param); |
1066 | RunProgram("/sys/@open", #param); |
1060 | } |
1067 | } |
Line 1061... | Line 1068... | ||
1061 | 1068 | ||
1062 | void NewElement(byte newf) |
1069 | void NewElement(byte newf) |
- | 1070 | { |
|
- | 1071 | BDVK element_info; |
|
- | 1072 | //char edit_name[256]; |
|
1063 | { |
1073 | //strcpy(#edit_name, #file_name); |
1064 | if (newf) |
1074 | if (newf) |
1065 | { |
1075 | { |
- | 1076 | strcpy(#temp, #path); |
|
1066 | strcpy(#temp, #path); |
1077 | //strcpy(#edit_name, new_file_ed.text); |
1067 | strcat(#temp, new_file_ed.text); |
1078 | strcat(#temp, new_file_ed.text); |
1068 | if (new_element_active==1) |
1079 | if (new_element_active==1) |
- | 1080 | { |
|
- | 1081 | GetFileInfo(#temp, #element_info); |
|
- | 1082 | if (EAX==5) |
|
1069 | { |
1083 | { |
1070 | WriteFile(0, 0, #temp); |
1084 | WriteFile(0, 0, #temp); |
1071 | if (EAX) |
1085 | if (EAX) |
1072 | { |
1086 | { |
1073 | Write_Error(EAX); |
1087 | Write_Error(EAX); |
1074 | ShowMessage(NOT_CREATE_FILE, 150); |
1088 | ShowMessage(NOT_CREATE_FILE, 150); |
1075 | } |
1089 | } |
1076 | } |
1090 | } |
1077 | else |
1091 | else |
- | 1092 | { |
|
- | 1093 | notify(FILE_EXISTS); |
|
- | 1094 | } |
|
- | 1095 | } |
|
- | 1096 | else |
|
- | 1097 | { |
|
- | 1098 | GetFileInfo(#temp, #element_info); |
|
- | 1099 | if (EAX==5) |
|
1078 | { |
1100 | { |
1079 | CreateDir(#temp); |
1101 | CreateDir(#temp); |
1080 | if (EAX) |
1102 | if (EAX) |
1081 | { |
1103 | { |
1082 | Write_Error(EAX); |
1104 | Write_Error(EAX); |
1083 | ShowMessage(NOT_CREATE_FOLDER, 150); |
1105 | ShowMessage(NOT_CREATE_FOLDER, 150); |
1084 | } |
1106 | } |
- | 1107 | } |
|
- | 1108 | else |
|
- | 1109 | { |
|
- | 1110 | notify(FOLDER_EXISTS); |
|
1085 | } |
1111 | } |
1086 | } |
1112 | } |
- | 1113 | new_element_active = 0; |
|
1087 | new_element_active = 0; |
1114 | Open_Dir(#path,WITH_REDRAW); |
1088 | SelectFile(new_file_ed.text); |
1115 | SelectFile(new_file_ed.text); |
- | 1116 | } |
|
- | 1117 | new_element_active = 0; |
|
- | 1118 | Open_Dir(#path,WITH_REDRAW); |
|
Line 1089... | Line 1119... | ||
1089 | } |
1119 | } |
1090 | 1120 | ||
1091 | void NewElement_Form(byte crt) |
1121 | void NewElement_Form(byte crt) |
- | 1122 | { |
|
- | 1123 | int dform_x=files.w-220/2+files.x; |
|
1092 | { |
1124 | if (!new_element_active) |
1093 | int dform_x=files.w-220/2+files.x; |
1125 | { |
1094 | new_element_active = crt; |
1126 | new_element_active = crt; |
1095 | if (new_element_active==1) |
1127 | if (new_element_active==1) |
1096 | { |
1128 | { |
1097 | strcpy(#new_element_name, T_NEW_FILE); |
1129 | strcpy(#new_element_name, T_NEW_FILE); |
1098 | new_file_ed.size = strlen(T_NEW_FILE); |
1130 | new_file_ed.size = new_file_ed.pos = strlen(T_NEW_FILE); |
1099 | } |
1131 | } |
1100 | else |
1132 | else |
1101 | { |
1133 | { |
- | 1134 | strcpy(#new_element_name, T_NEW_FOLDER); |
|
1102 | strcpy(#new_element_name, T_NEW_FOLDER); |
1135 | new_file_ed.size = new_file_ed.pos = strlen(T_NEW_FOLDER); |
1103 | new_file_ed.size = strlen(T_NEW_FOLDER); |
1136 | } |
1104 | } |
1137 | } |
1105 | DrawPopup(dform_x,160,220,80,1,sc.work,sc.work_graph); |
1138 | DrawPopup(dform_x,160,220,80,1,sc.work,sc.work_graph); |
1106 | new_file_ed.left = dform_x+27; |
1139 | new_file_ed.left = dform_x+27; |