2013-08-04 01:35:59 +02:00
|
|
|
|
#ifdef LANG_RUS
|
2020-04-11 23:17:55 +02:00
|
|
|
|
|
|
|
|
|
char file_actions[]=
|
|
|
|
|
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Enter
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |CrlEnt
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Crl+C
|
|
|
|
|
<EFBFBD><EFBFBD>१<EFBFBD><EFBFBD><EFBFBD> |Crl+X
|
|
|
|
|
<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD> |Crl+V
|
|
|
|
|
<EFBFBD><EFBFBD>२<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |F2
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Del
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢠ |F8";
|
|
|
|
|
char folder_actions[]=
|
|
|
|
|
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Enter
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Crl+C
|
|
|
|
|
<EFBFBD><EFBFBD>१<EFBFBD><EFBFBD><EFBFBD> |Crl+X
|
|
|
|
|
<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD> |Crl+V
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Del
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢠ |F8";
|
|
|
|
|
char empty_folder_actions[]=
|
|
|
|
|
"<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD> |Crl+V";
|
|
|
|
|
|
2013-09-24 20:50:05 +02:00
|
|
|
|
#elif LANG_EST
|
2020-04-11 23:17:55 +02:00
|
|
|
|
char file_actions[]=
|
|
|
|
|
"Ava |Enter
|
|
|
|
|
Ava ... |CrlEnt
|
|
|
|
|
Kopeeri |Crl+C
|
|
|
|
|
L<EFBFBD>ika |Crl+X
|
|
|
|
|
Aseta |Crl+V
|
|
|
|
|
Nimeta <EFBFBD>mber |F2
|
|
|
|
|
Kustuta |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char folder_actions[]=
|
|
|
|
|
"Ava |Enter
|
|
|
|
|
Kopeeri |Crl+C
|
|
|
|
|
L<EFBFBD>ika |Crl+X
|
|
|
|
|
Aseta |Crl+V
|
|
|
|
|
Kustuta |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char empty_folder_actions[]=
|
|
|
|
|
"Aseta |Crl+V";
|
|
|
|
|
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#else
|
2020-04-11 23:17:55 +02:00
|
|
|
|
char file_actions[]=
|
|
|
|
|
"Open |Enter
|
|
|
|
|
Open with... |CrlEnt
|
|
|
|
|
Copy |Crl+C
|
|
|
|
|
Cut |Crl+X
|
|
|
|
|
Paste |Crl+V
|
|
|
|
|
Rename |F2
|
|
|
|
|
Delete |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char folder_actions[]=
|
|
|
|
|
"Open |Enter
|
|
|
|
|
Copy |Crl+C
|
|
|
|
|
Cut |Crl+X
|
|
|
|
|
Paste |Crl+V
|
|
|
|
|
Delete |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char empty_folder_actions[]=
|
|
|
|
|
"Paste |Crl+V";
|
|
|
|
|
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#endif
|
2013-06-22 00:49:43 +02:00
|
|
|
|
|
2020-04-11 23:17:55 +02:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> |F5
|
|
|
|
|
//V<>rskenda |F5
|
|
|
|
|
//Refresh |F5
|
2013-03-31 22:25:54 +02:00
|
|
|
|
|
2020-04-11 23:17:55 +02:00
|
|
|
|
enum { MENU_DIR=1, MENU_FILE, MENU_NO_FILE, MENU_BURGER };
|
2013-10-17 01:48:20 +02:00
|
|
|
|
|
2020-04-11 23:17:55 +02:00
|
|
|
|
bool active_menu = false;
|
|
|
|
|
|
|
|
|
|
void EventMenuClick(dword _id)
|
|
|
|
|
{
|
|
|
|
|
if (active_menu == MENU_NO_FILE) switch(_id) {
|
|
|
|
|
case 1: Paste(); break;
|
2013-03-31 22:25:54 +02:00
|
|
|
|
}
|
2020-04-11 23:17:55 +02:00
|
|
|
|
if (active_menu == MENU_FILE) switch(_id) {
|
|
|
|
|
case 1: Open(0); break;
|
|
|
|
|
case 2: ShowOpenWithDialog(); break;
|
|
|
|
|
case 3: Copy(#file_path, NOCUT); break;
|
|
|
|
|
case 4: Copy(#file_path, CUT); break;
|
|
|
|
|
case 5: Paste(); break;
|
|
|
|
|
case 6: FnProcess(2); break;
|
|
|
|
|
case 7: Del_Form(); break;
|
|
|
|
|
case 8: FnProcess(8); break;
|
2013-03-31 22:25:54 +02:00
|
|
|
|
}
|
2020-04-11 23:17:55 +02:00
|
|
|
|
if (active_menu == MENU_DIR) switch(_id) {
|
|
|
|
|
case 1: Open(0); break;
|
|
|
|
|
case 2: Copy(#file_path, NOCUT); break;
|
|
|
|
|
case 3: Copy(#file_path, CUT); break;
|
|
|
|
|
case 4: Paste(); break;
|
|
|
|
|
case 5: Del_Form(); break;
|
|
|
|
|
case 6: FnProcess(8); break;
|
|
|
|
|
}
|
|
|
|
|
active_menu = NULL;
|
2013-10-22 23:34:18 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-11 23:17:55 +02:00
|
|
|
|
void EventShowListMenu()
|
2013-10-22 23:34:18 +02:00
|
|
|
|
{
|
2020-04-11 23:17:55 +02:00
|
|
|
|
dword text;
|
|
|
|
|
|
|
|
|
|
pause(3);
|
2018-10-14 12:47:23 +02:00
|
|
|
|
|
2020-04-11 23:17:55 +02:00
|
|
|
|
if (!files.count) {
|
|
|
|
|
text = #empty_folder_actions;
|
|
|
|
|
active_menu = MENU_NO_FILE;
|
|
|
|
|
} else if (itdir) {
|
|
|
|
|
text = #folder_actions;
|
|
|
|
|
active_menu = MENU_DIR;
|
|
|
|
|
} else {
|
|
|
|
|
text = #file_actions;
|
|
|
|
|
active_menu = MENU_FILE;
|
|
|
|
|
}
|
2020-04-13 15:16:55 +02:00
|
|
|
|
open_lmenu(mouse.x+Form.left+5, mouse.y+Form.top+3+skin_height, MENU_ALIGN_TOP_LEFT, NULL, text);
|
2020-04-11 23:17:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool GetMenuClick()
|
|
|
|
|
{
|
2020-04-13 13:51:56 +02:00
|
|
|
|
dword click_id;
|
|
|
|
|
if (active_menu) && (click_id = get_menu_click()) {
|
|
|
|
|
EventMenuClick(click_id);
|
2020-04-11 23:17:55 +02:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2018-10-14 12:47:23 +02:00
|
|
|
|
|