[1/2] winefile: Remove unimplemented menu entries.

Francois Gouget fgouget at free.fr
Wed Mar 30 09:46:13 CDT 2011


They unnecessarily clutter the GUI and are unlikely to ever be implemented.
---

As discussed on wine-devel.
I still left Rename and Create Directory because they are basic 
functions that should really be there (but I won't implement them).

 programs/winefile/resource.h  |    2 -
 programs/winefile/winefile.c  |    2 -
 programs/winefile/winefile.rc |   43 -----------------------------------------
 3 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/programs/winefile/resource.h b/programs/winefile/resource.h
index 004a8e8..cac8364 100644
--- a/programs/winefile/resource.h
+++ b/programs/winefile/resource.h
@@ -53,7 +53,6 @@
 #define ID_DISCONNECT_NETWORK_DRIVE     253
 #define ID_VIEW_NAME                    401
 #define ID_VIEW_ALL_ATTRIBUTES          402
-#define ID_VIEW_SELECTED_ATTRIBUTES     403
 #define ID_VIEW_SORT_NAME               404
 #define ID_VIEW_SORT_TYPE               405
 #define ID_VIEW_SORT_SIZE               406
@@ -102,7 +101,6 @@
 
 /* winefile extensions */
 
-#define ID_WINDOW_AUTOSORT              0x8003
 #define ID_VIEW_FULLSCREEN              0x8004
 #define ID_PREFERRED_SIZES              0x8005
 
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 1135407..7df5015 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -3896,7 +3896,6 @@ static BOOL pane_command(Pane* pane, UINT cmd)
 				InvalidateRect(pane->hwnd, 0, TRUE);
 				CheckMenuItem(Globals.hMenuView, ID_VIEW_NAME, MF_BYCOMMAND|MF_CHECKED);
 				CheckMenuItem(Globals.hMenuView, ID_VIEW_ALL_ATTRIBUTES, MF_BYCOMMAND);
-				CheckMenuItem(Globals.hMenuView, ID_VIEW_SELECTED_ATTRIBUTES, MF_BYCOMMAND);
 			}
 			break;
 
@@ -3910,7 +3909,6 @@ static BOOL pane_command(Pane* pane, UINT cmd)
 				InvalidateRect(pane->hwnd, 0, TRUE);
 				CheckMenuItem(Globals.hMenuView, ID_VIEW_NAME, MF_BYCOMMAND);
 				CheckMenuItem(Globals.hMenuView, ID_VIEW_ALL_ATTRIBUTES, MF_BYCOMMAND|MF_CHECKED);
-				CheckMenuItem(Globals.hMenuView, ID_VIEW_SELECTED_ATTRIBUTES, MF_BYCOMMAND);
 			}
 			break;
 
diff --git a/programs/winefile/winefile.rc b/programs/winefile/winefile.rc
index 860479e..a060a84 100644
--- a/programs/winefile/winefile.rc
+++ b/programs/winefile/winefile.rc
@@ -26,21 +26,13 @@ IDM_WINEFILE MENU
         MENUITEM "&Open\tEnter",                ID_ACTIVATE
         MENUITEM "&Move...\tF7",                ID_FILE_MOVE
         MENUITEM "&Copy...\tF8",                ID_FILE_COPY
-        MENUITEM "&In Clipboard...\tF9",        118
         MENUITEM "&Delete\tDel",                ID_FILE_DELETE
         MENUITEM "Re&name...",                  109
         MENUITEM "Propert&ies...\tAlt+Enter",   ID_EDIT_PROPERTIES
         MENUITEM SEPARATOR
-        MENUITEM "C&ompress...",                119
-        MENUITEM "Dec&ompress...",              120
-        MENUITEM SEPARATOR
         MENUITEM "&Run...",                     ID_RUN
-        MENUITEM "&Print...",                   102
-        MENUITEM "Associate...",                103
         MENUITEM SEPARATOR
         MENUITEM "Cr&eate Directory...",        111
-        MENUITEM "Searc&h...",                  104
-        MENUITEM "&Select Files...",            116
         MENUITEM SEPARATOR
 #ifndef _NO_EXTENSIONS
         MENUITEM "E&xit\tAlt+X",                ID_FILE_EXIT
@@ -50,39 +42,17 @@ IDM_WINEFILE MENU
     }
 
     POPUP "&Disk"  {
-        MENUITEM "&Copy Disk...",               201
-        MENUITEM "&Label Disk...",              202
-        MENUITEM SEPARATOR
         MENUITEM "&Format Disk...",             ID_FORMAT_DISK
         MENUITEM SEPARATOR
         MENUITEM "Connect &Network Drive",      ID_CONNECT_NETWORK_DRIVE
         MENUITEM "&Disconnect Network Drive",   ID_DISCONNECT_NETWORK_DRIVE
-        MENUITEM SEPARATOR
-        MENUITEM "Share as...",                 254
-        MENUITEM "&Remove Share...",            255
-        MENUITEM SEPARATOR
-        MENUITEM "&Select Drive...",            251
-    }
-
-    POPUP "Di&rectories"  {
-        MENUITEM "&Next Level\t+",              301
-        MENUITEM "Expand &Tree\t*",             302
-        MENUITEM "Expand &all\tCtrl+*",         303
-        MENUITEM "Collapse &Tree\t-",           304
-        MENUITEM SEPARATOR
-        MENUITEM "&Mark Children",              505
     }
 
     POPUP "&View"  {
-        MENUITEM "T&ree and Directory",         413
-        MENUITEM "Tr&ee Only",                  411
-        MENUITEM "Directory &Only",             412
-        MENUITEM SEPARATOR
         MENUITEM "Sp&lit",                      ID_VIEW_SPLIT
         MENUITEM SEPARATOR
         MENUITEM "&Name",                       ID_VIEW_NAME
         MENUITEM "&All File Details",           ID_VIEW_ALL_ATTRIBUTES, CHECKED
-        MENUITEM "&Partial Details...",         ID_VIEW_SELECTED_ATTRIBUTES
         MENUITEM SEPARATOR
         MENUITEM "&Sort by Name",               ID_VIEW_SORT_NAME
         MENUITEM "Sort &by Type",               ID_VIEW_SORT_TYPE
@@ -93,9 +63,7 @@ IDM_WINEFILE MENU
     }
 
     POPUP "&Options"  {
-        MENUITEM "&Confirmation...",            501
         MENUITEM "&Font...",                    ID_SELECT_FONT
-        MENUITEM "Customize Tool&bar...",       512
         MENUITEM SEPARATOR
         MENUITEM "&Toolbar",                    ID_VIEW_TOOL_BAR, CHECKED
         MENUITEM "&Drivebar",                   ID_VIEW_DRIVE_BAR, CHECKED
@@ -104,25 +72,14 @@ IDM_WINEFILE MENU
         MENUITEM "F&ull Screen\tCtrl+Shift+S",  ID_VIEW_FULLSCREEN
 #endif
         MENUITEM SEPARATOR
-        MENUITEM "&Minimize on run",            504
         MENUITEM "&Save settings on exit",      ID_VIEW_SAVESETTINGS
     }
 
-
-    POPUP "&Security"  {
-        MENUITEM "&Access...",                  605
-        MENUITEM "&Logging...",                 606
-        MENUITEM "&Owner...",                   607
-    }
-
     POPUP "&Window"  {
         MENUITEM "New &Window",                 ID_WINDOW_NEW
         MENUITEM "Cascading\tCtrl+F5",          ID_WINDOW_CASCADE
         MENUITEM "Tile &Horizontally",          ID_WINDOW_TILE_HORZ
         MENUITEM "Tile &Vertically\tCtrl+F4",   ID_WINDOW_TILE_VERT
-#ifndef _NO_EXTENSIONS
-        MENUITEM "Arrange Automatically",       ID_WINDOW_AUTOSORT
-#endif
         MENUITEM "Arrange &Symbols",            ID_WINDOW_ARRANGE
         MENUITEM "&Refresh\tF5",                ID_REFRESH
     }
-- 
1.7.4.1




More information about the wine-patches mailing list