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
|
2021-06-07 23:45:46 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢠ |F1";
|
2020-04-11 23:17:55 +02:00
|
|
|
|
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
|
2021-06-15 01:33:54 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>|Ctrl+R
|
2021-06-05 21:30:53 +02:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD><EFBFBD>|F10
|
|
|
|
|
<EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD>";
|
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
|
2021-06-07 23:45:46 +02:00
|
|
|
|
Properties |F1";
|
2020-04-11 23:17:55 +02:00
|
|
|
|
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
|
2021-06-15 01:33:54 +02:00
|
|
|
|
V<EFBFBD>rskenda|Ctrl+R
|
2021-06-05 21:30:53 +02:00
|
|
|
|
Settings|F10
|
|
|
|
|
About";
|
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
|
2021-06-07 23:45:46 +02:00
|
|
|
|
Properties |F1";
|
2020-04-11 23:17:55 +02:00
|
|
|
|
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
|
2021-06-15 01:33:54 +02:00
|
|
|
|
Refresh folder|Ctrl+R
|
2021-06-05 21:30:53 +02:00
|
|
|
|
Settings|F10
|
|
|
|
|
About";
|
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
|
|
|
|
|
2021-06-28 12:55:08 +02:00
|
|
|
|
enum { MENU_FILE=1, 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) {
|
2021-07-13 13:04:49 +02:00
|
|
|
|
case 1: EventPaste(path); break;
|
2013-03-31 22:25:54 +02:00
|
|
|
|
}
|
2020-04-11 23:17:55 +02:00
|
|
|
|
if (active_menu == MENU_FILE) switch(_id) {
|
2020-12-16 11:23:59 +01:00
|
|
|
|
case 1: EventOpen(0); break;
|
2020-04-11 23:17:55 +02:00
|
|
|
|
case 2: ShowOpenWithDialog(); break;
|
2021-06-15 20:22:58 +02:00
|
|
|
|
case 3: CopyFilesListToClipboard(COPY); break;
|
|
|
|
|
case 4: CopyFilesListToClipboard(CUT); break;
|
2021-07-13 13:04:49 +02:00
|
|
|
|
case 5: EventPaste(path); break;
|
2020-04-11 23:17:55 +02:00
|
|
|
|
case 6: FnProcess(2); break;
|
2021-06-28 12:55:08 +02:00
|
|
|
|
case 7: ShowPopinForm(POPIN_DELETE); break;
|
2021-06-07 23:45:46 +02:00
|
|
|
|
case 8: FnProcess(1); break;
|
2013-03-31 22:25:54 +02:00
|
|
|
|
}
|
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;
|
2021-06-05 21:30:53 +02:00
|
|
|
|
case 4: FnProcess(10); break;
|
2021-06-07 23:45:46 +02:00
|
|
|
|
case 5: EventShowAbout(); break;
|
2020-04-20 11:37:37 +02:00
|
|
|
|
}
|
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 {
|
|
|
|
|
text = #file_actions;
|
|
|
|
|
active_menu = MENU_FILE;
|
|
|
|
|
}
|
2020-06-04 00:21:39 +02:00
|
|
|
|
open_lmenu(mouse.x, mouse.y+3, MENU_TOP_LEFT, NULL, text);
|
2020-04-20 11:37:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void EventShowBurgerMenu()
|
|
|
|
|
{
|
|
|
|
|
active_menu = MENU_BURGER;
|
2020-06-04 00:21:39 +02:00
|
|
|
|
open_lmenu(Form.cwidth-6, 35, MENU_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
|
|
|
|
|