- Timestamp:
- Nov 30, 2008, 8:23:56 PM (17 years ago)
- Location:
- trunk/dll
- Files:
-
- 11 edited
-
arccnrs.c (modified) (5 diffs)
-
arccnrs.h (modified) (2 diffs)
-
extract.c (modified) (1 diff)
-
fm3dlg.h (modified) (2 diffs)
-
fm3res.dlg (modified) (2 diffs)
-
init.c (modified) (2 diffs)
-
ipf/archive.ipf (modified) (3 diffs)
-
ipf/hints.ipf (modified) (1 diff)
-
ipf/notebook.ipf (modified) (1 diff)
-
ipf/tutor.ipf (modified) (1 diff)
-
notebook.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1301 r1306 64 64 29 Nov 08 GKY Add flag to tell CheckListProc file is in an archive so it won't try to open it. 65 65 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate. 66 30 Nov 08 GKY Add the option of creating a subdirectory from the arcname 67 for the extract path to arc container. 66 68 67 69 ***********************************************************************/ … … 158 160 CHAR ArcTempRoot[CCHMAXPATH]; 159 161 BOOL fArcStuffVisible; 162 BOOL fFileNameCnrPath; 160 163 161 164 #pragma data_seg(GLOBAL2) … … 1818 1821 1819 1822 for (x = 0; li->list[x]; x++) { 1820 BldFullPathName(fullname, li->targetpath, li->list[x]); 1823 BldFullPathName(fullname, li->targetpath, li->list[x]); 1824 //Check if file already exists on disk warn if it does. 1821 1825 if (IsFile(fullname) != -1) { 1822 1826 AddToList(li->list[x], &exfiles, &numfiles, &numalloc); … … 1850 1854 else if (ckl.list) 1851 1855 li->list = CombineLists(li->list, ckl.list); 1852 } 1856 } // end check and warn 1853 1857 } 1854 1858 if (!li->list || !li->list[0]) … … 3714 3718 else 3715 3719 strcpy(dcd->directory, extractpath); 3716 } 3720 } 3721 if (!*dcd->directory && fFileNameCnrPath && dcd->arcname) { 3722 3723 strcpy(fullname, dcd->arcname); 3724 p = strrchr(fullname, '.'); 3725 if (p) 3726 *p = 0; 3727 else { 3728 p = fullname + strlen(dcd->arcname); 3729 p--; 3730 *p = 0; 3731 } 3732 strcpy(dcd->directory, fullname); 3733 } 3717 3734 if (!*dcd->directory && *lastextractpath) { 3718 3735 //DosEnterCritSec(); //GKY 11-29-08 -
trunk/dll/arccnrs.h
r1220 r1306 10 10 11 11 05 Jan 08 SHL Move arccnrs.c definitions here 12 30 Nov 08 GKY Add the option of creating a subdirectory from the arcname 13 for the extract path to arc container. 12 14 13 15 ***********************************************************************/ … … 62 64 extern CHAR lastextractpath[CCHMAXPATH]; 63 65 extern ULONGLONG ullDATFileSpaceNeeded; 66 extern BOOL fFileNameCnrPath; 64 67 65 68 #endif // ARCCNRS_H -
trunk/dll/extract.c
r1300 r1306 319 319 } 320 320 if (!*arcdata->extractdir) { 321 if (*lastextractpath) 322 strcpy(arcdata->extractdir, lastextractpath); 323 else if (arcdata->arcname && *arcdata->arcname) { 321 if (arcdata->arcname && *arcdata->arcname) { 324 322 325 323 CHAR *p; -
trunk/dll/fm3dlg.h
r1300 r1306 23 23 29 Nov 08 GKY Add the option of creating a subdirectory from the arcname 24 24 for the extract path. 25 30 Nov 08 GKY Add the option of creating a subdirectory from the arcname 26 for the extract path to arc container. 25 27 26 28 ***********************************************************************/ … … 715 717 #define CFGA_VIRUS 25376 716 718 #define CFGA_EXTRACTPATH 25377 717 #define CFGA_FIND 25378 719 #define CFGA_FIND 25378 720 #define CFGA_FILENAMEPATH 25379 718 721 719 722 #define CFG5_FRAME 25500 -
trunk/dll/fm3res.dlg
r1300 r1306 39 39 21 Nov 08 JBS Ticket 297: Added use of COPYRIGHT_YEAR in About dialog 40 40 29 Nov 08 GKY Add the option of creating a subdirectory from the arcname 41 for the extract path to extract dialog .41 for the extract path to extract dialog and arc container. 42 42 43 43 ***********************************************************************/ … … 1808 1808 AUTOCHECKBOX "Show archiver activity", CFGA_ARCSTUFFVISIBLE, 4, 1809 1809 74, 112, 10 1810 AUTOCHECKBOX "~Use archive name as extract path in container (Ext. Path over rides this setting)", 1811 CFGA_FILENAMEPATH, 4, 54, 312, 10 1810 1812 LTEXT "A/Virus:", -1, 4, 34, 48, 8 1811 1813 ENTRYFIELD "", CFGA_VIRUS, 54, 34, 196, 8, ES_MARGIN -
trunk/dll/init.c
r1303 r1306 58 58 minimum size in future 59 59 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate. 60 30 Nov 08 GKY Add the option of creating a subdirectory from the arcname 61 for the extract path to arc container. 60 62 61 63 ***********************************************************************/ … … 1490 1492 size = sizeof(extractpath); 1491 1493 PrfQueryProfileData(fmprof, appname, "ExtractPath", extractpath, &size); 1494 size = sizeof(BOOL); 1495 PrfQueryProfileData(fmprof, FM3Str, "FileNamePathCnr", &fFileNameCnrPath, &size); 1492 1496 size = sizeof(printer); 1493 1497 PrfQueryProfileData(fmprof, appname, "Printer", printer, &size); -
trunk/dll/ipf/archive.ipf
r552 r1306 27 27 ones extracted earlier). :hp1.With Paths:ehp1. will extract the archive including the 28 28 any directories in the archive structure. This can be made the default by checking the 29 :hp1.Always Paths:ehp1. box. Re fgardless of which method is the default you may30 select the other option on a one time basis without chang ethe default for future archives.29 :hp1.Always Paths:ehp1. box. Regardless of which method is the default you may 30 select the other option on a one time basis without changing the default for future archives. 31 31 If you only wish to extract certain files you can select masks (i.e *.txt) for the files 32 32 you wish to extract. The command line box allows you to change or add extraction options. 33 33 See the help files for your archiver (e.g. zip.exe) for more information. 34 34 You can select the extraction directory (the directory to which the files will be extracted. 35 The default is the current directory or you can set a specific directory as the on 36 the Archiver page of the Setting Notebook. You can use the :hp1.Walk:ehp1. button 35 The default is the current directory or you can set a specific directory as the default on 36 the Archiver page of the Setting Notebook. You can set the :hp1.Filename as extract path :ehp1. 37 to have FM/2 create an extract path based on the archive name.The path is made as a subdirectory 38 to the directory the archive is in. You can use the :hp1.Walk:ehp1. button 37 39 find the directory you wish to extract to or you can type a path directly into the listbox. 38 40 If the path you type in doesn't exist FM/2 will offer to create it for you. … … 57 59 files unless given a DOS filemask (for instance, to extract all files 58 60 you need to enter *.* (not *) in the masks field). FM/2 normally gives 59 :hp2. no:ehp2. filemasksas the argument when you want to extract60 everything, which every other archiver in the world understands.61 :hp2."*":ehp2. as the argument when you want to extract 62 everything, which most other archiver in the world understand. 61 63 :p. 62 64 The ZIP/UNZIP programs are case sensitive even though OS/2 itself is … … 82 84 FM/2 will ask you for the type of the archive by presenting you with a 83 85 listbox from which to pick an archiver. 84 After that, another dialog appears to let you modify how the archive 85 will be created. Additional masks may be entered (remember that the ZIP86 and UNZIP programs are case sensitive), the archiver command line86 After that, another dialog appears to let you modify how the archive that 87 will be created. Additional masks may be entered (remember that some versions 88 of ZIP and UNZIP programs are case sensitive), the archiver command line 87 89 tweaked, and so forth. Click :hp1.Okay:ehp1. to create the archive, or 88 90 :hp1.Cancel:ehp1. if you change your mind. -
trunk/dll/ipf/hints.ipf
r288 r1306 87 87 button. If you always want the extract directory to be the same as the 88 88 directory in which the archive resides, enter * in the Ext. Path field 89 of the internal Settings Notebook's :link reftype=hd res=99940.Archivers 90 page:elink.. 89 of the internal Settings Notebook's or if you want FM/2 to create a subdirectory 90 based on the archiver name leave Ext. Path blank and check the box Use archive 91 name as extract path in container (Ext. Path over rides this setting) 92 :link reftype=hd res=99940.Archivers page:elink.. 91 93 :p. 92 94 You can drag files or directories onto an archive object in a Directory -
trunk/dll/ipf/notebook.ipf
r1129 r1306 284 284 to the foreground if you want to see them. 285 285 :p. 286 The :hp6.Use archive name as extract path in container:ehp6.allows 287 you to have FM/2 create an extract path based on the archive name. 288 The path is made as a subdirectory to the directory the archive 289 is in. If a directory is listed in Ext. Path it over rides this setting. 290 The setting only effects the arc container. The extract dialog has a 291 separate setting for this function. 292 :p. 286 293 The :hp6.A/Virus:ehp6. field allow you to enter the command line 287 (PATH/ANTIVIRUS &period.EXE parameters) for your antivirus software294 (PATH/ANTIVIRUS.EXE parameters) for your antivirus software 288 295 This must be done to enable virus checking of archives from FM/2. 289 NVCC &period.EXE &percent.p /C is one possible command line option296 NVCC.EXE &percent.p /C is one possible command line option 290 297 if you are using Norman Antivirus. 291 298 :p. -
trunk/dll/ipf/tutor.ipf
r1041 r1306 439 439 (make it the :hp1.current object:ehp1.), then select the :hp1.Extract:ehp1. 440 440 command from the :hp1.Files:ehp1. menu, the context menu 441 fc=default bc=cyan.B2:color fc=default bc=default., or press the :color fc=default bc=palegray.Ctrl:color fc=default bc=default. 441 fc=default bc=cyan.B2:color fc=default bc=default., or press the 442 :color fc=default bc=palegray.Ctrl:color fc=default bc=default. 442 443 + :color fc=default bc=palegray.x:color fc=default bc=default. accelerator key. 443 444 key. -
trunk/dll/notebook.c
r1225 r1306 40 40 31 Jul 08 JBS Ticket 114: Improved code to avoid traps. 41 41 02 Aug 08 JBS Ticket 114: Improved code to avoid traps. 42 30 Nov 08 GKY Add the option of creating a subdirectory from the arcname 43 for the extract path to arc container. 42 44 43 45 ***********************************************************************/ … … 224 226 WinCheckButton(hwnd, CFGA_QUICKARCFIND, fQuickArcFind); 225 227 WinCheckButton(hwnd, CFGA_DEFARC, (*szDefArc != 0)); 228 WinCheckButton(hwnd, CFGA_FILENAMEPATH, fFileNameCnrPath); 226 229 WinSetDlgItemText(hwnd, CFGA_DEFARCNAME, szDefArc); 227 230 WinSetDlgItemText(hwnd, CFGA_VIRUS, virus); … … 332 335 appname, 333 336 "ArcStuffVisible", &fArcStuffVisible, sizeof(BOOL)); 337 fFileNameCnrPath = WinQueryButtonCheckstate(hwnd, CFGA_FILENAMEPATH); 338 PrfWriteProfileData(fmprof, 339 appname, 340 "FileNamePathCnr", &fFileNameCnrPath, sizeof(BOOL)); 334 341 fFolderAfterExtract = WinQueryButtonCheckstate(hwnd, 335 342 CFGA_FOLDERAFTEREXTRACT);
Note:
See TracChangeset
for help on using the changeset viewer.
