mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
implement 'delete' command
svn path=/trunk/; revision=15655
This commit is contained in:
parent
32ec815105
commit
66500a1428
17 changed files with 29 additions and 15 deletions
|
@ -33,7 +33,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Flytta...\tF7", ID_FILE_MOVE
|
||||
MENUITEM "&Kopiera...\tF8", ID_FILE_COPY
|
||||
MENUITEM "&I urklipp...\tF9", 118
|
||||
MENUITEM "&Ta bort\tDel", 108
|
||||
MENUITEM "&Ta bort\tDel", ID_FILE_DELETE
|
||||
MENUITEM "&Byt namn...", 109
|
||||
MENUITEM "&Egenskaper...\tAlt+Enter", ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -32,7 +32,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Pøesunout...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Kopírovat...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&Ve schránce...\tF9" , 118
|
||||
MENUITEM "&Smazat\tDel" , 108
|
||||
MENUITEM "&Smazat\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Pø&ejmenovat..." , 109
|
||||
MENUITEM "V&lastnosti...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -34,7 +34,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Verschieben...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Kopieren...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&In Zwischenablage...\tF9" , 118
|
||||
MENUITEM "&Löschen\tEntf" , 108
|
||||
MENUITEM "&Löschen\tEntf" , ID_FILE_DELETE
|
||||
MENUITEM "&Umbenennen..." , 109
|
||||
MENUITEM "&Eigenschaften...\tAlt+Eingabetaste" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -34,7 +34,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Move...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copy...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&In Clipboard...\tF9" , 118
|
||||
MENUITEM "&Delete\tDel" , 108
|
||||
MENUITEM "&Delete\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Re&name..." , 109
|
||||
MENUITEM "Propert&ies...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -30,7 +30,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "Mo&ver...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copiar...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "E&n portapapeles...\tF9" , 118
|
||||
MENUITEM "&Eliminar\tDel" , 108
|
||||
MENUITEM "&Eliminar\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "&Renombrar..." , 109
|
||||
MENUITEM "&Propiedades...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -33,7 +33,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Déplacer...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copier...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "P&resse-Papiers...\tF9" , 118
|
||||
MENUITEM "&Effacer\tDel" , 108
|
||||
MENUITEM "&Effacer\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Re&nommer..." , 109
|
||||
MENUITEM "&Propriétés...\tAlt+Entree" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -33,7 +33,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "Át&helyezés...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Másolás...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&Vágólapon...\tF9" , 118
|
||||
MENUITEM "&Törlés\tDel" , 108
|
||||
MENUITEM "&Törlés\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Át&nevezés..." , 109
|
||||
MENUITEM "T&ulajdonságok...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -33,7 +33,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Sposta...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copia...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&Negli Appunti...\tF9" , 118
|
||||
MENUITEM "&Cancella\tDel" , 108
|
||||
MENUITEM "&Cancella\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Ri&nomina..." , 109
|
||||
MENUITEM "Propri&età...\tAlt+Invio" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -29,7 +29,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Verplaatsen...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Kopiëren...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "Naar &klembord...\tF9" , 118
|
||||
MENUITEM "Ver&wijderen\tDel" , 108
|
||||
MENUITEM "Ver&wijderen\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "&Naam wijzigen..." , 109
|
||||
MENUITEM "&Eigenschappen...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -33,7 +33,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Przenieś...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Kopiuj...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "W s&chowku...\tF9" , 118
|
||||
MENUITEM "&Usuń\tDel" , 108
|
||||
MENUITEM "&Usuñ\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "&Zmień nazwę..." , 109
|
||||
MENUITEM "Ustawie&nia...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -32,7 +32,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Mover...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copiar...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&In Clipboard...\tF9" , 118
|
||||
MENUITEM "E&xcluir\tDel" , 108
|
||||
MENUITEM "E&xcluir\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Re&nomear..." , 109
|
||||
MENUITEM "&Propriedades...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
@ -160,7 +160,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Mover...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copiar...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&Na Area de Transferencia...\tF9" , 118
|
||||
MENUITEM "E&xcluir\tDel" , 108
|
||||
MENUITEM "E&xcluir\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Re&nomear..." , 109
|
||||
MENUITEM "&Propriedades...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#define ID_EXECUTE 105
|
||||
#define ID_FILE_MOVE 106
|
||||
#define ID_FILE_COPY 107
|
||||
#define ID_FILE_DELETE 108
|
||||
#define ID_FILE_EXIT 115
|
||||
#define ID_FORMAT_DISK 203
|
||||
#define ID_CONNECT_NETWORK_DRIVE 252
|
||||
|
|
|
@ -22,6 +22,7 @@ IDA_WINEFILE ACCELERATORS DISCARDABLE
|
|||
VK_F5, ID_REFRESH, VIRTKEY, NOINVERT
|
||||
VK_F7, ID_FILE_MOVE, VIRTKEY, NOINVERT
|
||||
VK_F8, ID_FILE_COPY, VIRTKEY, NOINVERT
|
||||
VK_DELETE, ID_FILE_DELETE, VIRTKEY, NOINVERT
|
||||
VK_RETURN, ID_ACTIVATE, VIRTKEY, NOINVERT
|
||||
#ifndef _NO_EXTENSIONS
|
||||
"X", ID_FILE_EXIT, VIRTKEY, ALT, NOINVERT
|
||||
|
|
|
@ -29,7 +29,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Ïåðåìåñòèòü...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Êîïèðîâàòü...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&Â áóôåð îáìåíà...\tF9" , 118
|
||||
MENUITEM "&Óäŕëčňü\tDel" , 108
|
||||
MENUITEM "&Óäàëèòü\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Ïåðåèìåíîâàòü..." , 109
|
||||
MENUITEM "Ñâîéñòâà...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -30,7 +30,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "&Move...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "&Copy...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "&In Clipboard...\tF9" , 118
|
||||
MENUITEM "&Delete\tDel" , 108
|
||||
MENUITEM "&Delete\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "Re&name..." , 109
|
||||
MENUITEM "Propert&ies...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
|
@ -4175,6 +4175,18 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
|
|||
}
|
||||
break;}
|
||||
|
||||
case ID_FILE_DELETE: {
|
||||
TCHAR path[BUFFER_LEN];
|
||||
SHFILEOPSTRUCT shfo = {hwnd, FO_DELETE, path};
|
||||
|
||||
get_path(pane->cur, path);
|
||||
|
||||
path[lstrlen(path)+1] = '\0';
|
||||
|
||||
if (!SHFileOperation(&shfo))
|
||||
refresh_child(child);
|
||||
break;}
|
||||
|
||||
case ID_VIEW_SORT_NAME:
|
||||
set_sort_order(child, SORT_NAME);
|
||||
break;
|
||||
|
|
|
@ -30,7 +30,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
|||
MENUITEM "移动(&M)...\tF7" , ID_FILE_MOVE
|
||||
MENUITEM "复制(&C)...\tF8" , ID_FILE_COPY
|
||||
MENUITEM "位于剪贴板(&I)...\tF9" , 118
|
||||
MENUITEM "ÉžłýŁ¨&DŁŠ\tDel" , 108
|
||||
MENUITEM "ɾ³ý£¨&D£©\tDel" , ID_FILE_DELETE
|
||||
MENUITEM "改名(&N)..." , 109
|
||||
MENUITEM "属性(&I)...\tAlt+Enter" , ID_EDIT_PROPERTIES
|
||||
MENUITEM SEPARATOR
|
||||
|
|
Loading…
Reference in a new issue