Changeset 1083
- Timestamp:
- Jul 20, 2008, 5:31:07 PM (17 years ago)
- Location:
- trunk/dll
- Files:
-
- 6 edited
-
filldir.c (modified) (3 diffs)
-
fm3res.dlg (modified) (2 diffs)
-
init.c (modified) (3 diffs)
-
ipf/notebook.ipf (modified) (2 diffs)
-
notebook.c (modified) (4 diffs)
-
notebook.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/filldir.c
r1078 r1083 43 43 07 Jul 08 SHL Use NULL rather than NullStr in FreeCnrItemData 44 44 16 JUL 08 GKY Use TMP directory for temp files 45 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 45 46 46 47 ***********************************************************************/ … … 65 66 #include "misc.h" // GetTidForWindow 66 67 #include "fortify.h" // 06 May 08 SHL 68 #include "notebook.h" // INI file fields 67 69 #include "fm3dll.h" 68 70 … … 1384 1386 char *p, *pp; 1385 1387 1386 p = GetPString(IDS_ENVVARNAMES);1388 p = pszTreeEnvVarList; 1387 1389 while (*p == ' ') 1388 1390 p++; -
trunk/dll/fm3res.dlg
r1080 r1083 34 34 29 Feb 08 GKY Add presparams & update appearence of "Sizes" dialog 35 35 19 Jul 08 JBS Ticket 197: Support accelerator keys in setting dialogs. 36 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 36 37 37 38 ***********************************************************************/ … … 1946 1947 AUTOCHECKBOX "Show ~env. vars in Tree", CFGT_SHOWENV, 4, 32, 132, 1947 1948 10 1949 ENTRYFIELD "", CFGT_ENVVARLIST, 120, 32, 196, 8, ES_MARGIN | ES_AUTOSCROLL 1948 1950 PUSHBUTTON "~Help", IDM_HELP, 8, 4, 40, 14, BS_NOPOINTERFOCUS | 1949 1951 WS_GROUP -
trunk/dll/init.c
r1082 r1083 52 52 17 Jul 08 SHL Reduce code bulk in fUseTmp setup 53 53 19 Jul 08 GKY Use pFM2SaveDirectory, MakeTempName and move temp files to TMP subdirectory if (TMP). 54 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 54 55 55 56 ***********************************************************************/ … … 1085 1086 if (!mailrun) 1086 1087 return 0; //already complained 1088 pszTreeEnvVarList = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 1089 if (!pszTreeEnvVarList) 1090 return 0; //already complained 1087 1091 size = sizeof(BOOL); 1088 1092 PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &size); … … 1176 1180 size = sizeof(BOOL); 1177 1181 PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size); 1182 size = MaxComLineStrg; 1183 PrfQueryProfileData(fmprof, appname, "TreeEnvVarList", pszTreeEnvVarList, &size); 1178 1184 size = sizeof(BOOL); 1179 1185 PrfQueryProfileData(fmprof, appname, "LeaveTree", &fLeaveTree, &size); -
trunk/dll/ipf/notebook.ipf
r1041 r1083 13 13 .* 13 Aug 07 SHL Tweak scanning page 14 14 .* 06 Jul 08 GKY Update delete/undelete to include the option of using the XWP trashcan 15 .* 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 15 16 .* 16 17 .*********************************************************************** … … 344 345 The :hp6.Show env. vars in Tree:ehp6. toggle determines whether FM/2 345 346 shows a few environment variable lists (like PATH, DPATH and LIBPATH) 346 in the Drive Tree. 347 in the Drive Tree. Use the entry field to specify a blank-separated 348 list of the desired environment variables. 347 349 348 350 -
trunk/dll/notebook.c
r1080 r1083 37 37 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 38 38 19 Jul 08 JBS Ticket 197: Support accelerator keys in setting dialogs. 39 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 39 40 40 41 ***********************************************************************/ … … 1169 1170 switch (msg) { 1170 1171 case WM_INITDLG: 1172 WinSendDlgItemMsg(hwnd, CFGT_ENVVARLIST, EM_SETTEXTLIMIT, 1173 MPFROM2SHORT(CCHMAXPATH, 0), MPVOID); 1171 1174 PostMsg(hwnd, UM_UNDO, MPVOID, MPVOID); 1172 1175 break; … … 1182 1185 WinCheckButton(hwnd, CFGT_SWITCHTREEEXPAND, fSwitchTreeExpand); 1183 1186 WinCheckButton(hwnd, CFGT_SHOWENV, fShowEnv); 1187 WinSetDlgItemText(hwnd, CFGT_ENVVARLIST, pszTreeEnvVarList); 1184 1188 return 0; 1185 1189 … … 1262 1266 fShowEnv = WinQueryButtonCheckstate(hwnd, CFGT_SHOWENV); 1263 1267 PrfWriteProfileData(fmprof, appname, "ShowEnv", &fShowEnv, sizeof(BOOL)); 1268 { 1269 char * pszTemp = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 1270 if (pszTemp) 1271 { 1272 WinQueryDlgItemText(hwnd, CFGT_ENVVARLIST, MaxComLineStrg, pszTemp); 1273 strupr(pszTemp); 1274 if (strcmp(pszTemp, pszTreeEnvVarList)) 1275 { 1276 strcpy(pszTreeEnvVarList, pszTemp); 1277 PrfWriteProfileString(fmprof, appname, "TreeEnvVarList", pszTreeEnvVarList); 1278 if (hwndTree && fShowEnv) { 1279 PostMsg(WinWindowFromID 1280 (WinWindowFromID(hwndTree, FID_CLIENT), TREE_CNR), WM_COMMAND, 1281 MPFROM2SHORT(IDM_RESCAN, 0), MPVOID); 1282 } 1283 } 1284 free(pszTemp); 1285 } else { 1286 // Report error? 1287 } 1288 } 1264 1289 break; 1265 1290 } -
trunk/dll/notebook.h
r985 r1083 11 11 14 Feb 08 SHL Refactor from fm3dll.h 12 12 29 Feb 08 GKY Refactor global command line variables to notebook.h 13 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 13 14 14 15 ***********************************************************************/ … … 37 38 38 39 DATADEF CHAR *editor, *viewer, *virus, *compare, *binview, *bined, 39 *dircompare, *ftprun, *httprun, *mailrun ;40 *dircompare, *ftprun, *httprun, *mailrun, *pszTreeEnvVarList; 40 41 DATADEF CHAR ftprundir[CCHMAXPATH], httprundir[CCHMAXPATH], 41 42 mailrundir[CCHMAXPATH], targetdir[CCHMAXPATH];
Note:
See TracChangeset
for help on using the changeset viewer.
