Changeset 737


Ignore:
Timestamp:
Jul 24, 2007, 4:16:18 AM (18 years ago)
Author:
Steven Levine
Message:

More ticket #24 updates

Location:
trunk/dll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r731 r737  
    3131  20 Mar 07 GKY Increase extention check to 4 letters for icon selections
    3232  23 Jun 07 GKY Fixed ram disk without a directory not appearing on states drive list
     33  23 Jul 07 SHL Sync with CNRITEM updates (ticket#24)
    3334
    3435***********************************************************************/
     
    168169                              const PFILEFINDBUF4 pffb,
    169170                              const BOOL partial,
    170                               DIRCNRDATA * dcd)
     171                              DIRCNRDATA *dcd)
    171172{
    172173  /* fill in a container record from a FILEFINDBUF4 structure */
     
    180181  pci->hwndCnr = hwndCnr;
    181182
    182   // 23 Jul 07 SHL fixme to optimize
    183   pci->pszFileName = xstrdup(pszDirectory, pszSrcFile, __LINE__);
    184183  /* note that we cheat below, and accept the full pathname in pszDirectory
    185184     if !*pffb->achName.  This speeds up and simplifies processing elsewhere
     
    341340  }
    342341
    343   /* decide where to point for the container's title text */
     342  // Tell container what part of pathname to display
    344343  if (partial) {
    345344    p = strrchr(pci->pszFileName, '\\');
     
    360359  else
    361360    p = pci->pszFileName;
     361  pci->pszDisplayName = p;
     362
    362363  /* now fill the darned thing in... */
    363   // fixme to have secondary pointer that points to real buffer 23 Jul 07 SHL
    364   pci->pszFileName = p;
    365364  pci->date.day = pffb->fdateLastWrite.day;
    366365  pci->date.month = pffb->fdateLastWrite.month;
     
    565564  }
    566565
     566  // Tell container what part of pathname to display
    567567  if (partial) {
    568568    p = strrchr(pci->pszFileName, '\\');
     
    582582  else
    583583    p = pci->pszFileName;
    584   pci->pszFileName = p;
     584  pci->pszDisplayName = p;
     585
    585586  pci->date.day = pfsa4->fdateLastWrite.day;
    586587  pci->date.month = pfsa4->fdateLastWrite.month;
     
    638639} // FillInRecordFromFSA
    639640
    640 VOID ProcessDirectory(const HWND hwndCnr, const PCNRITEM pciParent, const CHAR * szDirBase, const BOOL filestoo, const BOOL recurse, const BOOL partial, CHAR * stopflag, DIRCNRDATA * dcd,     // Optional
    641                       ULONG * pulTotalFiles,    // Optional
     641VOID ProcessDirectory(const HWND hwndCnr,
     642                      const PCNRITEM pciParent,
     643                      const CHAR *szDirBase,
     644                      const BOOL filestoo,
     645                      const BOOL recurse,
     646                      const BOOL partial,
     647                      CHAR *stopflag,
     648                      DIRCNRDATA *dcd,  // Optional
     649                      ULONG *pulTotalFiles,     // Optional
    642650                      PULONGLONG pullTotalBytes)        // Optional
    643651{
     
    958966                   (PCNRITEM) NULL,
    959967                   pszDirectory,
    960                    TRUE,
    961                    FALSE,
    962                    TRUE,
    963                    dcd ? &dcd->stopflag : NULL, dcd, NULL, pullTotalBytes);
     968                   TRUE,                // filestoo
     969                   FALSE,               // recurse
     970                   TRUE,                // partial
     971                   dcd ? &dcd->stopflag : NULL,
     972                   dcd,
     973                   NULL,
     974                   pullTotalBytes);
    964975  DosPostEventSem(CompactSem);
    965976
  • trunk/dll/fm3dll.h

    r730 r737  
    5151  16 Jun 07 GKY Add CheckPmDrgLimit including IsFm2Window as part of work around PM drag limit
    5252  16 Jun 07 SHL Update more for OpenWatcom
     53  22 Jul 07 GKY Update CNRITEM to optimize RAM usage
     54  23 Jul 07 SHL More CNRITEM updates (ticket#24)
    5355
    5456***********************************************************************/
     
    405407  MINIRECORDCORE rc;            /* Base information */
    406408  HWND hwndCnr;                 /* The container holding this record */
    407   PSZ pszFileName;              // Points to szFileName  - required by CFA_STRING
     409  PSZ pszFileName;              // Points to buffer holding full pathname
     410  PSZ pszDisplayName;           // Points to displayable part of path name  - used by CFA_STRING
    408411  //CHAR szFileName[CCHMAXPATH];        // Path name - fixme to rename to szPathName?
    409412  //CHAR szSubject[40];         /* Subject string */
    410   CHAR *pszSubject;             // Points szSubject - required by CFA_STRING
     413  CHAR *pszSubject;             // Points subject buffer - used by fm/2 and by CFA_STRING
    411414  CHAR *pszDispAttr;            // Points to szDispAttr - required by CFA_STRING
    412415  CDATE date;                   /* Last write date of file */
     
    417420  CTIME crtime;                 /* Creation time of file */
    418421  CHAR szDispAttr[6];           /* Attrib string for details display */
    419   CHAR *pszLongname;            // Points to szLongName - required by CFA_STRING
     422  CHAR *pszLongname;            // Points to long name buffer - used by code and by CFA_STRING
    420423  ULONGLONG cbFile;             /* File size */
    421424  ULONGLONG easize;             // Size of EAs - dirsize uses this - hack cough
  • trunk/dll/misc.c

    r733 r737  
    2525  10 Jun 07 GKY Add IsFm2Window as part of work around PM drag limit
    2626  05 Jul 07 GKY Fix menu removals for WORKPLACE_PROCESS=YES
     27  23 Jul 07 SHL Sync with CNRITEM updates (ticket#24)
    2728
    2829***********************************************************************/
     
    491492
    492493    // Fill in column information for the file name. Note that we are
    493     // using the pszFileName variable rather than szFileName. We do this
    494     // because the container needs a pointer to the file name. If we used
    495     // szFileName (a character array, not a pointer), the container would
    496     // take the first 4 bytes of szFileName and think it was a pointer,
    497     // which of course it is not. Later in the FillInRecord* functions we set
    498     // pszFileName to point to szFileName.
     494    // using the pszDisplayName variable rather than pszFileName. We do this
     495    // because the container does not always display the full path file name.
    499496
    500497    pfi = pfi->pNextFieldInfo;
     
    502499    pfi->flTitle = CFA_CENTER;
    503500    pfi->pTitleData = GetPString(IDS_FILENAME);
    504     pfi->offStruct = FIELDOFFSET(CNRITEM, pszFileName);
     501    pfi->offStruct = FIELDOFFSET(CNRITEM, pszDisplayName);
    505502
    506503    // Fill in column information for the longname.
Note: See TracChangeset for help on using the changeset viewer.