Changeset 1431
- Timestamp:
- Jun 13, 2009, 7:03:02 PM (16 years ago)
- Location:
- trunk/dll
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/fm3dlg.h
r1430 r1431 616 616 #define CFGT_SHOWENV 25059 617 617 #define CFGT_ENVVARLIST 25060 618 #define CFGT_SYSTYPELABEL 25061 618 #define CFGT_SYSTYPE 25061 619 #define CFGT_LABEL 25062 620 #define CFGT_DRIVEONLY 25063 619 621 620 622 #define CFGC_FRAME 25100 -
trunk/dll/fm3res.dlg
r1430 r1431 1971 1971 AUTOCHECKBOX "Show ~env. vars in Tree", CFGT_SHOWENV, 4, 32, 110, 1972 1972 10 1973 CONTROL "Show file system type \"x\" or drive label \"=\" in tree(~3-state)", 1974 CFGT_SYSTYPELABEL, 122, 128, 196, 10, 1975 WC_BUTTON, BS_AUTO3STATE | WS_TABSTOP | WS_VISIBLE 1973 GROUPBOX "Show in tree beside drive letter", -1, 140, 99, 126, 45, NOT WS_GROUP 1974 AUTORADIOBUTTON "Drive letter only", CFGT_DRIVEONLY, 152, 128, 106, 10, WS_GROUP 1975 AUTORADIOBUTTON "File system type", CFGT_SYSTYPE, 152, 116, 106, 10 1976 AUTORADIOBUTTON "Drive label", CFGT_LABEL, 152, 104, 106, 10 1976 1977 ENTRYFIELD "", CFGT_ENVVARLIST, 120, 32, 196, 8, ES_MARGIN | ES_AUTOSCROLL 1977 1978 PUSHBUTTON "~Help", IDM_HELP, 8, 4, 40, 14, BS_NOPOINTERFOCUS | -
trunk/dll/init.c
r1429 r1431 1312 1312 pszTreeEnvVarList, MaxComLineStrg); 1313 1313 size = sizeof(BOOL); 1314 PrfQueryProfileData(fmprof, FM3Str, "ShowDriveOnly", &fShowDriveOnly, &size); 1315 size = sizeof(BOOL); 1314 1316 PrfQueryProfileData(fmprof, FM3Str, "ShowSysType", &fShowSysType, &size); 1315 1317 size = sizeof(BOOL); -
trunk/dll/ipf/notebook.ipf
r1429 r1431 364 364 Note that the pseudo-variable LIBPATH is also supported. 365 365 :p. 366 :hp6.Show file system type or drive label in tree (3-state button):ehp6. This367 setting allows you to list either the file system type or the drive label368 followingthe drive letter in the tree container. The status line at the bottom366 :hp6.Show in tree beside drive letter (radiobuttons):ehp6. This 367 setting allows you to list either the file system type, the drive label or nothing 368 beside the drive letter in the tree container. The status line at the bottom 369 369 left lists the information you choose not to list in the tree in addition 370 370 to the drive's serial number and the amount of free space. When split status line 371 371 is selected on the :link reftype=hd res=97000."Monolithic":elink. notebook page, 372 the total number of drives only appears when an empty removable drive is selected.373 The total number of drives preceeds the drive description for all drives if374 the status lines aren't split.372 the total number of drives is moved to the end of the line and maybe truncated 373 depending on window size and screen resolution.The total number of drives 374 preceeds the drive description for all drives if the status lines aren't split. 375 375 376 376 :h3 res=99990 name=PANEL_TREESORTPAGE.Tree sort/views page -
trunk/dll/notebook.c
r1429 r1431 155 155 BOOL fSaveState; 156 156 BOOL fSeparateParms; 157 BOOL fShowDriveOnly; 157 158 BOOL fShowEnv; 158 159 BOOL fShowLabel; … … 1346 1347 BOOL fShowEnvChanged = FALSE; 1347 1348 BOOL fTreeEnvVarListChanged = FALSE; 1349 BOOL fShowSysTypeLabelChanged = FALSE; 1348 1350 1349 1351 switch (msg) { … … 1365 1367 WinCheckButton(hwnd, CFGT_SHOWENV, fShowEnv); 1366 1368 WinSetDlgItemText(hwnd, CFGT_ENVVARLIST, pszTreeEnvVarList); 1367 { 1368 long th = fShowLabel ? 2 : (fShowSysType ? 1 : 0); 1369 WinCheckButton(hwnd, CFGT_SYSTYPELABEL, th); 1370 } 1369 WinCheckButton(hwnd, CFGT_DRIVEONLY, fShowDriveOnly); 1370 WinCheckButton(hwnd, CFGT_SYSTYPE, fShowSysType); 1371 WinCheckButton(hwnd, CFGT_LABEL, fShowLabel); 1371 1372 return 0; 1372 1373 … … 1419 1420 case WM_CLOSE: 1420 1421 { 1421 long test; 1422 1423 test = WinQueryButtonCheckstate(hwnd, CFGT_SYSTYPELABEL); 1424 fShowSysType = (test == 1); 1425 fShowLabel = (test == 2); 1422 1423 if ((fShowSysType != WinQueryButtonCheckstate(hwnd, CFGT_SYSTYPE)) || 1424 (fShowLabel = WinQueryButtonCheckstate(hwnd, CFGT_LABEL))) 1425 fShowSysTypeLabelChanged = TRUE; 1426 fShowSysType = WinQueryButtonCheckstate(hwnd, CFGT_SYSTYPE); 1427 fShowLabel = WinQueryButtonCheckstate(hwnd, CFGT_LABEL); 1428 fShowDriveOnly = WinQueryButtonCheckstate(hwnd, CFGT_DRIVEONLY); 1429 PrfWriteProfileData(fmprof, FM3Str, "ShowDriveOnly", &fShowDriveOnly, sizeof(BOOL)); 1426 1430 PrfWriteProfileData(fmprof, FM3Str, "ShowSysType", &fShowSysType, sizeof(BOOL)); 1427 1431 PrfWriteProfileData(fmprof, FM3Str, "ShowLabel", &fShowLabel, sizeof(BOOL)); … … 1466 1470 free(pszTemp); 1467 1471 } 1468 if (hwndTree && (fShowEnvChanged || (fShowEnv && fTreeEnvVarListChanged) ))1469 {1472 if (hwndTree && (fShowEnvChanged || (fShowEnv && fTreeEnvVarListChanged) || 1473 fShowSysTypeLabelChanged)) { 1470 1474 PCNRITEM pci = WinSendMsg(WinWindowFromID 1471 1475 (WinWindowFromID(hwndTree, FID_CLIENT), TREE_CNR), CM_QUERYRECORDEMPHASIS, -
trunk/dll/notebook.h
r1429 r1431 90 90 extern BOOL fSaveState; 91 91 extern BOOL fSeparateParms; 92 extern BOOL fShowDriveOnly; 92 93 extern BOOL fShowEnv; 93 94 extern BOOL fShowLabel; -
trunk/dll/treecnr.c
r1428 r1431 785 785 *szFree = 0; 786 786 driveserial[toupper(*pci->pszFileName) - 'A'] = volser.serial; 787 if (CheckDrive(toupper(*pci->pszFileName), FileSystem, &type) == -1 || fShowSysType) 787 if (CheckDrive(toupper(*pci->pszFileName), FileSystem, &type) == -1 || 788 fShowSysType) 788 789 strcpy(FileSystem, ""); 789 790 if (fShowLabel) … … 791 792 else 792 793 strcpy(szTmpLabel, volser.volumelabel); 793 if (fSplitStatus) 794 if (fSplitStatus) { 795 CHAR temp[CCHMAXPATH] = " ["; 796 797 strcat(temp, s); 798 strcat(temp, "]"); 794 799 sprintf(s, 795 800 GetPString(fShowSysType ? IDS_TREESTATUSSTART1TEXT : fShowLabel … … 797 802 toupper(*pci->pszFileName), FileSystem, 798 803 szTmpLabel, volser.serial, szFree); 804 strcat(s, temp); 805 } 799 806 else { 800 807 strcat(s, " [");
Note:
See TracChangeset
for help on using the changeset viewer.