Changeset 1020 for trunk/dll/misc.c


Ignore:
Timestamp:
May 27, 2008, 12:35:27 AM (17 years ago)
Author:
Gregg Young
Message:

Fix dircnr to follow "subject column" preference on open; match query & save profile key names for "details" settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1009 r1020  
    12331233  strcat(s, ".");
    12341234  eos = &s[strlen(s)];
    1235   strcpy(eos, "DetailsLongname");
     1235  strcpy(eos, "DirCnr.DetailsLongname");
    12361236  if (dcd)
    12371237    bool = &dcd->detailslongname;
     
    12411241  size = sizeof(BOOL);
    12421242  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1243   strcpy(eos, "DetailsSubject");
     1243  strcpy(eos, "DirCnr.DetailsSubject");
    12441244  if (dcd)
    12451245    bool = &dcd->detailssubject;
     
    12491249  size = sizeof(BOOL);
    12501250  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1251   strcpy(eos, "DetailsEA");
     1251  strcpy(eos, "DirCnr.DetailsEA");
    12521252  if (dcd)
    12531253    bool = &dcd->detailsea;
     
    12571257  size = sizeof(BOOL);
    12581258  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1259   strcpy(eos, "DetailsSize");
     1259  strcpy(eos, "DirCnr.DetailsSize");
    12601260  if (dcd)
    12611261    bool = &dcd->detailssize;
     
    12651265  size = sizeof(BOOL);
    12661266  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1267   strcpy(eos, "DetailsIcon");
     1267  strcpy(eos, "DirCnr.DetailsIcon");
    12681268  if (dcd)
    12691269    bool = &dcd->detailsicon;
     
    12731273  size = sizeof(BOOL);
    12741274  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1275   strcpy(eos, "DetailsAttr");
     1275  strcpy(eos, "DirCnr.DetailsAttr");
    12761276  if (dcd)
    12771277    bool = &dcd->detailsattr;
     
    12811281  size = sizeof(BOOL);
    12821282  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1283   strcpy(eos, "DetailsCRDate");
     1283  strcpy(eos, "DirCnr.DetailsCRDate");
    12841284  if (dcd)
    12851285    bool = &dcd->detailscrdate;
     
    12891289  size = sizeof(BOOL);
    12901290  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1291   strcpy(eos, "DetailsCRTime");
     1291  strcpy(eos, "DirCnr.DetailsCRTime");
    12921292  if (dcd)
    12931293    bool = &dcd->detailscrtime;
     
    12971297  size = sizeof(BOOL);
    12981298  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1299   strcpy(eos, "DetailsLWDate");
     1299  strcpy(eos, "DirCnr.DetailsLWDate");
    13001300  if (dcd)
    13011301    bool = &dcd->detailslwdate;
     
    13051305  size = sizeof(BOOL);
    13061306  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1307   strcpy(eos, "DetailsLWTime");
     1307  strcpy(eos, "DirCnr.DetailsLWTime");
    13081308  if (dcd)
    13091309    bool = &dcd->detailslwtime;
     
    13131313  size = sizeof(BOOL);
    13141314  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1315   strcpy(eos, "DetailsLADate");
     1315  strcpy(eos, "DirCnr.DetailsLADate");
    13161316  if (dcd)
    13171317    bool = &dcd->detailsladate;
     
    13211321  size = sizeof(BOOL);
    13221322  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1323   strcpy(eos, "DetailsLATime");
     1323  strcpy(eos, "DirCnr.DetailsLATime");
    13241324  if (dcd)
    13251325    bool = &dcd->detailslatime;
     
    13291329  size = sizeof(BOOL);
    13301330  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1331   strcpy(eos, "SubjectInLeftPane");
     1331  strcpy(eos, "DirCnr.SubjectInLeftPane");
    13321332  if (dcd)
    13331333    bool = &dcd->fSubjectInLeftPane;
     
    13371337  size = sizeof(BOOL);
    13381338  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1339   strcpy(eos, "SubjectLengthMax");
     1339  strcpy(eos, "DirCnr.SubjectLengthMax");
    13401340  if (dcd)
    13411341    bool = &dcd->fSubjectLengthMax;
     
    13491349      dcd->SubjectDisplayWidth = 0;
    13501350    else {
    1351       strcpy(eos, "SubjectDisplayWidth");
     1351      strcpy(eos, "DirCnr.SubjectDisplayWidth");
    13521352      bool = &dcd->SubjectDisplayWidth;
    13531353      *bool = SubjectDisplayWidth;
     
    13641364      SubjectDisplayWidth = 0;
    13651365    else {
    1366       strcpy(eos, "SubjectDisplayWidth");
     1366      strcpy(eos, "DirCnr.SubjectDisplayWidth");
    13671367      bool = &SubjectDisplayWidth;
    13681368      *bool = SubjectDisplayWidth;
Note: See TracChangeset for help on using the changeset viewer.