Changeset 1431


Ignore:
Timestamp:
Jun 13, 2009, 7:03:02 PM (16 years ago)
Author:
Gregg Young
Message:

Changed 3 way button to radio buttons and added rescan on change to add systype/label to tree enhancement.

Location:
trunk/dll
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/fm3dlg.h

    r1430 r1431  
    616616#define CFGT_SHOWENV                                                                    25059
    617617#define CFGT_ENVVARLIST                                                                 25060
    618 #define CFGT_SYSTYPELABEL                                                               25061
     618#define CFGT_SYSTYPE                                                                    25061
     619#define CFGT_LABEL                                                                      25062
     620#define CFGT_DRIVEONLY                                                                  25063
    619621
    620622#define CFGC_FRAME                                                                              25100
  • trunk/dll/fm3res.dlg

    r1430 r1431  
    19711971        AUTOCHECKBOX    "Show ~env. vars in Tree", CFGT_SHOWENV, 4, 32, 110,
    19721972                        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               
    19761977        ENTRYFIELD      "", CFGT_ENVVARLIST, 120, 32, 196, 8, ES_MARGIN | ES_AUTOSCROLL
    19771978        PUSHBUTTON      "~Help", IDM_HELP, 8, 4, 40, 14, BS_NOPOINTERFOCUS |
  • trunk/dll/init.c

    r1429 r1431  
    13121312                        pszTreeEnvVarList, MaxComLineStrg);
    13131313  size = sizeof(BOOL);
     1314  PrfQueryProfileData(fmprof, FM3Str, "ShowDriveOnly", &fShowDriveOnly, &size);
     1315  size = sizeof(BOOL);
    13141316  PrfQueryProfileData(fmprof, FM3Str, "ShowSysType", &fShowSysType, &size);
    13151317  size = sizeof(BOOL);
  • trunk/dll/ipf/notebook.ipf

    r1429 r1431  
    364364Note that the pseudo-variable LIBPATH is also supported.
    365365:p.
    366 :hp6.Show file system type or drive label in tree (3-state button):ehp6. This
    367 setting allows you to list either the file system type or the drive label
    368 following the drive letter in the tree container. The status line at the bottom
     366:hp6.Show in tree beside drive letter (radiobuttons):ehp6. This
     367setting allows you to list either the file system type, the drive label or nothing
     368beside the drive letter in the tree container. The status line at the bottom
    369369left lists the information you choose not to list in the tree in addition
    370370to the drive's serial number and the amount of free space. When split status line
    371371is 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 if
    374 the status lines aren't split.
     372the total number of drives is moved to the end of the line and maybe truncated
     373depending on window size and screen resolution.The total number of drives
     374preceeds the drive description for all drives if the status lines aren't split.
    375375
    376376:h3 res=99990 name=PANEL_TREESORTPAGE.Tree sort/views page
  • trunk/dll/notebook.c

    r1429 r1431  
    155155BOOL fSaveState;
    156156BOOL fSeparateParms;
     157BOOL fShowDriveOnly;
    157158BOOL fShowEnv;
    158159BOOL fShowLabel;
     
    13461347  BOOL fShowEnvChanged = FALSE;
    13471348  BOOL fTreeEnvVarListChanged = FALSE;
     1349  BOOL fShowSysTypeLabelChanged = FALSE;
    13481350
    13491351  switch (msg) {
     
    13651367    WinCheckButton(hwnd, CFGT_SHOWENV, fShowEnv);
    13661368    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);
    13711372    return 0;
    13721373
     
    14191420  case WM_CLOSE:
    14201421    {
    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));
    14261430      PrfWriteProfileData(fmprof, FM3Str, "ShowSysType", &fShowSysType, sizeof(BOOL));
    14271431      PrfWriteProfileData(fmprof,       FM3Str, "ShowLabel", &fShowLabel, sizeof(BOOL));
     
    14661470          free(pszTemp);
    14671471        }
    1468         if (hwndTree && (fShowEnvChanged || (fShowEnv && fTreeEnvVarListChanged)))
    1469         {
     1472        if (hwndTree && (fShowEnvChanged || (fShowEnv && fTreeEnvVarListChanged) ||
     1473                        fShowSysTypeLabelChanged)) {
    14701474          PCNRITEM pci = WinSendMsg(WinWindowFromID
    14711475                  (WinWindowFromID(hwndTree, FID_CLIENT), TREE_CNR), CM_QUERYRECORDEMPHASIS,
  • trunk/dll/notebook.h

    r1429 r1431  
    9090extern BOOL fSaveState;
    9191extern BOOL fSeparateParms;
     92extern BOOL fShowDriveOnly;
    9293extern BOOL fShowEnv;
    9394extern BOOL fShowLabel;
  • trunk/dll/treecnr.c

    r1428 r1431  
    785785                *szFree = 0;
    786786              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)
    788789                strcpy(FileSystem, "");
    789790              if (fShowLabel)
     
    791792              else
    792793                strcpy(szTmpLabel, volser.volumelabel);
    793               if (fSplitStatus)
     794              if (fSplitStatus) {
     795                CHAR temp[CCHMAXPATH] = " [";
     796
     797                strcat(temp, s);
     798                strcat(temp, "]");
    794799                sprintf(s,
    795800                        GetPString(fShowSysType ? IDS_TREESTATUSSTART1TEXT : fShowLabel
     
    797802                        toupper(*pci->pszFileName), FileSystem,
    798803                        szTmpLabel, volser.serial, szFree);
     804                strcat(s, temp);
     805              }
    799806              else {
    800807                strcat(s, " [");
Note: See TracChangeset for help on using the changeset viewer.