Changeset 1482
- Timestamp:
- Dec 13, 2009, 8:59:47 PM (16 years ago)
- Location:
- trunk/dll
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1480 r1482 76 76 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 77 77 12 Mar 09 SHL Use common SearchContainer 78 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 79 profile calls for user settings that work and are setable in more than one 80 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 81 aren't user settable; realappname should be used for setting applicable to 82 one or more miniapp but not to FM/2 78 83 79 84 ***********************************************************************/ … … 175 180 #pragma data_seg(GLOBAL2) 176 181 CHAR lastextractpath[CCHMAXPATH]; 177 ULONGLONG ullDATFileSpaceNeeded ;182 ULONGLONG ullDATFileSpaceNeeded = 10000; 178 183 179 184 typedef struct { … … 3813 3818 3814 3819 WinQueryTaskSizePos(WinQueryAnchorBlock(hwndFrame), 0, &swp); 3815 if (PrfQueryProfileData(fmprof, 3816 appname, "AV2SizePos", &swpD, &size)) { 3820 if (PrfQueryProfileData(fmprof, appname, "AV2SizePos", &swpD, &size)) { 3817 3821 cxScreen = WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN); 3818 3822 cyScreen = WinQuerySysValue(HWND_DESKTOP, SV_CYSCREEN); -
trunk/dll/autoview.c
r1480 r1482 30 30 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 31 31 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory 32 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 33 profile calls for user settings that work and are setable in more than one 34 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 35 aren't user settable; realappname should be used for setting applicable to 36 one or more miniapp but not to FM/2 32 37 33 38 ***********************************************************************/ … … 770 775 if (WinTrackRect(hwnd, hps, &track)) { 771 776 AutoviewHeight = track.rclTrack.yTop - track.rclTrack.yBottom; 772 PrfWriteProfileData(fmprof, 773 FM3Str, 774 "AutoviewHeight", 777 PrfWriteProfileData(fmprof, appname, "AutoviewHeight", 775 778 &AutoviewHeight, sizeof(ULONG)); 776 779 WinSendMsg(WinQueryWindow(hwnd, QW_PARENT), -
trunk/dll/cmdline.c
r1480 r1482 21 21 24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file 22 22 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 23 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 24 profile calls for user settings that work and are setable in more than one 25 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 26 aren't user settable; realappname should be used for setting applicable to 27 one or more miniapp but not to FM/2 23 28 24 29 ***********************************************************************/ … … 559 564 fSaveBigCmds = (fSaveBigCmds) ? FALSE : TRUE; 560 565 WinCheckButton(hwnd, EXEC_SAVECMD, fSaveBigCmds); 561 PrfWriteProfileData(fmprof, 562 appname, 563 "SaveBigCmds", &fSaveBigCmds, sizeof(BOOL)); 566 PrfWriteProfileData(fmprof, appname, "SaveBigCmds", &fSaveBigCmds, sizeof(BOOL)); 564 567 } 565 568 break; -
trunk/dll/datamin.c
r1480 r1482 29 29 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 30 30 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory 31 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 32 profile calls for user settings that work and are setable in more than one 33 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 34 aren't user settable; realappname should be used for setting applicable to 35 one or more miniapp but not to FM/2 31 36 32 37 ***********************************************************************/ … … 491 496 case MINI_BORING: 492 497 fDullMin = (fDullMin) ? FALSE : TRUE; 493 PrfWriteProfileData(fmprof, 494 FM3Str, "DullDatabar", &fDullMin, sizeof(BOOL)); 498 PrfWriteProfileData(fmprof, appname, "DullDatabar", &fDullMin, sizeof(BOOL)); 495 499 if (G_hevDataMin != NULLHANDLE) { 496 500 rc = DosPostEventSem(G_hevDataMin); … … 507 511 if (SHORT1FROMMP(mp1) == MINI_SHOW) { 508 512 fDataShowDrives = (fDataShowDrives) ? FALSE : TRUE; 509 PrfWriteProfileData(fmprof, 510 appname, 511 "DataShowDrives", &fDataShowDrives, sizeof(BOOL)); 513 PrfWriteProfileData(fmprof, appname, "DataShowDrives", 514 &fDataShowDrives, sizeof(BOOL)); 512 515 } 513 516 else { 514 517 fDataInclRemote = (fDataInclRemote) ? FALSE : TRUE; 515 PrfWriteProfileData(fmprof, 516 appname, 517 "DataInclRemote", &fDataInclRemote, sizeof(BOOL)); 518 PrfWriteProfileData(fmprof, appname, "DataInclRemote", 519 &fDataInclRemote, sizeof(BOOL)); 518 520 } 519 521 { … … 535 537 case MINI_FLOAT: 536 538 fDataToFore = (fDataToFore) ? FALSE : TRUE; 537 PrfWriteProfileData(fmprof, 538 appname, "DataToFore", &fDataToFore, sizeof(BOOL)); 539 PrfWriteProfileData(fmprof, appname, "DataToFore", &fDataToFore, sizeof(BOOL)); 539 540 if (!hwndMain) { 540 541 -
trunk/dll/dircnrs.c
r1459 r1482 69 69 14 Sep 09 SHL Drop experimental code 70 70 15 Sep 09 SHL Show rescan progress while filling container 71 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 72 profile calls for user settings that work and are setable in more than one 73 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 74 aren't user settable; realappname should be used for setting applicable to 75 one or more miniapp but not to FM/2 71 76 72 77 ***********************************************************************/ … … 1557 1562 ULONG size = sizeof(ULONG); 1558 1563 1559 PrfQueryProfileData(fmprof, 1560 appname, 1561 "DirflWindowAttr", 1564 PrfQueryProfileData(fmprof, appname, "DirflWindowAttr", 1562 1565 (PVOID) & cnri.flWindowAttr, &size); 1563 1566 size = sizeof(MASK); 1564 1567 if (!*dcd->mask.szMask && 1565 1568 !dcd->mask.attrFile && !dcd->mask.antiattr) { 1566 if (PrfQueryProfileSize(fmprof, 1567 appname, "DirFilter", &size) && size) { 1568 PrfQueryProfileData(fmprof, 1569 appname, "DirFilter", &dcd->mask, &size); 1569 if (PrfQueryProfileSize(fmprof, appname, "DirFilter", &size) && size) { 1570 PrfQueryProfileData(fmprof, appname, "DirFilter", &dcd->mask, &size); 1570 1571 SetMask(dcd->mask.szMask, &dcd->mask); 1571 1572 } … … 3489 3490 WinQueryWindowPos(dcd->hwndFrame, &swp); 3490 3491 if (!(swp.fl & (SWP_HIDE | SWP_MINIMIZE | SWP_MAXIMIZE))) 3491 PrfWriteProfileData(fmprof, 3492 appname, "VDirSizePos", &swp, sizeof(swp)); 3492 PrfWriteProfileData(fmprof, appname, "VDirSizePos", &swp, sizeof(swp)); 3493 3493 } 3494 3494 break; … … 3811 3811 3812 3812 WinQueryTaskSizePos(WinQueryAnchorBlock(hwndFrame), 0, &swp); 3813 if (PrfQueryProfileData(fmprof, 3814 appname, "VDirSizePos", &swpD, &size)) { 3813 if (PrfQueryProfileData(fmprof, appname, "VDirSizePos", &swpD, &size)) { 3815 3814 cxScreen = WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN); 3816 3815 cyScreen = WinQuerySysValue(HWND_DESKTOP, SV_CYSCREEN); -
trunk/dll/dirsize.c
r1438 r1482 46 46 08 Mar 09 GKY Additional strings move to PCSZs in init.c 47 47 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 48 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 49 profile calls for user settings that work and are setable in more than one 50 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 51 aren't user settable; realappname should be used for setting applicable to 52 one or more miniapp but not to FM/2 48 53 49 54 ***********************************************************************/ … … 900 905 strcpy(s, PCSZ_ICON); 901 906 PrfQueryProfileData(fmprof, appname, "DirflWindowAttr", 902 (PVOID) & 907 (PVOID) &flWindowAttr, &size); 903 908 if (flWindowAttr & CV_DETAIL) { 904 909 if (IsRoot(szFileName)) -
trunk/dll/flesh.c
r1471 r1482 25 25 to prevent duplicate directory names in tree following a copy before initial scan. 26 26 08 Mar 09 GKY Additional strings move to PCSZs in init.c 27 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 28 profile calls for user settings that work and are setable in more than one 29 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 30 aren't user settable; realappname should be used for setting applicable to 31 one or more miniapp but not to FM/2 27 32 28 33 ***********************************************************************/ … … 266 271 } 267 272 268 #define DDEPTH 16273 #define DDEPTH 64 269 274 270 275 /** … … 290 295 APIRET rc, prc; 291 296 BOOL isadir = FALSE, isremote = FALSE, includefiles = fFilesInTree; 292 ULONG ddepth = 3;297 ULONG ddepth = DDEPTH; 293 298 ULONG drvNum; 294 299 ULONG flags; … … 315 320 return FALSE; // Not a directory 316 321 317 //if (isalpha(*str) && // redundant check GKY 11/24/08318 322 if (flags & DRIVE_INCLUDEFILES) 319 323 includefiles = TRUE; … … 323 327 324 328 if (isremote) { 325 ddepth = 14;326 329 if (fRemoteBug) { 327 330 if (brokenlan) { … … 335 338 ddepth = 14; 336 339 337 if (! isremote || !fRemoteBug)338 ulM = (ddepth < 16) ? ddepth : 1;340 if (!fRemoteBug) 341 ulM = (ddepth <= DDEPTH) ? ddepth : 1; 339 342 340 343 nm = ulM; … … 367 370 GetPString(IDS_LANERROR2TEXT)); 368 371 NoBrokenNotify = 255; 369 PrfWriteProfileData(fmprof, 370 FM3Str, 371 "NoBrokenNotify", 372 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 372 373 &NoBrokenNotify, sizeof(ULONG)); 373 374 } … … 375 376 else { 376 377 NoBrokenNotify--; 377 PrfWriteProfileData(fmprof, 378 FM3Str, 379 "NoBrokenNotify", 378 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 380 379 &NoBrokenNotify, sizeof(ULONG)); 381 380 } … … 393 392 nm = 1; 394 393 DosError(FERR_DISABLEHARDERR); 395 } while (++total < ddepth && !(rc = (DosFindNext(hDir, 396 &ffb, 397 sizeof(FILEFINDBUF3), 398 &nm)))); 399 DosFindClose(hDir); 394 } 395 while (++total < ddepth && !(rc = (DosFindNext(hDir, 396 &ffb, 397 sizeof(FILEFINDBUF3), 398 &nm)))); 399 DosFindClose(hDir); 400 400 // If drive B: 401 401 if (toupper(*pciParent->pszFileName) > 'B' && … … 439 439 GetPString(IDS_FSDERROR2TEXT)); 440 440 NoBrokenNotify = 255; 441 PrfWriteProfileData(fmprof, 442 FM3Str, 443 "NoBrokenNotify", 441 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 444 442 &NoBrokenNotify, sizeof(ULONG)); 445 443 } … … 447 445 else { 448 446 NoBrokenNotify--; 449 PrfWriteProfileData(fmprof, 450 FM3Str, 451 "NoBrokenNotify", 447 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 452 448 &NoBrokenNotify, sizeof(ULONG)); 453 449 } -
trunk/dll/fm2cmd.c
r1438 r1482 11 11 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 12 12 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 13 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 14 profile calls for user settings that work and are setable in more than one 15 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 16 aren't user settable; realappname should be used for setting applicable to 17 one or more miniapp but not to FM/2 13 18 14 19 ***********************************************************************/ … … 127 132 else 128 133 fKeepCmdLine = TRUE; 129 PrfWriteProfileData(fmprof, FM3Str, "KeepCmdLine", &fKeepCmdLine,134 PrfWriteProfileData(fmprof, appname, "KeepCmdLine", &fKeepCmdLine, 130 135 sizeof(BOOL)); 131 136 ret = TRUE; … … 137 142 else 138 143 fSaveMiniCmds = TRUE; 139 PrfWriteProfileData(fmprof, FM3Str, "SaveMiniCmds", &fSaveMiniCmds,144 PrfWriteProfileData(fmprof, appname, "SaveMiniCmds", &fSaveMiniCmds, 140 145 sizeof(BOOL)); 141 146 ret = TRUE; -
trunk/dll/init.c
r1480 r1482 90 90 22 Nov 09 GKY Fix FindSwapperDat so the check for large file support actually occurs if the 91 91 fall back to config.sys is used to find it; use bstripcr to streamline code. 92 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 93 profile calls for user settings that work and are setable in more than one 94 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 95 aren't user settable; realappname should be used for setting applicable to 96 one or more miniapp but not to FM/2 92 97 93 98 ***********************************************************************/ … … 362 367 PCSZ WC_DATABAR = "WC_DATABAR"; 363 368 CHAR profile[CCHMAXPATH]; 364 ULONGLONG ullTmpSpaceNeeded ;369 ULONGLONG ullTmpSpaceNeeded = 5120000; 365 370 366 371 BOOL CheckFileHeader(CHAR *filespec, CHAR *signature, LONG offset); … … 624 629 CHAR dllfile[CCHMAXPATH]; 625 630 ULONG size; 631 BOOL fSeparateParmsApp; 626 632 627 633 strcpy(dllfile, "FM3RES"); … … 766 772 // Check free space on TMP and FM2 Save drives 767 773 { 768 ullTmpSpaceNeeded = 5120000;774 //ullTmpSpaceNeeded = 5120000; 769 775 if (pTmpDir && CheckDriveSpaceAvail(pTmpDir, ullTmpSpaceNeeded, 0) == 1) { 770 776 if (CheckDriveSpaceAvail(pFM2SaveDirectory, ullTmpSpaceNeeded, 0) == 0){ … … 903 909 904 910 size = sizeof(BOOL); 905 PrfQueryProfileData(fmprof, 906 FM3Str, 907 "SeparateParms", 908 &fSeparateParms,909 & size);910 if (!fSeparateParms )911 PrfQueryProfileData(fmprof, FM3Str, "SeparateParms", 912 &fSeparateParms, &size); 913 size = sizeof(BOOL); 914 PrfQueryProfileData(fmprof, appname, "SeparateParms", 915 &fSeparateParmsApp, &size); 916 if (!fSeparateParms && !fSeparateParmsApp) 911 917 strcpy(appname, FM3Str); 912 918 … … 1116 1122 fAutoTile = fConfirmDelete = fLoadSubject = fUnHilite = 1117 1123 fLoadLongnames = fToolbar = fSaveState = fGuessType = fToolbarHelp = 1118 fAutoAddDirs = fUseNewViewer = fDataToFore = fDataShowDrives = 1124 fAutoAddDirs = fUseNewViewer = fDataToFore = fDataShowDrives = fDataMin = 1119 1125 fSplitStatus = fDragndropDlg = fQuickArcFind = fKeepCmdLine = 1120 1126 fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree = … … 1124 1130 fEjectRemovableScan = fRScanLocal = TRUE; 1125 1131 ulCnrType = CCS_EXTENDSEL; 1126 FilesToGet = FILESTOGET_M IN;1132 FilesToGet = FILESTOGET_MAX; 1127 1133 MaxComLineStrg = MAXCOMLINESTRGDEFAULT; 1128 1134 AutoviewHeight = 48; … … 1136 1142 prnspacing = 1; 1137 1143 prntabspaces = 8; 1138 CollectorsortFlags = sortFlags = SORT_ DIRSFIRST;1139 ullDATFileSpaceNeeded = 10000;1144 CollectorsortFlags = sortFlags = SORT_FILENAME | SORT_DIRSFIRST; 1145 //ullDATFileSpaceNeeded = 10000; 1140 1146 1141 1147 //Get default Country info … … 1200 1206 1201 1207 // load preferences from profile (INI) file 1208 /** 1209 * Separate paramenters -- Please note that appname should be used in 1210 * profile calls for user settings that work and are setable in more than one 1211 * miniapp; FM3Str should be used for setting only relavent to FM/2 or that 1212 * aren't user settable; realappname should be used for setting applicable to 1213 * one or more miniapp but not to FM/2 1214 */ 1202 1215 size = sizeof(ULONG); 1203 1216 PrfQueryProfileData(fmprof, appname, "MaxComLineStrg", &MaxComLineStrg, &size); … … 1267 1280 PrfQueryProfileData(fmprof, appname, "ConfirmTarget", &fConfirmTarget, &size); 1268 1281 size = sizeof(BOOL); 1269 PrfQueryProfileData(fmprof, FM3Str, "CustomFileDlg", &fCustomFileDlg, &size);1270 size = sizeof(BOOL); 1271 PrfQueryProfileData(fmprof, FM3Str, "SaveMiniCmds", &fSaveMiniCmds, &size);1282 PrfQueryProfileData(fmprof, appname, "CustomFileDlg", &fCustomFileDlg, &size); 1283 size = sizeof(BOOL); 1284 PrfQueryProfileData(fmprof, appname, "SaveMiniCmds", &fSaveMiniCmds, &size); 1272 1285 size = sizeof(BOOL); 1273 1286 PrfQueryProfileData(fmprof, appname, "SaveBigCmds", &fSaveBigCmds, &size); … … 1275 1288 PrfQueryProfileData(fmprof, appname, "NoFoldMenu", &fNoFoldMenu, &size); 1276 1289 size = sizeof(BOOL); 1277 PrfQueryProfileData(fmprof, FM3Str, "ThreadNotes", &fThreadNotes, &size);1290 PrfQueryProfileData(fmprof, appname, "ThreadNotes", &fThreadNotes, &size); 1278 1291 size = sizeof(BOOL); 1279 1292 PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &size); … … 1303 1316 PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &size); 1304 1317 size = sizeof(BOOL); 1305 PrfQueryProfileData(fmprof, FM3Str, "NoDead", &fNoDead, &size);1306 size = sizeof(BOOL); 1307 PrfQueryProfileData(fmprof, FM3Str, "NoFinger", &fNoFinger, &size);1308 size = sizeof(BOOL); 1309 PrfQueryProfileData(fmprof, FM3Str, "AlertBeepOff", &fAlertBeepOff, &size);1310 size = sizeof(BOOL); 1311 PrfQueryProfileData(fmprof, FM3Str, "ErrorBeepOff", &fErrorBeepOff, &size);1318 PrfQueryProfileData(fmprof, appname, "NoDead", &fNoDead, &size); 1319 size = sizeof(BOOL); 1320 PrfQueryProfileData(fmprof, appname, "NoFinger", &fNoFinger, &size); 1321 size = sizeof(BOOL); 1322 PrfQueryProfileData(fmprof, appname, "AlertBeepOff", &fAlertBeepOff, &size); 1323 size = sizeof(BOOL); 1324 PrfQueryProfileData(fmprof, appname, "ErrorBeepOff", &fErrorBeepOff, &size); 1312 1325 size = sizeof(BOOL); 1313 1326 PrfQueryProfileData(fmprof, appname, "SwitchTree", &fSwitchTree, &size); … … 1321 1334 PrfQueryProfileData(fmprof, appname, "FilesInTree", &fFilesInTree, &size); 1322 1335 size = sizeof(BOOL); 1323 PrfQueryProfileData(fmprof, FM3Str, "TopDir", &fTopDir, &size);1324 size = sizeof(BOOL); 1325 PrfQueryProfileData(fmprof, FM3Str, "LookInDir", &fLookInDir, &size);1336 PrfQueryProfileData(fmprof, appname, "TopDir", &fTopDir, &size); 1337 size = sizeof(BOOL); 1338 PrfQueryProfileData(fmprof, appname, "LookInDir", &fLookInDir, &size); 1326 1339 PrfQueryProfileString(fmprof, appname, "DefArc", NULL, szDefArc, sizeof(szDefArc)); 1327 1340 size = sizeof(ULONG); 1328 PrfQueryProfileData(fmprof, FM3Str, "AutoviewHeight",1341 PrfQueryProfileData(fmprof, appname, "AutoviewHeight", 1329 1342 &AutoviewHeight, &size); 1330 1343 size = sizeof(BOOL); 1331 PrfQueryProfileData(fmprof, FM3Str, "KeepCmdLine", &fKeepCmdLine, &size);1344 PrfQueryProfileData(fmprof, appname, "KeepCmdLine", &fKeepCmdLine, &size); 1332 1345 if (strcmp(realappname, "FM/4")) { 1333 1346 size = sizeof(BOOL); … … 1336 1349 PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &size); 1337 1350 } 1338 else1339 fDrivebar = fMoreButtons = TRUE;1340 1351 size = sizeof(BOOL); 1341 1352 PrfQueryProfileData(fmprof, appname, "NoSearch", &fNoSearch, &size); … … 1349 1360 pszTreeEnvVarList, MaxComLineStrg); 1350 1361 size = sizeof(BOOL); 1351 PrfQueryProfileData(fmprof, FM3Str, "ShowDriveOnly", &fShowDriveOnly, &size);1352 size = sizeof(BOOL); 1353 PrfQueryProfileData(fmprof, FM3Str, "ShowFSTypeInTree", &fShowFSTypeInTree, &size);1354 size = sizeof(BOOL); 1355 PrfQueryProfileData(fmprof, FM3Str, "ShowDriveLabelInTree", &fShowDriveLabelInTree, &size);1362 PrfQueryProfileData(fmprof, appname, "ShowDriveOnly", &fShowDriveOnly, &size); 1363 size = sizeof(BOOL); 1364 PrfQueryProfileData(fmprof, appname, "ShowFSTypeInTree", &fShowFSTypeInTree, &size); 1365 size = sizeof(BOOL); 1366 PrfQueryProfileData(fmprof, appname, "ShowDriveLabelInTree", &fShowDriveLabelInTree, &size); 1356 1367 if (!fShowDriveOnly && !fShowFSTypeInTree && !fShowDriveLabelInTree) 1357 1368 fShowDriveOnly = TRUE; … … 1359 1370 PrfQueryProfileData(fmprof, appname, "LeaveTree", &fLeaveTree, &size); 1360 1371 size = sizeof(BOOL); 1361 PrfQueryProfileData(fmprof, FM3Str, "Comments", &fComments, &size);1372 PrfQueryProfileData(fmprof, appname, "Comments", &fComments, &size); 1362 1373 size = sizeof(ULONG); 1363 1374 PrfQueryProfileData(fmprof, appname, "WS_ANIMATE", &fwsAnimate, &size); … … 1367 1378 PrfQueryProfileData(fmprof, appname, "SelectedAlways", &fSelectedAlways, &size); 1368 1379 size = sizeof(BOOL); 1369 PrfQueryProfileData(fmprof, FM3Str, "ToolbarHelp", &fToolbarHelp, &size);1370 size = sizeof(BOOL); 1371 PrfQueryProfileData(fmprof, FM3Str, "OtherHelp", &fOtherHelp, &size);1372 size = sizeof(BOOL); 1373 PrfQueryProfileData(fmprof, FM3Str, "DrivebarHelp", &fDrivebarHelp, &size);1380 PrfQueryProfileData(fmprof, appname, "ToolbarHelp", &fToolbarHelp, &size); 1381 size = sizeof(BOOL); 1382 PrfQueryProfileData(fmprof, appname, "OtherHelp", &fOtherHelp, &size); 1383 size = sizeof(BOOL); 1384 PrfQueryProfileData(fmprof, appname, "DrivebarHelp", &fDrivebarHelp, &size); 1374 1385 size = sizeof(BOOL); 1375 1386 PrfQueryProfileData(fmprof, appname, "AutoAddDirs", &fAutoAddDirs, &size); … … 1395 1406 PrfQueryProfileData(fmprof, FM3Str, "UseQSysState", &fUseQSysState, &size); 1396 1407 size = sizeof(BOOL); 1397 PrfQueryProfileData(fmprof, FM3Str, "DataMin", &fDataMin, &size);1408 PrfQueryProfileData(fmprof, appname, "DataMin", &fDataMin, &size); 1398 1409 size = sizeof(BOOL); 1399 1410 PrfQueryProfileData(fmprof, appname, "DataToFore", &fDataToFore, &size); … … 1407 1418 PrfQueryProfileData(fmprof, appname, "FolderAfterExtract", &fFolderAfterExtract, &size); 1408 1419 size = sizeof(BOOL); 1409 PrfQueryProfileData(fmprof, FM3Str, "DullDatabar", &fDullMin, &size);1420 PrfQueryProfileData(fmprof, appname, "DullDatabar", &fDullMin, &size); 1410 1421 size = sizeof(BOOL); 1411 1422 PrfQueryProfileData(fmprof, appname, "BlueLED", &fBlueLED, &size); … … 1438 1449 PrfQueryProfileData(fmprof, appname, "ForceLower", &fForceLower, &size); 1439 1450 size = sizeof(BOOL); 1440 PrfQueryProfileData(fmprof, FM3Str, "TextTools", &fTextTools, &size);1441 size = sizeof(BOOL); 1442 PrfQueryProfileData(fmprof, FM3Str, "ToolTitles", &fToolTitles, &size);1451 PrfQueryProfileData(fmprof, appname, "TextTools", &fTextTools, &size); 1452 size = sizeof(BOOL); 1453 PrfQueryProfileData(fmprof, appname, "ToolTitles", &fToolTitles, &size); 1443 1454 size = sizeof(BOOL); 1444 1455 PrfQueryProfileData(fmprof, appname, "DoubleClickOpens", &fDCOpens, &size); … … 1456 1467 PrfQueryProfileString(fmprof, appname, "ExtractPath", NULL, extractpath, sizeof(extractpath)); 1457 1468 size = sizeof(BOOL); 1458 PrfQueryProfileData(fmprof, FM3Str, "FileNamePathCnr", &fFileNameCnrPath, &size);1469 PrfQueryProfileData(fmprof, appname, "FileNamePathCnr", &fFileNameCnrPath, &size); 1459 1470 PrfQueryProfileString(fmprof, appname, "Printer", "PRN", printer, sizeof(printer)); 1460 1471 PrfQueryProfileString(fmprof, appname, "DirCompare", NULL, dircompare, MaxComLineStrg); … … 1503 1514 PrfQueryProfileData(fmprof, appname, "ArcStuffVisible", &fArcStuffVisible, &size); 1504 1515 size = sizeof(BOOL); 1505 PrfQueryProfileData(fmprof, FM3Str, "NoTreeGap", &fNoTreeGap, &size);1516 PrfQueryProfileData(fmprof, appname, "NoTreeGap", &fNoTreeGap, &size); 1506 1517 size = sizeof(BOOL); 1507 1518 PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size); … … 1533 1544 PrfQueryProfileData(fmprof, appname, "QuickArcFind", &fQuickArcFind, &size); 1534 1545 size = sizeof(BOOL); 1535 PrfQueryProfileData(fmprof, FM3Str, "NoRemovableScan", &fNoRemovableScan, &size);1546 PrfQueryProfileData(fmprof, appname, "NoRemovableScan", &fNoRemovableScan, &size); 1536 1547 size = sizeof(ULONG); 1537 1548 PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size); … … 1545 1556 FilesToGet = FILESTOGET_MAX; 1546 1557 size = sizeof(BOOL); 1547 PrfQueryProfileData(fmprof, FM3Str, "AutoView", &fAutoView, &size);1548 size = sizeof(BOOL); 1549 PrfQueryProfileData(fmprof, FM3Str, "FM2Deletes", &fFM2Deletes, &size);1550 size = sizeof(BOOL); 1551 PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &size);1558 PrfQueryProfileData(fmprof, appname, "AutoView", &fAutoView, &size); 1559 size = sizeof(BOOL); 1560 PrfQueryProfileData(fmprof, appname, "FM2Deletes", &fFM2Deletes, &size); 1561 size = sizeof(BOOL); 1562 PrfQueryProfileData(fmprof, appname, "TrashCan", &fTrashCan, &size); 1552 1563 1553 1564 LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE); -
trunk/dll/ipf/notebook.ipf
r1441 r1482 17 17 .* 12 Mar 09 SHL Update container search description 18 18 .* 13 Jul 09 SHL Rework scanning page help text 19 .* 13 Dec 09 GKY Fixed separate paramenters. 19 20 .* 20 21 .*********************************************************************** … … 110 111 object starting with the depressed letter and the object is selected. 111 112 Note that you override the configured value of this feature by 112 pressing the &ShiftKey. 113 key along with the letter. 113 pressing the &ShiftKey.key along with the letter. 114 114 Extended container searching allows you to enter multiple characters which 115 are searched for at the start of filenames. 116 The record is made the current (cursored) object. 115 are searched for at the start of filenames. The record is made the current (cursored) object. 117 116 The leading backslash can be omitted from directory names where there is no ambiguity. 118 If the record matches all the letters typed exactly, it is also 117 If the record matches all the letters typed exactly, it is also selected. 119 118 A pause of more than about two seconds in typing resets the search string. 120 119 The Escape key clears the search string. … … 575 574 :p. 576 575 The :hp6.Separate parameters:ehp6. toggle tells FM/2 whether to use 577 separate parameters for many of the mini-apps (like VDIR and VTREE). If 578 checked, you'll have to set up each application separately, but 576 separate parameters for many of the mini-apps (like FM/2 lite, VDIR and VTREE). 577 If you select it with FM/2 running it applies to all the mini-apps. However, 578 if you select it with a mini-app running it will only effect that app. If 579 checked, you'll have to set up the effected applications separately, but 579 580 configurations can be different than that in the monolithic FM/2 580 581 application itself. If you don't understand that, let's try this&colon. … … 631 632 display the thread LED as blue (off) and yellow (on) LEDs rather than 632 633 the default red (off) and green (on) LEDs. The change will not show up 633 on the application window until you close and then reopen FM/2. 634 on the application window until you close and then reopen FM/2. The LED 635 blinks during background processing indicating that the background process 636 is still active. 634 637 :p. 635 638 The :hp6.Show Target in Drivebar:ehp6. toggle, if on, tells FM/2 to … … 875 878 give you some quick choices about the general way you'd like FM/2 to 876 879 look and behave, and allow you to tweak specifics later as you get some 877 experience with the program. 880 experience with the program. Please note that none of these do anything to 881 strings (i.e. the viewer program paths, antivirus path, etc) you may have 882 already entered. 878 883 :p. 879 884 :hp6.Default:ehp6. restores FM/2 to its default state, for the most … … 914 919 mileage may vary. 915 920 :p. 921 :hp6.Gregg's way:ehp6. sets FM/2 up the way the one of the current maintainers 922 likes it. Your mileage may vary but it give you a starting point based on 923 a long time user's settings. I only use FM/2 (except when testing) so you 924 may want to avoid this if you generally use the other miniapps (vtree, FM/2 lite, etc). 925 :p. 916 926 You might also want to take a look at the :link reftype=hd 917 927 res=100000."FM/2 Lite":elink. object in the FM/2 folder. -
trunk/dll/killproc.c
r1480 r1482 22 22 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 23 23 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory 24 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 25 profile calls for user settings that work and are setable in more than one 26 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 27 aren't user settable; realappname should be used for setting applicable to 28 one or more miniapp but not to FM/2 24 29 25 30 ***********************************************************************/ … … 383 388 case KILL_CHECKBOX: 384 389 fUseQProcStat = WinQueryButtonCheckstate(hwnd, KILL_CHECKBOX); 385 PrfWriteProfileData(fmprof, 386 FM3Str, 387 "UseQProcStat", &fUseQProcStat, sizeof(BOOL)); 390 PrfWriteProfileData(fmprof, FM3Str, "UseQProcStat", 391 &fUseQProcStat, sizeof(BOOL)); 388 392 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID); 389 393 if (WinQueryButtonCheckstate(hwnd, KILL_CHECKBOX)) { … … 396 400 case KILL2_CHECKBOX: 397 401 fUseQSysState = WinQueryButtonCheckstate(hwnd, KILL2_CHECKBOX); 398 PrfWriteProfileData(fmprof, 399 FM3Str, 400 "UseQSysState", &fUseQSysState, sizeof(BOOL)); 402 PrfWriteProfileData(fmprof, FM3Str, "UseQSysState", 403 &fUseQSysState, sizeof(BOOL)); 401 404 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID); 402 405 if (WinQueryButtonCheckstate(hwnd, KILL2_CHECKBOX)) { -
trunk/dll/mainwnd.c
r1471 r1482 99 99 12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini 100 100 14 Sep 09 SHL Blink thread LEDs when workers busy 101 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 102 profile calls for user settings that work and are setable in more than one 103 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 104 aren't user settable; realappname should be used for setting applicable to 105 one or more miniapp but not to FM/2 101 106 102 107 ***********************************************************************/ … … 3231 3236 // Delete saved state if internally saved state 3232 3237 fDeleteState = strcmp(pszStateName, PCSZ_FM2TEMPTEXT) == 0; 3233 3234 //size = (ULONG)0;3235 3238 sprintf(szKey, "%sToolbar", szPrefix); 3236 //if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size)3237 3239 { 3238 3240 if (fToolsChanged) … … 3243 3245 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); 3244 3246 } 3245 //size = (ULONG)0;3246 3247 sprintf(szKey, "%sTargetDir", szPrefix); 3247 //if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size)3248 3248 { 3249 3249 PrfQueryProfileString(fmprof, FM3Str, szKey, NULL, targetdir, sizeof(targetdir)); … … 3253 3253 size = sizeof(SWP); 3254 3254 sprintf(szKey, "%sMySizeLastTime", szPrefix); 3255 if (!PrfQueryProfileData(fmprof, 3256 FM3Str, 3257 szKey, 3258 (PVOID) &swpO, 3259 &size) || 3255 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swpO, &size) || 3260 3256 size != sizeof(SWP) || !swp.cx || !swp.cy) 3261 3257 { … … 3303 3299 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3304 3300 size = sizeof(ULONG); 3305 if (PrfQueryProfileData(fmprof, 3306 FM3Str, szKey, (PVOID) &numsaves, &size)) { 3301 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) { 3307 3302 if (fDeleteState) 3308 3303 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); … … 3368 3363 strcpy(eos, "Sort"); 3369 3364 size = sizeof(INT); 3370 if (PrfQueryProfileData(fmprof, 3371 FM3Str, 3372 szKey, 3373 (PVOID) &dcd->sortFlags, 3365 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->sortFlags, 3374 3366 &size)) { 3375 3367 if (!dcd->sortFlags) … … 3378 3370 size = sizeof(MASK); 3379 3371 strcpy(eos, "Filter"); 3380 if (PrfQueryProfileData(fmprof, 3381 FM3Str, 3382 szKey, 3383 (PVOID) &dcd->mask, &size)) { 3372 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->mask, &size)) { 3384 3373 if (*dcd->mask.szMask) 3385 3374 WinSendMsg(WinWindowFromID(hwndC, DIR_CNR), … … 3390 3379 if (!noview) { 3391 3380 size = sizeof(ULONG); 3392 if (PrfQueryProfileData(fmprof, 3393 FM3Str, 3394 szKey, 3395 (PVOID) &dcd->flWindowAttr, 3381 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->flWindowAttr, 3396 3382 &size)) { 3397 3383 … … 4732 4718 sprintf(szKey, "%s.NumDirsLastTime", szStateName); 4733 4719 size = sizeof(ULONG); 4734 if (!PrfQueryProfileData(fmprof, 4735 FM3Str, 4736 szKey, 4737 (PVOID)&numsaves, 4738 &size)) { 4720 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) { 4739 4721 saymsg(MB_ENTER | MB_ICONASTERISK, hwnd, 4740 4722 GetPString(IDS_WARNINGTEXT), … … 5725 5707 5726 5708 size = sizeof(BOOL); 5727 if (PrfQueryProfileData(fmprof, 5728 FM3Str, 5729 "MenuInvisible", &temp, &size) && size && temp) 5709 if (PrfQueryProfileData(fmprof, FM3Str, "MenuInvisible", &temp, &size) && 5710 size && temp) 5730 5711 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_HIDEMENU, 0), MPVOID); 5731 5712 size = sizeof(BOOL); 5732 if (PrfQueryProfileData(fmprof, 5733 FM3Str, "FreeTree", &temp, &size) &&size && temp)5713 if (PrfQueryProfileData(fmprof, FM3Str, "FreeTree", &temp, &size) && 5714 size && temp) 5734 5715 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); 5735 5716 size = sizeof(BOOL); 5736 if (PrfQueryProfileData(fmprof, 5737 FM3Str, 5738 "AutoTile", &temp, &size) && size && !temp) 5717 if (PrfQueryProfileData(fmprof, FM3Str, "AutoTile", &temp, &size) && 5718 size && !temp) 5739 5719 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_AUTOTILE, 0), MPVOID); 5740 5720 size = sizeof(BOOL); 5741 if (PrfQueryProfileData(fmprof, 5742 FM3Str, "Toolbar", &temp, &size) && size && !temp) 5721 if (PrfQueryProfileData(fmprof, appname, "Toolbar", &temp, &size) && size && !temp) 5743 5722 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_TOOLBAR, 0), MPVOID); 5744 5723 -
trunk/dll/mainwnd2.c
r1457 r1482 33 33 22 Jul 09 GKY Code changes to use semaphores to serialize drive scanning 34 34 12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini 35 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 36 profile calls for user settings that work and are setable in more than one 37 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 38 aren't user settable; realappname should be used for setting applicable to 39 one or more miniapp but not to FM/2 35 40 36 41 ***********************************************************************/ … … 851 856 852 857 size = sizeof(BOOL); 853 PrfQueryProfileData(fmprof, 854 realappname, "FM/4 TreeUp", (PVOID) &dummy, &size);858 PrfQueryProfileData(fmprof, realappname, "FM/4 TreeUp", 859 (PVOID) &dummy, &size); 855 860 if (dummy) { 856 861 size = sizeof(ULONG); 857 862 hwndTree = StartTreeCnr(hwnd, 3); 858 PrfQueryProfileData(fmprof, 859 realappname, 860 "FM/4 TreeWidth", (PVOID) & TreeWidth, &size); 863 PrfQueryProfileData(fmprof, realappname, "FM/4 TreeWidth", 864 (PVOID) &TreeWidth, &size); 861 865 TreeWidth = max(TreeWidth, 80); 862 866 } 863 867 size = sizeof(BOOL); 864 if (PrfQueryProfileData(fmprof, 865 FM3Str, 866 "Toolbar", &dummy, &size) && size && !dummy) 868 if (PrfQueryProfileData(fmprof, appname, "Toolbar", &dummy, &size) && 869 size && !dummy) 867 870 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_TOOLBAR, 0), MPVOID); 868 871 869 872 size = sizeof(s); 870 873 *s = 0; 871 if (PrfQueryProfileData(fmprof, 872 realappname, "FM/4 Dir1", s, &size) && *s) 874 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir1", s, &size) && *s) 873 875 MakeValidDir(s); 874 876 else … … 878 880 size = sizeof(s); 879 881 *s = 0; 880 if (PrfQueryProfileData(fmprof, 881 realappname, "FM/4 Dir2", s, &size) && *s) 882 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir2", s, &size) && *s) 882 883 MakeValidDir(s); 883 884 else … … 896 897 if (dcd) { 897 898 size = sizeof(INT); 898 if (PrfQueryProfileData(fmprof, 899 realappname, 900 "FM/4 Dir1.Sort", 899 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir1.Sort", 901 900 (PVOID) & dcd->sortFlags, 902 901 &size) && size == sizeof(INT)) { … … 905 904 } 906 905 size = sizeof(MASK); 907 if (PrfQueryProfileData(fmprof, 908 realappname, 909 "FM/4 Dir1.Filter", 906 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir1.Filter", 910 907 (PVOID) & dcd->mask, &size) && size) { 911 908 if (*dcd->mask.szMask) … … 915 912 *(dcd->mask.prompt) = 0; 916 913 size = sizeof(ULONG); 917 if (PrfQueryProfileData(fmprof, 918 realappname, 919 "FM/4 Dir1.View", 914 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir1.View", 920 915 (PVOID) & dcd->flWindowAttr, 921 916 &size) && size == sizeof(ULONG)) { … … 942 937 if (dcd) { 943 938 size = sizeof(INT); 944 if (PrfQueryProfileData(fmprof, 945 realappname, 946 "FM/4 Dir2.Sort", 939 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir2.Sort", 947 940 (PVOID) & dcd->sortFlags, 948 941 &size) && size == sizeof(INT)) { … … 951 944 } 952 945 size = sizeof(MASK); 953 if (PrfQueryProfileData(fmprof, 954 realappname, 955 "FM/4 Dir2.Filter", 946 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir2.Filter", 956 947 (PVOID) & dcd->mask, &size) && size) { 957 948 if (*dcd->mask.szMask) … … 961 952 *(dcd->mask.prompt) = 0; 962 953 size = sizeof(ULONG); 963 if (PrfQueryProfileData(fmprof, 964 realappname, 965 "FM/4 Dir2.View", 954 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Dir2.View", 966 955 (PVOID) & dcd->flWindowAttr, 967 956 &size) && size == sizeof(ULONG)) { … … 986 975 ULONG which = 0, size = sizeof(ULONG); 987 976 988 if (PrfQueryProfileData(fmprof, 989 realappname, 990 "FM/4 Max", 977 if (PrfQueryProfileData(fmprof, realappname, "FM/4 Max", 991 978 (PVOID) & which, 992 979 &size) && size == sizeof(ULONG) && which) { … … 1053 1040 flWindowAttr |= CV_NAME; 1054 1041 } 1055 PrfWriteProfileData(fmprof, 1056 realappname, 1057 "FM/4 Dir1.Sort", 1042 PrfWriteProfileData(fmprof, realappname, "FM/4 Dir1.Sort", 1058 1043 (PVOID) & dcd->sortFlags, sizeof(INT)); 1059 PrfWriteProfileData(fmprof, 1060 realappname, 1061 "FM/4 Dir1.Filter", 1044 PrfWriteProfileData(fmprof, realappname, "FM/4 Dir1.Filter", 1062 1045 (PVOID) & dcd->mask, sizeof(MASK)); 1063 PrfWriteProfileData(fmprof, 1064 realappname, 1065 "FM/4 Dir1.View", 1046 PrfWriteProfileData(fmprof, realappname, "FM/4 Dir1.View", 1066 1047 (PVOID) & flWindowAttr, sizeof(ULONG)); 1067 1048 } … … 1088 1069 flWindowAttr |= CV_NAME; 1089 1070 } 1090 PrfWriteProfileData(fmprof, 1091 realappname, 1092 "FM/4 Dir2.Sort", 1071 PrfWriteProfileData(fmprof, realappname, "FM/4 Dir2.Sort", 1093 1072 (PVOID) & dcd->sortFlags, sizeof(INT)); 1094 PrfWriteProfileData(fmprof, 1095 realappname, 1096 "FM/4 Dir2.Filter", 1073 PrfWriteProfileData(fmprof, realappname, "FM/4 Dir2.Filter", 1097 1074 (PVOID) & dcd->mask, sizeof(MASK)); 1098 PrfWriteProfileData(fmprof, 1099 realappname, 1100 "FM/4 Dir2.View", 1075 PrfWriteProfileData(fmprof, realappname, "FM/4 Dir2.View", 1101 1076 (PVOID) & flWindowAttr, sizeof(ULONG)); 1102 1077 } -
trunk/dll/notebook.c
r1478 r1482 51 51 06 Jun 09 GKY Add option to show file system type or drive label in tree 52 52 15 Nov 09 GKY Change rescan following label/type change to WinSendMsg to avoid trap on SMP 53 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 54 profile calls for user settings that work and are setable in more than one 55 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 56 aren't user settable; realappname should be used for setting applicable to 57 one or more miniapp but not to FM/2 53 58 54 59 ***********************************************************************/ … … 93 98 #include "info.h" // driveflags 94 99 #include "init.h" // font strings 100 #include "fm2cmd.h" // fKeepCmdLine 95 101 96 102 static VOID SaveLastPageIndex(HWND hwnd); … … 353 359 case WM_CLOSE: 354 360 fQuickArcFind = WinQueryButtonCheckstate(hwnd, CFGA_QUICKARCFIND); 355 PrfWriteProfileData(fmprof, 356 appname, 357 "QuickArcFind", &fQuickArcFind, sizeof(BOOL)); 361 PrfWriteProfileData(fmprof, appname, "QuickArcFind", 362 &fQuickArcFind, sizeof(BOOL)); 358 363 fArcStuffVisible = WinQueryButtonCheckstate(hwnd, CFGA_ARCSTUFFVISIBLE); 359 PrfWriteProfileData(fmprof, 360 appname, 361 "ArcStuffVisible", &fArcStuffVisible, sizeof(BOOL)); 364 PrfWriteProfileData(fmprof, appname, "ArcStuffVisible", 365 &fArcStuffVisible, sizeof(BOOL)); 362 366 fFileNameCnrPath = WinQueryButtonCheckstate(hwnd, CFGA_FILENAMEPATH); 363 PrfWriteProfileData(fmprof, 364 appname, 365 "FileNamePathCnr", &fFileNameCnrPath, sizeof(BOOL)); 367 PrfWriteProfileData(fmprof, appname, "FileNamePathCnr", &fFileNameCnrPath, sizeof(BOOL)); 366 368 fFolderAfterExtract = WinQueryButtonCheckstate(hwnd, 367 369 CFGA_FOLDERAFTEREXTRACT); 368 PrfWriteProfileData(fmprof, 369 appname, 370 "FolderAfterExtract", 370 PrfWriteProfileData(fmprof, appname, "FolderAfterExtract", 371 371 &fFolderAfterExtract, sizeof(BOOL)); 372 372 if (WinQueryButtonCheckstate(hwnd, CFGA_DEFARC)) { … … 1113 1113 fToolbarHelp = WinQueryButtonCheckstate(hwnd, CFGB_TOOLBARHELP); 1114 1114 PrfWriteProfileData(fmprof, 1115 FM3Str, "ToolbarHelp", &fToolbarHelp, sizeof(BOOL));1115 appname, "ToolbarHelp", &fToolbarHelp, sizeof(BOOL)); 1116 1116 fDrivebarHelp = WinQueryButtonCheckstate(hwnd, CFGB_DRIVEBARHELP); 1117 1117 PrfWriteProfileData(fmprof, 1118 FM3Str, "DrivebarHelp", &fDrivebarHelp, sizeof(BOOL));1118 appname, "DrivebarHelp", &fDrivebarHelp, sizeof(BOOL)); 1119 1119 fOtherHelp = WinQueryButtonCheckstate(hwnd, CFGB_OTHERHELP); 1120 1120 PrfWriteProfileData(fmprof, 1121 FM3Str, "OtherHelp", &fOtherHelp, sizeof(BOOL));1121 appname, "OtherHelp", &fOtherHelp, sizeof(BOOL)); 1122 1122 break; 1123 1123 } … … 1428 1428 fShowDriveLabelInTree = WinQueryButtonCheckstate(hwnd, CFGT_LABEL); 1429 1429 fShowDriveOnly = WinQueryButtonCheckstate(hwnd, CFGT_DRIVEONLY); 1430 PrfWriteProfileData(fmprof, FM3Str, "ShowDriveOnly", &fShowDriveOnly, sizeof(BOOL));1431 PrfWriteProfileData(fmprof, FM3Str, "ShowFSTypeInTree",1430 PrfWriteProfileData(fmprof, appname, "ShowDriveOnly", &fShowDriveOnly, sizeof(BOOL)); 1431 PrfWriteProfileData(fmprof, appname, "ShowFSTypeInTree", 1432 1432 &fShowFSTypeInTree, sizeof(BOOL)); 1433 PrfWriteProfileData(fmprof, FM3Str, "ShowDriveLabelInTree",1433 PrfWriteProfileData(fmprof, appname, "ShowDriveLabelInTree", 1434 1434 &fShowDriveLabelInTree, sizeof(BOOL)); 1435 1435 fVTreeOpensWPS = WinQueryButtonCheckstate(hwnd, CFGT_VTREEOPENSWPS); … … 1456 1456 sizeof(BOOL)); 1457 1457 fDCOpens = WinQueryButtonCheckstate(hwnd, CFGT_DCOPENS); 1458 PrfWriteProfileData(fmprof, FM3Str, "DoubleClickOpens", &fDCOpens,1458 PrfWriteProfileData(fmprof, appname, "DoubleClickOpens", &fDCOpens, 1459 1459 sizeof(BOOL)); 1460 1460 fShowEnvChanged = (fShowEnv != WinQueryButtonCheckstate(hwnd, CFGT_SHOWENV)); … … 1610 1610 fNoDead = (test == 1); 1611 1611 fNoFinger = (test == 2); 1612 PrfWriteProfileData(fmprof, FM3Str, "NoDead", &fNoDead, sizeof(BOOL));1612 PrfWriteProfileData(fmprof, appname, "NoDead", &fNoDead, sizeof(BOOL)); 1613 1613 PrfWriteProfileData(fmprof, 1614 FM3Str, "NoFinger", &fNoFinger, sizeof(BOOL));1614 appname, "NoFinger", &fNoFinger, sizeof(BOOL)); 1615 1615 WinDestroyPointer(hptrFinger); 1616 1616 if (!fNoDead) … … 1625 1625 fCustomFileDlg = WinQueryButtonCheckstate(hwnd, CFGG_CUSTOMFILEDLG); 1626 1626 PrfWriteProfileData(fmprof, 1627 FM3Str,1627 appname, 1628 1628 "CustomFileDlg", &fCustomFileDlg, sizeof(BOOL)); 1629 1629 fDullMin = WinQueryButtonCheckstate(hwnd, CFGG_BORING); 1630 1630 PrfWriteProfileData(fmprof, 1631 FM3Str, "DullDatabar", &fDullMin, sizeof(BOOL));1631 appname, "DullDatabar", &fDullMin, sizeof(BOOL)); 1632 1632 fConfirmDelete = WinQueryButtonCheckstate(hwnd, CFGG_CONFIRMDELETE); 1633 1633 PrfWriteProfileData(fmprof, … … 1656 1656 &fDefaultDeletePerm, sizeof(BOOL)); 1657 1657 fFM2Deletes = WinQueryButtonCheckstate(hwnd, CFGG_FM2DELETES); 1658 PrfWriteProfileData(fmprof, FM3Str, "FM2Deletes",1658 PrfWriteProfileData(fmprof, appname, "FM2Deletes", 1659 1659 &fFM2Deletes, sizeof(BOOL)); 1660 1660 fTrashCan = WinQueryButtonCheckstate(hwnd, CFGG_TRASHCAN); 1661 PrfWriteProfileData(fmprof, FM3Str, "TrashCan",1661 PrfWriteProfileData(fmprof, appname, "TrashCan", 1662 1662 &fTrashCan, sizeof(BOOL)); 1663 1663 fConfirmTarget = WinQueryButtonCheckstate(hwnd, CFGG_CONFIRMTARGET); … … 1917 1917 (PVOID) & ulCnrType, sizeof(BOOL)); 1918 1918 fMinOnOpen = WinQueryButtonCheckstate(hwnd, CFGD_MINONOPEN); 1919 PrfWriteProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen,1919 PrfWriteProfileData(fmprof, appname, "MinDirOnOpen", &fMinOnOpen, 1920 1920 sizeof(BOOL)); 1921 1921 fLeaveTree = WinQueryButtonCheckstate(hwnd, CFGD_LEAVETREE); … … 1932 1932 sizeof(BOOL)); 1933 1933 fLookInDir = WinQueryButtonCheckstate(hwnd, CFGD_LOOKINDIR); 1934 PrfWriteProfileData(fmprof, FM3Str, "LookInDir", (PVOID) & fLookInDir,1934 PrfWriteProfileData(fmprof, appname, "LookInDir", (PVOID) & fLookInDir, 1935 1935 sizeof(BOOL)); 1936 1936 fUnHilite = WinQueryButtonCheckstate(hwnd, CFGD_UNHILITE); … … 2161 2161 fDataMin = WinQueryButtonCheckstate(hwnd, CFGM_DATAMIN); 2162 2162 PrfWriteProfileData(fmprof, 2163 FM3Str, "DataMin", (PVOID) & fDataMin, sizeof(BOOL));2163 appname, "DataMin", (PVOID) & fDataMin, sizeof(BOOL)); 2164 2164 fTileBackwards = WinQueryButtonCheckstate(hwnd, CFGM_TILEBACKWARDS); 2165 2165 PrfWriteProfileData(fmprof, … … 2169 2169 fNoTreeGap = WinQueryButtonCheckstate(hwnd, CFGM_NOTREEGAP); 2170 2170 PrfWriteProfileData(fmprof, 2171 FM3Str,2171 appname, 2172 2172 "NoTreeGap", (PVOID) & fNoTreeGap, sizeof(BOOL)); 2173 2173 fBlueLED = WinQueryButtonCheckstate(hwnd, CFGM_BLUELED); … … 2193 2193 fSeparateParms = dummy; 2194 2194 PrfWriteProfileData(fmprof, 2195 FM3Str,2195 appname, 2196 2196 "SeparateParms", 2197 2197 (PVOID) & fSeparateParms, sizeof(BOOL)); … … 3057 3057 "CollectorflWindowAttr", 3058 3058 &flWindowAttr, sizeof(ULONG)); 3059 //fixme to allow user to change presparams 1-10-09GKY3060 3059 //This is set to maximize the info seen in the container GKY 3060 PrfWriteProfileData(fmprof, 3061 3061 appname, 3062 3062 "Collector.Fontnamesize", … … 3153 3153 fForceUpper = FALSE; 3154 3154 fForceLower = FALSE; 3155 fEjectRemovableScan = FALSE; 3156 fRScanLocal = FALSE; 3155 3157 dsDirCnrDefault.detailslongname = FALSE; 3156 3158 dsDirCnrDefault.detailssubject = FALSE; … … 3274 3276 3275 3277 case CFG9_DEFAULT: 3276 fSwitchTree = FALSE;3278 fSwitchTree = TRUE; 3277 3279 fSwitchTreeOnFocus = FALSE; 3278 fSwitchTreeExpand = FALSE;3279 fCollapseFirst = FALSE;3280 fSwitchTreeExpand = TRUE; 3281 fCollapseFirst = TRUE; 3280 3282 fSelectedAlways = FALSE; 3281 3283 fTileBackwards = FALSE; … … 3299 3301 fNoIconsDirs = FALSE; 3300 3302 fFolderAfterExtract = FALSE; 3301 fVerify = TRUE;3302 DosSetVerify( TRUE);3303 fVerify = FALSE; 3304 DosSetVerify(fVerify); 3303 3305 fNoSearch = TRUE; 3304 3306 fForceUpper = FALSE; 3305 fForceLower = TRUE;3307 fForceLower = FALSE; 3306 3308 fArcStuffVisible = TRUE; 3307 3309 fVTreeOpensWPS = FALSE; 3308 fRemoteBug = TRUE;3310 fRemoteBug = FALSE; 3309 3311 fDragndropDlg = TRUE; 3310 3312 fMinOnOpen = FALSE; … … 3317 3319 fSaveState = TRUE; 3318 3320 fStartMinimized = FALSE; 3319 fStartMaximized = FALSE;3320 3321 fDataMin = TRUE; 3321 3322 ulCnrType = CCS_EXTENDSEL; 3322 3323 fNoTreeGap = FALSE; 3324 MaxComLineStrg = MAXCOMLINESTRGDEFAULT; 3325 fGuessType = TRUE; 3326 fUseNewViewer = TRUE; 3327 fDataToFore = TRUE; 3328 fDataShowDrives = TRUE; 3329 fKeepCmdLine = TRUE; 3330 fCustomFileDlg = TRUE; 3331 fToolbarHelp = TRUE; 3332 fOtherHelp = TRUE; 3333 fDrivebarHelp = TRUE; 3334 fShowTarget = TRUE; 3335 fRScanLocal = TRUE; 3336 fRScanRemote = FALSE; 3337 fRScanVirtual = FALSE; 3338 fRScanSlow = FALSE; 3339 fRScanNoWrite = FALSE; 3340 fEjectRemovableScan = TRUE; 3341 fEjectCDScan = FALSE; 3342 fEjectFlpyScan = FALSE; 3343 fShowDriveOnly = TRUE; 3344 fShowFSTypeInTree = FALSE; 3345 fShowDriveLabelInTree = FALSE; 3346 fAlertBeepOff = FALSE; 3347 fErrorBeepOff = FALSE; 3348 fTrashCan = FALSE; 3323 3349 { 3324 3350 ULONG flWindowAttr; … … 3342 3368 dsDirCnrDefault.detailscrtime = FALSE; 3343 3369 dsDirCnrDefault.detailsattr = TRUE; 3370 dsDirCnrDefault.fSubjectInLeftPane = FALSE; 3371 dsDirCnrDefault.fSubjectLengthMax = TRUE; 3372 dsDirCnrDefault.SubjectDisplayWidth = 0; 3344 3373 sortFlags = SORT_FILENAME | SORT_DIRSFIRST; 3345 3374 CollectorsortFlags = SORT_FILENAME | SORT_DIRSFIRST; 3375 WriteDetailsSwitches(PCSZ_COLLECTOR, &dsDirCnrDefault, FALSE); 3346 3376 if (hwndMain) { 3347 3377 … … 3354 3384 (WinQuerySysValue(HWND_DESKTOP, SV_CYICON) * 2), 3355 3385 SWP_MOVE | SWP_SIZE); 3356 } 3386 } 3387 if (!fToolbar) { 3388 WinSendMsg(hwndMain, WM_COMMAND, 3389 MPFROM2SHORT(IDM_TOOLBAR, 0), MPVOID); 3390 fToolbar = TRUE; 3391 } 3392 if (!fDrivebar) { 3393 WinSendMsg(hwndMain, WM_COMMAND, 3394 MPFROM2SHORT(IDM_DRIVEBAR, 0), MPVOID); 3395 fDrivebar = TRUE; 3396 } 3397 if (!fMoreButtons) { 3398 WinSendMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_MOREBUTTONS, 0), 3399 MPVOID); 3400 fMoreButtons = TRUE; 3401 } 3402 if (!fUserComboBox) { 3403 WinSendMsg(hwndMain, WM_COMMAND, 3404 MPFROM2SHORT(IDM_USERLIST, 0), MPVOID); 3405 fUserComboBox = TRUE; 3406 } 3357 3407 } 3358 3408 if (hwndTree) { … … 3540 3590 } 3541 3591 return 0; 3592 3593 case CFG9_GREGG: 3594 fSwitchTree = TRUE; 3595 fSwitchTreeOnFocus = FALSE; 3596 fSwitchTreeExpand = TRUE; 3597 fCollapseFirst = TRUE; 3598 fSelectedAlways = FALSE; 3599 fTileBackwards = FALSE; 3600 fExternalViewer = TRUE; 3601 fExternalArcboxes = TRUE; 3602 fExternalCollector = TRUE; 3603 fExternalINIs = TRUE; 3604 fCopyDefault = FALSE; 3605 fFollowTree = FALSE; 3606 fLoadSubject = TRUE; 3607 fLoadLongnames = TRUE; 3608 fDontMoveMouse = FALSE; 3609 fUnHilite = TRUE; 3610 fUserListSwitches = FALSE; 3611 fDCOpens = FALSE; 3612 fLinkSetsIcon = FALSE; 3613 fConfirmDelete = TRUE; 3614 fSyncUpdates = FALSE; 3615 fRealIdle = TRUE; 3616 fNoIconsFiles = FALSE; 3617 fNoIconsDirs = FALSE; 3618 fFolderAfterExtract = FALSE; 3619 fVerify = FALSE; 3620 DosSetVerify(fVerify); 3621 fNoSearch = FALSE; 3622 fForceUpper = FALSE; 3623 fForceLower = FALSE; 3624 fArcStuffVisible = TRUE; 3625 fVTreeOpensWPS = FALSE; 3626 fRemoteBug = FALSE; 3627 fDragndropDlg = TRUE; 3628 fMinOnOpen = FALSE; 3629 fQuickArcFind = TRUE; 3630 fNoRemovableScan = FALSE; 3631 FilesToGet = FILESTOGET_MAX; 3632 fFreeTree = FALSE; 3633 fSplitStatus = TRUE; 3634 fAutoTile = TRUE; 3635 fSaveState = TRUE; 3636 fStartMinimized = FALSE; 3637 fDataMin = TRUE; 3638 ulCnrType = CCS_EXTENDSEL; 3639 fNoTreeGap = TRUE; 3640 MaxComLineStrg = MAXCOMLINESTRGDEFAULT; 3641 fGuessType = TRUE; 3642 fUseNewViewer = TRUE; 3643 fDataToFore = TRUE; 3644 fDataShowDrives = TRUE; 3645 fKeepCmdLine = TRUE; 3646 fCustomFileDlg = TRUE; 3647 fToolbarHelp = TRUE; 3648 fOtherHelp = TRUE; 3649 fDrivebarHelp = TRUE; 3650 fShowTarget = TRUE; 3651 fRScanLocal = TRUE; 3652 fRScanRemote = TRUE; 3653 fRScanVirtual = FALSE; 3654 fRScanSlow = FALSE; 3655 fRScanNoWrite = FALSE; 3656 fEjectRemovableScan = TRUE; 3657 fEjectCDScan = TRUE; 3658 fEjectFlpyScan = FALSE; 3659 fShowDriveOnly = FALSE; 3660 fShowFSTypeInTree = FALSE; 3661 fShowDriveLabelInTree = TRUE; 3662 fAlertBeepOff = TRUE; 3663 fErrorBeepOff = FALSE; 3664 fTrashCan = TRUE; 3665 { 3666 ULONG flWindowAttr; 3667 3668 flWindowAttr = (CV_DETAIL | CV_MINI | CA_DETAILSVIEWTITLES); 3669 PrfWriteProfileData(fmprof, appname, "DirflWindowAttr", 3670 &flWindowAttr, sizeof(ULONG)); 3671 PrfWriteProfileData(fmprof, appname, "CollectorflWindowAttr", 3672 &flWindowAttr, sizeof(ULONG)); 3673 } 3674 dsDirCnrDefault.detailslongname = FALSE; 3675 dsDirCnrDefault.detailssubject = FALSE; 3676 dsDirCnrDefault.detailsea = TRUE; 3677 dsDirCnrDefault.detailssize = TRUE; 3678 dsDirCnrDefault.detailsicon = TRUE; 3679 dsDirCnrDefault.detailslwdate = TRUE; 3680 dsDirCnrDefault.detailslwtime = TRUE; 3681 dsDirCnrDefault.detailsladate = FALSE; 3682 dsDirCnrDefault.detailslatime = FALSE; 3683 dsDirCnrDefault.detailscrdate = FALSE; 3684 dsDirCnrDefault.detailscrtime = FALSE; 3685 dsDirCnrDefault.detailsattr = TRUE; 3686 dsDirCnrDefault.fSubjectInLeftPane = TRUE; 3687 dsDirCnrDefault.fSubjectLengthMax = TRUE; 3688 dsDirCnrDefault.SubjectDisplayWidth = 0; 3689 sortFlags = SORT_FILENAME | SORT_DIRSFIRST; 3690 CollectorsortFlags = SORT_FILENAME | SORT_DIRSFIRST; 3691 WriteDetailsSwitches(PCSZ_COLLECTOR, &dsDirCnrDefault, FALSE); 3692 if (hwndMain) { 3693 3694 SWP swp; 3695 3696 if (WinQueryWindowPos(hwndMain, &swp)) { 3697 WinSetWindowPos(hwndTree, HWND_TOP, 0, 0, 3698 swp.cx / 5, 3699 swp.cy - 3700 (WinQuerySysValue(HWND_DESKTOP, SV_CYICON) * 2), 3701 SWP_MOVE | SWP_SIZE); 3702 } 3703 if (!fToolbar) { 3704 WinSendMsg(hwndMain, WM_COMMAND, 3705 MPFROM2SHORT(IDM_TOOLBAR, 0), MPVOID); 3706 fToolbar = TRUE; 3707 } 3708 if (!fDrivebar) { 3709 WinSendMsg(hwndMain, WM_COMMAND, 3710 MPFROM2SHORT(IDM_DRIVEBAR, 0), MPVOID); 3711 fDrivebar = TRUE; 3712 } 3713 if (!fMoreButtons) { 3714 WinSendMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_MOREBUTTONS, 0), 3715 MPVOID); 3716 fMoreButtons = TRUE; 3717 } 3718 if (!fUserComboBox) { 3719 WinSendMsg(hwndMain, WM_COMMAND, 3720 MPFROM2SHORT(IDM_USERLIST, 0), MPVOID); 3721 fUserComboBox = TRUE; 3722 } 3723 } 3724 if (hwndTree) { 3725 3726 CNRINFO cnri; 3727 ULONG flWindowAttr = (CV_TREE | CV_TEXT | 3728 CV_FLOW | CA_TREELINE | CV_MINI); 3729 3730 memset(&cnri, 0, sizeof(cnri)); 3731 cnri.cb = sizeof(cnri); 3732 WinSendMsg(WinWindowFromID 3733 (WinWindowFromID(hwndTree, FID_CLIENT), TREE_CNR), 3734 CM_QUERYCNRINFO, MPFROMP(&cnri), MPFROMLONG(sizeof(cnri))); 3735 cnri.flWindowAttr = flWindowAttr; 3736 WinSendMsg(WinWindowFromID 3737 (WinWindowFromID(hwndTree, FID_CLIENT), TREE_CNR), 3738 CM_SETCNRINFO, MPFROMP(&cnri), 3739 MPFROMLONG(CMA_FLWINDOWATTR)); 3740 } 3741 break; 3542 3742 3543 3743 case DID_CANCEL:
Note:
See TracChangeset
for help on using the changeset viewer.