Changeset 1522
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/filldir.c
r1498 r1522 85 85 15 Nov 09 GKY Optimize some check code 86 86 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 87 09 MAY 10 JBS Ticket 434 bug fixes, message box text improvements and parameter update improvements. 87 88 88 89 ***********************************************************************/ … … 1677 1678 DosReleaseMutexSem(hmtFillingTreeCnr); 1678 1679 1679 {1680 if (!fDontSuggestAgain) { 1680 1681 BYTE info; 1681 1682 BOOL includesyours = FALSE; 1682 1683 1683 1684 // 10 Jan 08 SHL fixme to understand fFirstTime - looks obsolete to me - probably mean didonce? 1684 if ( !fDontSuggestAgain && (*szSuggest || ~driveflags[1] & DRIVE_IGNORE && fFirstTime)) {1685 if (*szSuggest || ~driveflags[1] & DRIVE_IGNORE && fFirstTime) { 1685 1686 if (!DosDevConfig(&info, DEVINFO_FLOPPY) && info == 1) { 1686 1687 if (!*szSuggest) { … … 1694 1695 } 1695 1696 if (*szSuggest) { 1697 APIRET rc; 1696 1698 for (iDrvNum = 2; iDrvNum < 26; iDrvNum++) { 1697 1699 if (driveflags[iDrvNum] & DRIVE_IGNORE) { … … 1701 1703 } 1702 1704 strcat(szSuggest, " %*"); 1703 saymsg(MB_YESNOCANCEL | MB_ICONEXCLAMATION,1705 rc = saymsg(MB_YESNOCANCEL | MB_ICONEXCLAMATION, 1704 1706 hwndParent ? hwndParent : hwndCnr, 1705 1707 GetPString(IDS_SUGGESTTITLETEXT), … … 1707 1709 (includesyours) ? GetPString(IDS_SUGGEST2TEXT) : NullStr, 1708 1710 szSuggest); 1709 if (MBID_YES) { 1711 if (rc == MBID_YES) { 1712 HOBJECT hFM2Object; 1710 1713 char s[64]; 1711 1714 sprintf(s, "PARAMETERS=%s", szSuggest); 1712 WinCreateObject((CHAR *) WPProgram, "FM/2", s, (CHAR *) FM3Folder, CO_UPDATEIFEXISTS); 1713 WinCreateObject((CHAR *) WPProgram, 1714 "FM/2 Lite", s, (CHAR *) FM3Folder, CO_UPDATEIFEXISTS); 1715 WinCreateObject((CHAR *) WPProgram, 1716 "Archive Viewer/2", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1717 WinCreateObject((CHAR *) WPProgram, 1718 "Dir Sizes", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1719 WinCreateObject((CHAR *) WPProgram, 1720 "Visual Tree", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1721 WinCreateObject((CHAR *) WPProgram, 1722 "Visual Directory", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1723 WinCreateObject((CHAR *) WPProgram, 1724 "Global File Viewer", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1725 WinCreateObject((CHAR *) WPProgram, "Databar", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1726 } 1727 else if (MBID_CANCEL) { 1715 hFM2Object = WinQueryObject("<FM/2>"); 1716 if (hFM2Object) { 1717 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1718 } 1719 hFM2Object = WinQueryObject("<FM/2 LITE>"); 1720 if (hFM2Object) { 1721 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1722 } 1723 hFM2Object = WinQueryObject("<FM/2_AV/2>"); 1724 if (hFM2Object) { 1725 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1726 } 1727 hFM2Object = WinQueryObject("<FM/2_DIRSIZE>"); 1728 if (hFM2Object) { 1729 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1730 } 1731 hFM2Object = WinQueryObject("<FM/2_VTREE>"); 1732 if (hFM2Object) { 1733 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1734 } 1735 hFM2Object = WinQueryObject("<FM/2_VDIR>"); 1736 if (hFM2Object) { 1737 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1738 } 1739 hFM2Object = WinQueryObject("<FM/2_SEEALL>"); 1740 if (hFM2Object) { 1741 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1742 } 1743 hFM2Object = WinQueryObject("<FM/2_DATABAR>"); 1744 if (hFM2Object) { 1745 rc = WinSetObjectData(hFM2Object, (PSZ)s); 1746 } 1747 } 1748 else if (rc == MBID_CANCEL) { 1728 1749 fDontSuggestAgain = TRUE; 1729 PrfWriteProfileData(fmprof, appname, "DontSuggestAgain", &fDontSuggestAgain, sizeof(BOOL));1750 PrfWriteProfileData(fmprof, FM3Str, "DontSuggestAgain", &fDontSuggestAgain, sizeof(BOOL)); 1730 1751 } 1731 1752 } // if suggest 1732 } 1753 } // if !fDontSuggestAgain 1733 1754 didonce = TRUE; 1734 1755 } // FillTreeCnr -
trunk/dll/fm3res.rc
r1491 r1522 42 42 and rescans drive in tree container depending on container focus, greyed out 43 43 inappropriate menu context choices 44 12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini 44 12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini 45 45 15 Sep 09 SHL Update for Thread notes text changes 46 46 15 Sep 09 SHL Add rescan progress messages … … 54 54 submenu. 55 55 27 Dec 09 GKY Strings for command.c changes 56 09 MAY 10 JBS Ticket 434: Message box text improvements. 56 57 57 58 ***********************************************************************/ … … 3345 3346 IDS_DOSQAPPTYPEFAILEDTEXT2 "The program %s was not found on the PATH or is not an executible file type." 3346 3347 IDS_DOSQAPPTYPEFAILEDTEXT3 "The drive specified in %s is loked or invalid." 3347 3348 3348 3349 // Add strings that need to be combined by GetPString here 3349 3350 IDS_SUGGEST1TEXT1 "Based on this scan of your drives, I would like to suggest the following parameters for your FM/2 program object (each letter following the '/' character is a drive that probably should be excluded from viewing by FM/2 (see README), and the '%%*' on the" 3350 IDS_SUGGEST1TEXT2 " end enables drag-and-drop to the program object%s):\r\r""%s""\r\r Would you like me to automatically place this in the parameters field of the FM/2 program objects (note: existing Parameters will be replaced)? Cancel = don't show this message again."3351 IDS_SUGGEST1TEXT2 " end enables drag-and-drop to the program object%s):\r\r""%s""\r\rYes: Replace all relevant FM/2 object parameters with this string.\rNo: Parameters are left unchanged.\rCancel: Same as ""No"" plus don't show this message again.\r\r" 3351 3352 IDS_ARCHIVERBB2TEXT1 ";format for this archiver.bb2 file (each entry has 21 lines):\n;\n; 1st line: ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)\n; 2nd line: normal extension for archives (like ZIP, ARC, LZH; note no period)\n; 3rd line: offset into" 3352 3353 IDS_ARCHIVERBB2TEXT2 " file to signature\n; 4th line: list command\n; 5th line: extract command\n; 6th line: extract w/ directories command\n; 7th line: test archive command\n; 8th line: add/create command\n; 9th line: add/create w/ paths command\n;10th line: add/create" -
trunk/dll/init.c
r1505 r1522 96 96 one or more miniapp but not to FM/2 97 97 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 98 09 MAY 10 JBS Ticket 434: Make fDontSuggestAgain a "global" flag, not a per app flag 98 99 99 100 ***********************************************************************/ … … 1271 1272 return 0; //already complained 1272 1273 size = sizeof(BOOL); 1273 PrfQueryProfileData(fmprof, appname, "DontSuggestAgain", &fDontSuggestAgain, &size);1274 PrfQueryProfileData(fmprof, FM3Str, "DontSuggestAgain", &fDontSuggestAgain, &size); 1274 1275 size = sizeof(BOOL); 1275 1276 PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &size);
Note:
See TracChangeset
for help on using the changeset viewer.