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
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Crl+C
|
|
|
|
|
<EFBFBD><EFBFBD>१<EFBFBD><EFBFBD><EFBFBD> |Crl+X
|
|
|
|
|
<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD> |Crl+V
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
<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
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |Crl+C
|
|
|
|
|
<EFBFBD><EFBFBD>१<EFBFBD><EFBFBD><EFBFBD> |Crl+X
|
|
|
|
|
<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD> |Crl+V
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
<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";
|
2020-04-20 11:37:37 +02:00
|
|
|
|
char burger_menu_items[] =
|
|
|
|
|
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>|Ctrl+N
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>᮫<EFBFBD>|Ctrl+G
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>|F5
|
|
|
|
|
<EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD>|F1";
|
2020-04-11 23:17:55 +02:00
|
|
|
|
|
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
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Kopeeri |Crl+C
|
|
|
|
|
L<EFBFBD>ika |Crl+X
|
|
|
|
|
Aseta |Crl+V
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Nimeta <EFBFBD>mber |F2
|
|
|
|
|
Kustuta |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char folder_actions[]=
|
|
|
|
|
"Ava |Enter
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Kopeeri |Crl+C
|
|
|
|
|
L<EFBFBD>ika |Crl+X
|
|
|
|
|
Aseta |Crl+V
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Kustuta |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char empty_folder_actions[]=
|
|
|
|
|
"Aseta |Crl+V";
|
2020-04-20 11:37:37 +02:00
|
|
|
|
char burger_menu_items[] =
|
|
|
|
|
"New window|Ctrl+N
|
|
|
|
|
Open console here|Ctrl+G
|
|
|
|
|
V<EFBFBD>rskenda|F5
|
|
|
|
|
About|F1";
|
2020-04-11 23:17:55 +02:00
|
|
|
|
|
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
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Copy |Crl+C
|
|
|
|
|
Cut |Crl+X
|
|
|
|
|
Paste |Crl+V
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Rename |F2
|
|
|
|
|
Delete |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char folder_actions[]=
|
|
|
|
|
"Open |Enter
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Copy |Crl+C
|
|
|
|
|
Cut |Crl+X
|
|
|
|
|
Paste |Crl+V
|
2020-04-15 19:00:34 +02:00
|
|
|
|
-
|
2020-04-11 23:17:55 +02:00
|
|
|
|
Delete |Del
|
|
|
|
|
Properties |F8";
|
|
|
|
|
char empty_folder_actions[]=
|
|
|
|
|
"Paste |Crl+V";
|
2020-04-20 11:37:37 +02:00
|
|
|
|
char burger_menu_items[] =
|
|
|
|
|
"New window|Ctrl+N
|
|
|
|
|
Open console here|Ctrl+G
|
|
|
|
|
Refresh folder|F5
|
|
|
|
|
About|F1";
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#endif
|
2013-06-22 00:49:43 +02:00
|
|
|
|
|
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;
|
|
|
|
|
}
|
2020-04-20 11:37:37 +02:00
|
|
|
|
if (active_menu == MENU_BURGER) switch(_id) {
|
|
|
|
|
case 1: EventOpenNewEolite(); break;
|
|
|
|
|
case 2: EventOpenConsoleHere(); break;
|
|
|
|
|
case 3: EventRefreshDisksAndFolders(); break;
|
|
|
|
|
case 4: FnProcess(1); break;
|
|
|
|
|
}
|
2020-04-11 23:17:55 +02:00
|
|
|
|
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-20 11:37:37 +02:00
|
|
|
|
open_lmenu(mouse.x+Form.left+5, mouse.y+Form.top+3
|
|
|
|
|
+skin_height, MENU_ALIGN_TOP_LEFT, NULL, text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void EventShowBurgerMenu()
|
|
|
|
|
{
|
|
|
|
|
active_menu = MENU_BURGER;
|
|
|
|
|
open_lmenu(Form.width-10+Form.left, 35+Form.top+skin_height,
|
|
|
|
|
MENU_ALIGN_TOP_RIGHT, NULL, #burger_menu_items);
|
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
|
|
|
|
|