Changeset 1360
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/fm3dll2.h
r1359 r1360 23 23 to save/append just filename to clipboard 24 24 01 Sep 08 GKY Add IDM_*TLS for icon resources for the default toolbars 25 27 Dec 08 GKY Add refresh removable media to tree container menus 25 26 26 27 Align with spaces only - no tabs please -
trunk/dll/fm3res.rc
r1359 r1360 40 40 21 Nov 08 JBS Ticket 297: Added STRINGTABLE with COPYRIGHT_STRING 41 41 26 Dec 08 GKY Rework MLE menus (add "view") so toggle word wrap isn't buried on a submenu. 42 27 Dec 08 GKY Add refresh removable media to tree container menus 42 43 43 44 ***********************************************************************/ … … 452 453 SUBMENU "~Partition disks", IDM_PARTITIONSMENU 453 454 { 454 MENUITEM "~MiniLVM - eCS only", IDM_PARTITION455 MENUITEM "~DFSee - If installed in System Path", IDM_PARTITIONDF455 MENUITEM "~MiniLVM", IDM_PARTITION 456 MENUITEM "~DFSee", IDM_PARTITIONDF 456 457 MENUITEM "~LVMGUI", IDM_PARTITIONLVMG 457 MENUITEM "~FDisk - Do not use on LVM systems", IDM_PARTITIONFD458 MENUITEM "~FDisk", IDM_PARTITIONFD 458 459 } 459 460 MENUITEM "", -1, MIS_SEPARATOR … … 1060 1061 SUBMENU "~Partition disks", IDM_PARTITIONSMENU 1061 1062 { 1062 MENUITEM "~MiniLVM - eCS only", IDM_PARTITION1063 MENUITEM "~DFSee - If installed in System Path", IDM_PARTITIONDF1063 MENUITEM "~MiniLVM", IDM_PARTITION 1064 MENUITEM "~DFSee", IDM_PARTITIONDF 1064 1065 MENUITEM "~LVMGUI", IDM_PARTITIONLVMG 1065 MENUITEM "~FDisk - Do not use on LVM systems", IDM_PARTITIONFD1066 MENUITEM "~FDisk", IDM_PARTITIONFD 1066 1067 } 1067 1068 MENUITEM "", -1, MIS_SEPARATOR … … 1347 1348 SUBMENU "~Partition disks", IDM_PARTITIONSMENU 1348 1349 { 1349 MENUITEM "~MiniLVM - eCS only", IDM_PARTITION1350 MENUITEM "~DFSee - If installed in System Path", IDM_PARTITIONDF1350 MENUITEM "~MiniLVM", IDM_PARTITION 1351 MENUITEM "~DFSee", IDM_PARTITIONDF 1351 1352 MENUITEM "~LVMGUI", IDM_PARTITIONLVMG 1352 MENUITEM "~FDisk - Do not use on LVM systems", IDM_PARTITIONFD1353 MENUITEM "~FDisk", IDM_PARTITIONFD 1353 1354 } 1354 1355 MENUITEM "", -1, MIS_SEPARATOR -
trunk/dll/init.c
r1358 r1360 62 62 10 Dec 08 SHL Integrate exception handler support 63 63 25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis 64 28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate 65 28 Dec 08 GKY Rework partition submenu to gray out unavailable items (check for existence of files) 66 and have no default choice. 64 67 65 68 ***********************************************************************/ … … 1232 1235 *ThousandsSeparator = CtryInfo.szThousandsSeparator[0]; 1233 1236 } 1237 { // Check for the existance of various partitioning tools to set up menu items 1238 CHAR *FullPath; 1239 ULONG ulAppType; 1240 1241 FullPath = searchapath("PATH", "LVMGUI.CMD"); 1242 if (*FullPath) 1243 fLVMGui = TRUE; 1244 if (!DosQueryAppType("DFSOS2.EXE", &ulAppType)) 1245 fDFSee = TRUE; 1246 if (!DosQueryAppType("MINILVM.EXE", &ulAppType)) 1247 fMiniLVM = TRUE; 1248 if (!DosQueryAppType("FDISK.EXE", &ulAppType)) 1249 fFDisk = TRUE; 1250 if (!DosQueryAppType("LVM.EXE", &ulAppType)) 1251 fLVM = TRUE; 1252 } 1234 1253 1235 1254 // load preferences from profile (INI) file -
trunk/dll/misc.c
r1358 r1360 52 52 23 Aug 08 GKY Add CheckDriveSpaceAvail To pre check drive space to prevent failures 53 53 25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis 54 28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate 54 55 55 56 ***********************************************************************/ … … 1729 1730 MPFROM2SHORT(IDM_OBJECTSUBMENU, TRUE), MPVOID); 1730 1731 } 1732 if (!fLVM) 1733 WinSendMsg(TreeMenu, MM_DELETEITEM, 1734 MPFROM2SHORT(IDM_REFRESHREMOVABLES, TRUE), MPVOID); 1731 1735 } 1732 1736 else if (hwndMenu == &ArcMenu) { … … 1758 1762 MPFROM2SHORT(IDM_OBJECTSUBMENU, TRUE), MPVOID); 1759 1763 } 1764 if (!fLVM) 1765 WinSendMsg(FileMenu, MM_DELETEITEM, 1766 MPFROM2SHORT(IDM_REFRESHREMOVABLES, TRUE), MPVOID); 1760 1767 } 1761 1768 else if (hwndMenu == &DirCnrMenu) { … … 1769 1776 else if (hwndMenu == &TreeCnrMenu) { 1770 1777 WinSetWindowUShort(TreeCnrMenu, QWS_ID, IDM_VIEWSMENU); 1771 SetConditionalCascade(TreeCnrMenu, IDM_PARTITIONSMENU, IDM_PARTITION); 1778 if (!fLVM) 1779 WinSendMsg(TreeCnrMenu, MM_DELETEITEM, 1780 MPFROM2SHORT(IDM_REFRESHREMOVABLES, TRUE), MPVOID); 1772 1781 } 1773 1782 else if (hwndMenu == &ArcCnrMenu) { -
trunk/dll/treecnr.c
r1359 r1360 54 54 25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis 55 55 26 Dec 08 GKY Implemented DROPHELP for the tree container 56 27 Dec 08 GKY Add refresh removable media to tree container menus 57 28 Dec 08 GKY Rework partition submenu to gray out unavailable items (check for existence of files) 58 and have no default choice. 56 59 57 60 ***********************************************************************/ … … 132 135 BOOL fFollowTree; 133 136 BOOL fTopDir; 137 BOOL fLVMGui; 138 BOOL fDFSee; 139 BOOL fFDisk; 140 BOOL fMiniLVM; 141 BOOL fLVM; 134 142 HPOINTER hptrDunno; 135 143 HWND hwndMainMenu; … … 2198 2206 case WM_INITMENU: 2199 2207 if (dcd) { 2208 2200 2209 switch (SHORT1FROMMP(mp1)) { 2201 2210 case IDM_FILESMENU: … … 2208 2217 BOOL writeable; 2209 2218 BOOL removable; 2210 BOOL remote;2219 BOOL local; 2211 2220 BOOL underenv; 2212 2221 CHAR chDrvU; … … 2222 2231 writeable = rdy 2223 2232 && !(driveflags[chDrvU - 'A'] & DRIVE_NOTWRITEABLE); 2224 remote = rdy && (driveflags[chDrvU - 'A'] & (DRIVE_REMOTE || DRIVE_VIRTUAL)) == 0;2233 local = rdy && (!(driveflags[chDrvU - 'A'] & (DRIVE_REMOTE | DRIVE_VIRTUAL))); 2225 2234 underenv = (pci->flags & RECFLAGS_UNDERENV) != 0; 2226 2235 … … 2245 2254 WinEnableMenuItem((HWND) mp2, IDM_UNDELETE, writeable); 2246 2255 2247 WinEnableMenuItem((HWND) mp2, IDM_CHKDSK, writeable && !remote); 2248 WinEnableMenuItem((HWND) mp2, IDM_FORMAT, writeable && !remote); 2249 WinEnableMenuItem((HWND) mp2, IDM_OPTIMIZE, writeable && !remote); 2250 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONSMENU, !remote); 2251 2252 WinEnableMenuItem((HWND) mp2, IDM_DETACH, remote); 2256 WinEnableMenuItem((HWND) mp2, IDM_CHKDSK, writeable && local); 2257 WinEnableMenuItem((HWND) mp2, IDM_FORMAT, writeable && local); 2258 WinEnableMenuItem((HWND) mp2, IDM_OPTIMIZE, writeable && local); 2259 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONSMENU, local); 2260 WinEnableMenuItem((HWND) mp2, IDM_PARTITION, fMiniLVM); 2261 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONDF, fDFSee); 2262 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONLVMG, fLVMGui); 2263 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONFD, fFDisk); 2264 2265 WinEnableMenuItem((HWND) mp2, IDM_DETACH, !local); 2253 2266 2254 2267 WinEnableMenuItem((HWND) mp2, IDM_EJECT, removable); … … 2275 2288 CopyPresParams((HWND) mp2, hwndMainMenu); 2276 2289 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, FALSE); 2290 WinEnableMenuItem((HWND) mp2, IDM_PARTITION, fMiniLVM); 2291 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONDF, fDFSee); 2292 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONLVMG, fLVMGui); 2293 WinEnableMenuItem((HWND) mp2, IDM_PARTITIONFD, fFDisk); 2277 2294 break; 2278 2295 -
trunk/dll/treecnr.h
r1213 r1360 10 10 11 11 Change log 12 28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate 13 28 Dec 08 GKY Rework partition submenu to gray out unavailable items (check for existence of files) 14 and have no default choice. 12 15 13 16 ***********************************************************************/ … … 35 38 extern BOOL fFollowTree; 36 39 extern BOOL fTopDir; 40 extern BOOL fLVMGui; 41 extern BOOL fDFSee; 42 extern BOOL fFDisk; 43 extern BOOL fMiniLVM; 44 extern BOOL fLVM; 37 45 extern HPOINTER hptrDunno; 38 46 extern HWND hwndMainMenu;
Note:
See TracChangeset
for help on using the changeset viewer.
