8277
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2008 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
8015
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
Object subclass:#Win32FileDialog
|
|
15 |
instanceVariableNames:'fileName openFileNameStruct filters lpstrFilter lpstrFile
|
|
16 |
lpstrInitialDir lpstrTitle lpstrDefExt defFilter defExtension
|
|
17 |
style title smalltalkFileFilters defFilterIndex parent'
|
|
18 |
classVariableNames:'InitialDirectory CommonDialogConstants FilterPatternDescriptions'
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-Tools-File'
|
|
21 |
!
|
|
22 |
|
|
23 |
ByteArray variableByteSubclass:#OpenFilenameStructure
|
|
24 |
instanceVariableNames:''
|
|
25 |
classVariableNames:''
|
|
26 |
poolDictionaries:''
|
|
27 |
privateIn:Win32FileDialog
|
|
28 |
!
|
|
29 |
|
8277
|
30 |
!Win32FileDialog class methodsFor:'documentation'!
|
|
31 |
|
|
32 |
copyright
|
|
33 |
"
|
|
34 |
COPYRIGHT (c) 2008 by eXept Software AG
|
|
35 |
All Rights Reserved
|
|
36 |
|
|
37 |
This software is furnished under a license and may be used
|
|
38 |
only in accordance with the terms of that license and with the
|
|
39 |
inclusion of the above copyright notice. This software may not
|
|
40 |
be provided or otherwise made available to, or used by, any
|
|
41 |
other person. No title to or ownership of the software is
|
|
42 |
hereby transferred.
|
|
43 |
"
|
|
44 |
! !
|
8015
|
45 |
|
8260
|
46 |
!Win32FileDialog class methodsFor:'initialization'!
|
|
47 |
|
|
48 |
startUp
|
9345
|
49 |
"Private - Initialize the class variables.
|
|
50 |
This is called during startup."
|
8260
|
51 |
|
|
52 |
InitialDirectory := Directory pathName: Disk drivePathName.
|
|
53 |
! !
|
|
54 |
|
8015
|
55 |
!Win32FileDialog class methodsFor:'instance creation'!
|
|
56 |
|
|
57 |
new
|
9345
|
58 |
^ self basicNew initialize
|
8015
|
59 |
! !
|
|
60 |
|
|
61 |
!Win32FileDialog class methodsFor:'accessing'!
|
|
62 |
|
|
63 |
getInitialDirectory
|
|
64 |
|
|
65 |
^ InitialDirectory
|
|
66 |
!
|
|
67 |
|
|
68 |
setInitialDirectory: aName
|
|
69 |
|
|
70 |
InitialDirectory := Directory pathName: aName
|
|
71 |
! !
|
|
72 |
|
|
73 |
!Win32FileDialog class methodsFor:'constants'!
|
|
74 |
|
|
75 |
commonDialogConstantAt: aString
|
|
76 |
|
|
77 |
^ self commonDialogConstants at: aString ifAbsent:[Transcript showCR: 'Common Dialog Constant ', aString, ' notfound!!']
|
|
78 |
!
|
|
79 |
|
|
80 |
commonDialogConstants
|
|
81 |
|
9345
|
82 |
CommonDialogConstants isNil ifTrue:[
|
|
83 |
CommonDialogConstants := self generateCommonDialogConstants
|
|
84 |
].
|
8015
|
85 |
^ CommonDialogConstants
|
|
86 |
!
|
|
87 |
|
|
88 |
generateCommonDialogConstants
|
|
89 |
|
|
90 |
|dictionary|
|
|
91 |
|
|
92 |
dictionary := Dictionary new.
|
|
93 |
dictionary
|
9345
|
94 |
at: 'CcPreventfullopen' put: 4;
|
|
95 |
at: 'FrShowhelp' put: 128;
|
|
96 |
at: 'PdEnablesetuptemplate' put: 32768;
|
|
97 |
at: 'FrNoupdown' put: 1024;
|
|
98 |
at: 'CfNosimulations' put: 4096;
|
|
99 |
at: 'OfnPathmustexist' put: 2048;
|
|
100 |
at: 'CfWysiwyg' put: 32768;
|
|
101 |
at: 'PdReturndc' put: 256;
|
|
102 |
at: 'PdEnableprinthook' put: 4096;
|
|
103 |
at: 'CfInittologfontstruct' put: 64;
|
|
104 |
at: 'CfScalableonly' put: 131072;
|
|
105 |
at: 'PdPrinttofile' put: 32;
|
|
106 |
at: 'CfEffects' put: 256;
|
|
107 |
at: 'PdShowhelp' put: 2048;
|
|
108 |
at: 'OfnEnabletemplatehandle' put: 128;
|
|
109 |
at: 'CfBoth' put: 3;
|
|
110 |
at: 'OfnReadonly' put: 1;
|
|
111 |
at: 'PdNopagenums' put: 8;
|
|
112 |
at: 'PdDisableprinttofile' put: 524288;
|
|
113 |
at: 'PdHideprinttofile' put: 1048576;
|
|
114 |
at: 'OfnAllowmultiselect' put: 512;
|
|
115 |
at: 'CfPrinterfonts' put: 2;
|
|
116 |
at: 'CfEnabletemplatehandle' put: 32;
|
|
117 |
at: 'PdSelection' put: 1;
|
|
118 |
at: 'OfnHidereadonly' put: 4;
|
|
119 |
at: 'PdPrintsetup' put: 64;
|
|
120 |
at: 'OfnExtentiondifferent' put: 1024;
|
|
121 |
at: 'FrReplaceall' put: 32;
|
|
122 |
at: 'FrMatchcase' put: 4;
|
|
123 |
at: 'OfnFilemustexist' put: 4096;
|
|
124 |
at: 'PdCollate' put: 16;
|
|
125 |
at: 'CfFixedpitchonly' put: 16384;
|
|
126 |
at: 'PdEnablesetuphook' put: 8192;
|
|
127 |
at: 'OfnShareaware' put: 16384;
|
|
128 |
at: 'CcEnablehook' put: 16;
|
|
129 |
at: 'CfEnabletemplate' put: 16;
|
|
130 |
at: 'Findmsgstring' put: 'commdlgFindreplace';
|
|
131 |
at: 'CfLimitsize' put: 8192;
|
|
132 |
at: 'OfnNochangedir' put: 8;
|
|
133 |
at: 'OfnCreateprompt' put: 8192;
|
|
134 |
at: 'ScreenFonttype' put: 8192;
|
|
135 |
at: 'PdUsedevmodecopies' put: 262144;
|
|
136 |
at: 'CcRgbinit' put: 1;
|
|
137 |
at: 'FrFindnext' put: 8;
|
|
138 |
at: 'CfUsestyle' put: 128;
|
|
139 |
at: 'FrEnablehook' put: 256;
|
|
140 |
at: 'PdEnableprinttemplatehandle' put: 65536;
|
|
141 |
at: 'CfShowhelp' put: 4;
|
|
142 |
at: 'FrNowholeword' put: 4096.
|
|
143 |
dictionary
|
|
144 |
at: 'ShareExist' put: 16448;
|
|
145 |
at: 'OfnOverwriteprompt' put: 2;
|
|
146 |
at: 'OfnEnablehook' put: 32;
|
|
147 |
at: 'OfnShowhelp' put: 16;
|
|
148 |
at: 'CcEnabletemplatehandle' put: 64;
|
|
149 |
at: 'SimulatedFonttype' put: 32768;
|
|
150 |
at: 'FrDown' put: 1;
|
|
151 |
at: 'PdEnableprinttemplate' put: 16384;
|
|
152 |
at: 'CfNovectorfonts' put: 2048;
|
|
153 |
at: 'PdNoselection' put: 4;
|
|
154 |
at: 'CfAnsionly' put: 1024;
|
|
155 |
at: 'OfnNovalidate' put: 256;
|
|
156 |
at: 'CfScreenfonts' put: 1;
|
|
157 |
at: 'FrWholeword' put: 2;
|
|
158 |
at: 'FrEnabletemplatehandle' put: 8192;
|
|
159 |
at: 'PdAllpages' put: 0;
|
|
160 |
at: 'CfForcefontexist' put: 65536;
|
|
161 |
at: 'CcEnabletemplate' put: 32;
|
|
162 |
at: 'PdPagenums' put: 2;
|
|
163 |
at: 'FrReplace' put: 16;
|
|
164 |
at: 'PdEnablesetuptemplatehandle' put: 131072;
|
|
165 |
at: 'CfApply' put: 512;
|
|
166 |
at: 'OfnEnabletemplate' put: 64;
|
|
167 |
at: 'DnDefaultprn' put: 1;
|
|
168 |
at: 'PdNowarning' put: 128;
|
|
169 |
at: 'CfTtonly' put: 262144;
|
|
170 |
at: 'PrinterFonttype' put: 16384;
|
|
171 |
at: 'CcShowhelp' put: 8;
|
|
172 |
at: 'CcFullopen' put: 2;
|
|
173 |
at: 'PdReturnic' put: 512;
|
|
174 |
at: 'FrEnabletemplate' put: 512;
|
|
175 |
at: 'FrDialogterm' put: 64;
|
|
176 |
at: 'Helpmsgstring' put: 'commdlgHelp';
|
|
177 |
at: 'PdReturndefault' put: 1024;
|
|
178 |
at: 'FrNomatchcase' put: 2048;
|
|
179 |
at: 'CfEnablehook' put: 8.
|
8015
|
180 |
^ dictionary
|
|
181 |
! !
|
|
182 |
|
|
183 |
!Win32FileDialog class methodsFor:'examples'!
|
|
184 |
|
|
185 |
openFile
|
9345
|
186 |
^ (Win32FileDialog new openFile: 'c:\untitled.txt') file.
|
8015
|
187 |
|
|
188 |
"
|
9345
|
189 |
self openFile
|
8015
|
190 |
"
|
|
191 |
!
|
|
192 |
|
|
193 |
saveFile
|
9345
|
194 |
^ (Win32FileDialog new saveFile: 'C:\vsw311\untitled.txt') file.
|
8015
|
195 |
|
|
196 |
"
|
9345
|
197 |
self saveFile
|
8015
|
198 |
"
|
|
199 |
! !
|
|
200 |
|
|
201 |
!Win32FileDialog class methodsFor:'filters'!
|
|
202 |
|
|
203 |
filterPatternDescription: filterPattern
|
|
204 |
|
|
205 |
^ self filterPatternDescriptions at: filterPattern ifAbsent: ''
|
|
206 |
!
|
|
207 |
|
|
208 |
filterPatternDescriptions
|
|
209 |
|
|
210 |
FilterPatternDescriptions isNil ifTrue:[ FilterPatternDescriptions := self generateFilterPatternDescriptions ].
|
|
211 |
^ FilterPatternDescriptions
|
|
212 |
!
|
|
213 |
|
|
214 |
filtersFor: pattern
|
|
215 |
|
|
216 |
|filters filterPatterns|
|
|
217 |
|
|
218 |
pattern isEmptyOrNil ifTrue:[^ nil].
|
|
219 |
|
|
220 |
filters := OrderedCollection new.
|
|
221 |
filterPatterns := pattern subStrings: $;.
|
|
222 |
filterPatterns do:[:filterPattern |
|
|
223 |
filterPattern notEmpty ifTrue:[
|
|
224 |
filters add: (Array with: (self filterPatternDescription: filterPattern)
|
|
225 |
with:filterPattern)
|
|
226 |
].
|
|
227 |
].
|
|
228 |
^ filters asArray
|
|
229 |
!
|
|
230 |
|
|
231 |
generateFilterPatternDescriptions
|
|
232 |
|
|
233 |
^ Dictionary new
|
|
234 |
at: '*.txt' put: 'Text files (*.txt)';
|
|
235 |
at: '*.st' put: 'Smalltalk files (*.st)';
|
|
236 |
at: '*.csv' put: 'CSV files (*.csv)';
|
|
237 |
at: '*.xml' put: 'XML files (*.xml)';
|
|
238 |
at: '*.zip' put: 'ZIP files (*.zip)';
|
|
239 |
at: '*.xls' put: 'Excel files (*.xls)';
|
|
240 |
at: '*.ent' put: 'SGML Entity files (*.ent)';
|
|
241 |
at: '*.ccs' put: 'CCS files (*.ccs)';
|
|
242 |
at: '*.ini' put: 'Configuration files (*.ini)';
|
|
243 |
at: '*.prn' put: 'Printer Text files (*.prn)';
|
|
244 |
at: '*.dir' put: 'DapasX Database files (*.dir)';
|
|
245 |
at: '*.dat' put: 'DapasX Database files (*.dat)';
|
|
246 |
at: '*.prg' put: 'DapasX Program files (*.prg)';
|
|
247 |
at: '*.dcf' put: 'DapasX Options files (*.dcf)';
|
|
248 |
at: '*.ext' put: 'DapasX Backup files (*.ext)';
|
|
249 |
at: '*.mpl' put: 'DapasX Project files (*.mpl)';
|
|
250 |
yourself
|
|
251 |
! !
|
|
252 |
|
|
253 |
!Win32FileDialog class methodsFor:'opening'!
|
|
254 |
|
9345
|
255 |
fileDialogFor:ownerWindow save:isSaveDialog
|
|
256 |
title:titleOrNil inDirectory:dirPathOrNil initialAnswer:initialOrNil
|
|
257 |
filter:pattern extension:extensionOrNil
|
8015
|
258 |
|
|
259 |
"start a native open-file dialog.
|
|
260 |
If not cancelled, the selected fileName is returned; nil otherwise.
|
|
261 |
Of course, this one looks like the
|
|
262 |
Windows file dialog - no matter which viewStyle settings are active.
|
|
263 |
Notice: if no ownerWindow is given, the dialog pops up at 0@0.
|
|
264 |
|
|
265 |
EXPERIMENTAL & non-portable: use with caution"
|
|
266 |
|
|
267 |
|filePath filterArrayOrNil|
|
|
268 |
|
|
269 |
filterArrayOrNil := self filtersFor: pattern.
|
|
270 |
|
9345
|
271 |
filePath :=
|
|
272 |
self new
|
|
273 |
openFor:ownerWindow
|
|
274 |
save:isSaveDialog
|
|
275 |
title:titleOrNil
|
|
276 |
inDirectory:dirPathOrNil
|
|
277 |
initialAnswer:initialOrNil
|
|
278 |
filter:filterArrayOrNil
|
|
279 |
extension:extensionOrNil.
|
8015
|
280 |
|
|
281 |
^ filePath
|
|
282 |
! !
|
|
283 |
|
|
284 |
!Win32FileDialog methodsFor:'accessing'!
|
|
285 |
|
|
286 |
addAllFilesFilter
|
|
287 |
|
|
288 |
self addFilter: '*.*' description: 'All Files (*.*)'.
|
|
289 |
!
|
|
290 |
|
|
291 |
addFilter: aFilter description: aDescription
|
|
292 |
"Add aFilter and aDescription to the list of File dialog
|
|
293 |
filters."
|
|
294 |
|
|
295 |
filters add: ( Association key: aFilter value: aDescription ).
|
|
296 |
!
|
|
297 |
|
|
298 |
addSmalltalkFileFilters
|
|
299 |
|
|
300 |
^ smalltalkFileFilters
|
|
301 |
!
|
|
302 |
|
|
303 |
defExtension: aDefExtension
|
|
304 |
"Specifies the default extension of File dialog."
|
|
305 |
|
|
306 |
defExtension := aDefExtension.
|
|
307 |
!
|
|
308 |
|
|
309 |
defFilter
|
|
310 |
"Answers the aDefFilterString as the default filter of File dialog."
|
|
311 |
|
|
312 |
^ defFilter
|
|
313 |
!
|
|
314 |
|
|
315 |
defFilter: aDefFilterString
|
|
316 |
"Specifies the aDefFilterString as the default filter of File dialog."
|
|
317 |
|
|
318 |
defFilter := aDefFilterString
|
|
319 |
!
|
|
320 |
|
|
321 |
defFilterIndex: defaultFilterIndex
|
|
322 |
|
|
323 |
defFilterIndex := defaultFilterIndex.
|
|
324 |
!
|
|
325 |
|
|
326 |
directory
|
|
327 |
"Answer the selected directory."
|
8037
|
328 |
InitialDirectory isNil ifTrue:[
|
|
329 |
^ Filename currentDirectory pathName asFilename
|
|
330 |
].
|
|
331 |
^ InitialDirectory "? OperatingSystem getCurrentDirectory asFilename"
|
8015
|
332 |
!
|
|
333 |
|
|
334 |
directory: directory
|
|
335 |
"Sets the initial directory."
|
|
336 |
|
|
337 |
| aFilename |
|
|
338 |
|
|
339 |
directory isNil ifTrue:[^ self.].
|
|
340 |
aFilename := directory asFilename.
|
|
341 |
aFilename exists ifTrue: [ InitialDirectory := aFilename ].
|
|
342 |
!
|
|
343 |
|
|
344 |
file
|
|
345 |
"Answer the selected file."
|
|
346 |
|
|
347 |
^fileName
|
|
348 |
!
|
|
349 |
|
|
350 |
fileSpec: aFileSpec
|
|
351 |
"Sets the initial fileName and directory in the File Dialog."
|
|
352 |
|
|
353 |
| array dir |
|
|
354 |
|
|
355 |
"SHOULD assign initial fileName and directory separately using #fileName: and #directory"
|
|
356 |
|
8358
|
357 |
self breakPoint:#fm.
|
8015
|
358 |
fileName := aFileSpec.
|
|
359 |
"/ array := Filename splitPath: aFileSpec in: self directory .
|
|
360 |
"/ dir :=
|
|
361 |
"/ (( String with: ( array at: 1 ) with: $: ),
|
|
362 |
"/ ( ( array at: 2 ) isEmpty ifTrue: [ '\' ] ifFalse: [ array at: 2 ] )) asFilename.
|
|
363 |
"/ dir exists ifFalse: [ dir := OperatingSystem getCurrentDirectory asFilename ].
|
|
364 |
"/
|
|
365 |
"/ self directory: dir.
|
|
366 |
"/ fileName := array at: 3
|
|
367 |
!
|
|
368 |
|
|
369 |
filters
|
|
370 |
"Private - answers a string containing all filters and sets up
|
|
371 |
the defFilterIndex property"
|
|
372 |
|
|
373 |
| filterString count defaultFilterIndex defaultFilter|
|
|
374 |
|
|
375 |
smalltalkFileFilters notNil ifTrue: [
|
|
376 |
self
|
|
377 |
addFilter: '*.cls' description: 'Class Files (*.CLS)';
|
|
378 |
addFilter: '*.mth' description: 'Method Files (*.MTH)';
|
|
379 |
addFilter: '*.st' description: 'Smalltalk Files (*.ST)';
|
|
380 |
addFilter: '*.bnd' description: 'Library Bind Files (*.BND)';
|
|
381 |
addFilter: '*.map' description: 'Library Map Files (*.MAP)';
|
|
382 |
addFilter: '*.ini' description: 'Initialization Files (*.INI)';
|
|
383 |
addFilter: '*.obj' description: 'Object Files (*.OBJ)';
|
|
384 |
addFilter: '*.log' description: 'Log Files (*.LOG)'
|
|
385 |
].
|
|
386 |
|
|
387 |
defaultFilter := self defFilter.
|
|
388 |
(fileName notEmptyOrNil and:[defaultFilter isNil]) ifTrue:[
|
|
389 |
|initialFilenameSuffix|
|
|
390 |
initialFilenameSuffix := fileName asFilename suffix.
|
|
391 |
initialFilenameSuffix notEmptyOrNil ifTrue:[
|
|
392 |
defaultFilter := '*.', initialFilenameSuffix.
|
|
393 |
].
|
|
394 |
].
|
|
395 |
|
|
396 |
filterString := String new.
|
|
397 |
count := 0.
|
|
398 |
defaultFilterIndex := 0.
|
|
399 |
filters do: [:assoc |
|
|
400 |
count := count + 1.
|
|
401 |
assoc key = defaultFilter ifTrue: [ defaultFilterIndex := count ].
|
8037
|
402 |
filterString := filterString, assoc value, #[0] asString, assoc key , #[0] asString.
|
8015
|
403 |
].
|
|
404 |
|
|
405 |
self defFilterIndex: defaultFilterIndex.
|
|
406 |
^filterString
|
|
407 |
!
|
|
408 |
|
|
409 |
flags
|
|
410 |
"Private - Answers the dialog box current flags.
|
|
411 |
For compatibility reasons -> use style instead"
|
|
412 |
|
|
413 |
^openFileNameStruct flags
|
|
414 |
!
|
|
415 |
|
|
416 |
flags: flags
|
|
417 |
|
|
418 |
"Private - Specifies the dialog box creation flags.
|
|
419 |
Kept for compatibility reasons. Use style: instead"
|
|
420 |
|
|
421 |
self style: flags
|
|
422 |
!
|
|
423 |
|
|
424 |
hideReadonly
|
|
425 |
|
|
426 |
"Hides the file dialog's Readonly check box. "
|
|
427 |
|
|
428 |
self style: self style | (self class commonDialogConstantAt: 'OfnHidereadonly')
|
|
429 |
!
|
|
430 |
|
|
431 |
initialFileName: filename
|
|
432 |
"Sets the initial fileName string in the File Dialog."
|
|
433 |
|
|
434 |
| aString |
|
|
435 |
filename isNil ifTrue:[^ self.].
|
|
436 |
aString := filename.
|
|
437 |
filename isFilename ifTrue:[ aString := filename baseName].
|
|
438 |
fileName := aString.
|
|
439 |
!
|
|
440 |
|
|
441 |
overwritePrompt
|
|
442 |
|
|
443 |
"Prompt if the user attempts to overwrite a file"
|
|
444 |
|
|
445 |
self style: self style | (self class commonDialogConstantAt: 'OfnOverwriteprompt')
|
|
446 |
!
|
|
447 |
|
|
448 |
owner: ownerWindow
|
|
449 |
|
|
450 |
"Sets the owner of the Dialog box."
|
|
451 |
|
|
452 |
|mainView handle|
|
|
453 |
|
|
454 |
ownerWindow isNil ifTrue:[^ self].
|
|
455 |
mainView := ownerWindow windowGroup mainView.
|
|
456 |
mainView notNil ifTrue:[
|
|
457 |
handle := mainView id.
|
|
458 |
handle notNil ifTrue:[
|
|
459 |
parent := handle address
|
|
460 |
].
|
|
461 |
].
|
|
462 |
|
|
463 |
"/ super owner: anOwner.
|
|
464 |
"/ owner isWindow
|
|
465 |
"/ ifTrue: [ parent := owner ]
|
|
466 |
"/ ifFalse: [ parent := owner mainView.
|
|
467 |
"/ parent isWindow ifFalse: [
|
|
468 |
"/ parent := Notifier findWindow: WindowHandle queryActive ]].
|
|
469 |
!
|
|
470 |
|
|
471 |
pathMustExist
|
|
472 |
|
|
473 |
"Private & DEFAULT!!."
|
|
474 |
"Changed by K3/EES5-Mg, 29.01.97"
|
|
475 |
|
|
476 |
self style: self style | 16r800.
|
|
477 |
!
|
|
478 |
|
|
479 |
shareAware
|
|
480 |
|
|
481 |
"Allows a previously opened file to be opened
|
|
482 |
(e.g. change.log)"
|
|
483 |
|
|
484 |
self style: self style | (self class commonDialogConstantAt: 'OfnShareaware')
|
|
485 |
!
|
|
486 |
|
|
487 |
style
|
|
488 |
^ style ? 8
|
|
489 |
!
|
|
490 |
|
|
491 |
style:something
|
|
492 |
style := something.
|
|
493 |
!
|
|
494 |
|
|
495 |
title: aTitle
|
|
496 |
|
|
497 |
"Specifies the string to be placed in the title bar of the
|
|
498 |
File dialog."
|
|
499 |
|
|
500 |
title := aTitle
|
|
501 |
! !
|
|
502 |
|
|
503 |
!Win32FileDialog methodsFor:'dapas'!
|
|
504 |
|
|
505 |
dapasOpenFile
|
|
506 |
|
|
507 |
"Brings up the default open file dialog "
|
|
508 |
"Changed by K3/EES5-Mg, 28.02.96"
|
|
509 |
|
|
510 |
self hideReadonly;
|
|
511 |
shareAware;
|
|
512 |
addFilter: '*.*' description: 'All Files (*.*)'.
|
|
513 |
|
|
514 |
self defFilter isNil ifTrue:[ self defFilter: '*.*'].
|
|
515 |
|
|
516 |
self open.
|
|
517 |
!
|
|
518 |
|
|
519 |
dapasSaveFile
|
|
520 |
|
|
521 |
"Brings up the file save dialog."
|
|
522 |
"Changed by K3/EES5-Mg, 28.02.96"
|
|
523 |
|
|
524 |
self hideReadonly;
|
|
525 |
overwritePrompt;
|
|
526 |
addFilter: '*.*' description: 'All Files (*.*)'.
|
|
527 |
|
|
528 |
self save.
|
|
529 |
!
|
|
530 |
|
|
531 |
openFileXml
|
|
532 |
|
|
533 |
"Brings up the default open file dialog "
|
|
534 |
"Changed by K3/EES5-Mg, 28.02.96"
|
|
535 |
"Changed by GS-EC/EES3 - Bernd Eisenmann, 14.08.03"
|
|
536 |
|
|
537 |
self hideReadonly;
|
|
538 |
shareAware;
|
|
539 |
addFilter: '*.xml' description: 'XML-Datei'.
|
|
540 |
|
|
541 |
self defFilter isNil ifTrue:[ self defFilter: '*.*'].
|
|
542 |
|
|
543 |
self open.
|
|
544 |
!
|
|
545 |
|
|
546 |
openFileXmlZip
|
|
547 |
|
|
548 |
"Brings up the default open file dialog "
|
|
549 |
"Changed by K3/EES5-Mg, 28.02.96"
|
|
550 |
"Changed by GS-EC/EES3 - Bernd Eisenmann, 14.08.03"
|
|
551 |
|
|
552 |
self hideReadonly;
|
|
553 |
shareAware;
|
|
554 |
addFilter: '*.xml' description: 'XML-Datei';
|
|
555 |
addFilter: '*.zip' description: 'ZIP-Datei'.
|
|
556 |
|
|
557 |
self defFilter isNil ifTrue:[ self defFilter: '*.*'].
|
|
558 |
|
|
559 |
self open.
|
|
560 |
! !
|
|
561 |
|
|
562 |
!Win32FileDialog methodsFor:'initialize & release'!
|
|
563 |
|
|
564 |
cleanUp
|
|
565 |
"Private - Free openFileNameStruct."
|
|
566 |
|
|
567 |
self style: self flags.
|
|
568 |
lpstrFilter notNil ifTrue: [lpstrFilter free].
|
|
569 |
lpstrFile notNil ifTrue: [lpstrFile free].
|
|
570 |
lpstrInitialDir notNil ifTrue: [lpstrInitialDir free].
|
|
571 |
lpstrTitle notNil ifTrue: [ lpstrTitle free ].
|
|
572 |
lpstrDefExt notNil ifTrue: [ lpstrDefExt free ].
|
|
573 |
|
|
574 |
openFileNameStruct := nil
|
|
575 |
!
|
|
576 |
|
|
577 |
initialize
|
|
578 |
|
|
579 |
"Private - Initialize openFileNameStruct"
|
|
580 |
|
|
581 |
super initialize.
|
|
582 |
openFileNameStruct := OpenFilenameStructure new.
|
|
583 |
openFileNameStruct lStructSize: openFileNameStruct sizeInBytes.
|
|
584 |
fileName := String new.
|
|
585 |
filters := OrderedCollection new.
|
|
586 |
self style: (self class commonDialogConstantAt: 'OfnNochangedir')
|
|
587 |
! !
|
|
588 |
|
|
589 |
!Win32FileDialog methodsFor:'opening'!
|
|
590 |
|
|
591 |
open
|
|
592 |
"Brings up the open file dialog."
|
|
593 |
|
|
594 |
| error rslt openFileNameStructExternalBytes |
|
|
595 |
|
|
596 |
[
|
|
597 |
self fillStruct.
|
|
598 |
parent notNil ifTrue: [ openFileNameStruct hwndOwner: parent.].
|
|
599 |
style notNil ifTrue: [ openFileNameStruct flags: style ].
|
|
600 |
|
|
601 |
openFileNameStructExternalBytes := ExternalBytes from: openFileNameStruct asByteArray.
|
|
602 |
rslt := OperatingSystem getOpenFilename: openFileNameStructExternalBytes address.
|
|
603 |
rslt
|
|
604 |
ifTrue: [ self getFileName ]
|
|
605 |
ifFalse: [
|
|
606 |
fileName := nil.
|
|
607 |
error := OperatingSystem commDlgExtendedError.
|
|
608 |
].
|
|
609 |
] ensure:[
|
|
610 |
openFileNameStructExternalBytes free.
|
|
611 |
self cleanUp.
|
|
612 |
].
|
|
613 |
|
|
614 |
(error notNil and:[error ~= 0]) ifTrue: [self error: error ].
|
|
615 |
!
|
|
616 |
|
|
617 |
openFile
|
|
618 |
"Brings up the default open file dialog. The title is set to 'Open File'
|
|
619 |
and fileSpec is set to '*.*'. "
|
|
620 |
|
|
621 |
self openFile: '*.*'.
|
|
622 |
!
|
|
623 |
|
|
624 |
openFile: initialFileName
|
|
625 |
|
|
626 |
"Brings up the default open file dialog. The title is set to 'Open File'
|
|
627 |
and fileSpec is set to patternString. "
|
|
628 |
|
|
629 |
self title: 'Open'.
|
|
630 |
initialFileName notNil ifTrue: [ self initialFileName: initialFileName ].
|
|
631 |
self
|
|
632 |
hideReadonly;
|
|
633 |
shareAware;
|
|
634 |
addAllFilesFilter;
|
|
635 |
addFilter: '*.txt' description: 'Text Files (*.txt)'.
|
|
636 |
Smalltalk isStandAloneApp ifFalse: [ self addSmalltalkFileFilters ].
|
|
637 |
self defFilter isNil ifTrue:[ self defFilter: '*.*'].
|
|
638 |
self open.
|
|
639 |
!
|
|
640 |
|
|
641 |
openFor:ownerWindow
|
|
642 |
save:isSaveDialog
|
|
643 |
title:titleOrNil
|
|
644 |
inDirectory:dirPathOrNil
|
|
645 |
initialAnswer:initialOrNil
|
|
646 |
filter:filterArrayOrNil
|
8402
|
647 |
extension:extensionOrNil
|
8015
|
648 |
|
|
649 |
self
|
|
650 |
owner: ownerWindow;
|
|
651 |
title: titleOrNil;
|
|
652 |
initialFileName: initialOrNil;
|
8402
|
653 |
defFilter: extensionOrNil;
|
|
654 |
directory: dirPathOrNil.
|
8015
|
655 |
|
|
656 |
filterArrayOrNil notNil ifTrue:[
|
|
657 |
filterArrayOrNil do:[:each | self addFilter: each last description: each first].
|
|
658 |
].
|
|
659 |
|
|
660 |
self addAllFilesFilter.
|
|
661 |
"/ self defFilter isNil ifTrue:[ self defFilter: '*.*'].
|
|
662 |
|
|
663 |
isSaveDialog
|
|
664 |
ifTrue:[
|
|
665 |
self hideReadonly;
|
|
666 |
overwritePrompt;
|
|
667 |
save.
|
|
668 |
] ifFalse:[
|
|
669 |
self hideReadonly;
|
|
670 |
shareAware;
|
|
671 |
open.
|
|
672 |
].
|
|
673 |
|
|
674 |
^ self file
|
|
675 |
!
|
|
676 |
|
|
677 |
save
|
|
678 |
"Brings up the save file dialog."
|
|
679 |
|
|
680 |
| error rslt openFileNameStructExternalBytes |
|
|
681 |
|
|
682 |
[
|
|
683 |
self fillStruct.
|
|
684 |
parent notNil ifTrue: [ openFileNameStruct hwndOwner: parent.].
|
|
685 |
style notNil ifTrue: [ openFileNameStruct flags: style ].
|
|
686 |
|
|
687 |
openFileNameStructExternalBytes := ExternalBytes from: openFileNameStruct asByteArray.
|
|
688 |
rslt := OperatingSystem getSaveFilename: openFileNameStructExternalBytes address.
|
|
689 |
rslt
|
|
690 |
ifTrue: [ self getFileName ]
|
|
691 |
ifFalse: [
|
|
692 |
fileName := nil.
|
|
693 |
error := OperatingSystem commDlgExtendedError.
|
|
694 |
].
|
|
695 |
] ensure:[
|
|
696 |
openFileNameStructExternalBytes free.
|
|
697 |
self cleanUp.
|
|
698 |
].
|
|
699 |
|
|
700 |
(error notNil and:[error ~= 0]) ifTrue: [self error: error ].
|
|
701 |
!
|
|
702 |
|
|
703 |
saveFile: aString
|
|
704 |
|
|
705 |
"Brings up the save file dialog with aString as the
|
|
706 |
default name. The title is set to 'Save File'. "
|
|
707 |
|
|
708 |
self saveTitle: 'Save File' fileName: aString
|
|
709 |
!
|
|
710 |
|
|
711 |
saveTitle: aTitle fileName: initialFileName
|
|
712 |
|
|
713 |
"Brings up the file save dialog with aTitle and aString
|
|
714 |
as the default name."
|
|
715 |
|
|
716 |
self title: aTitle;
|
|
717 |
initialFileName: initialFileName;
|
|
718 |
hideReadonly;
|
|
719 |
overwritePrompt;
|
|
720 |
addAllFilesFilter;
|
|
721 |
addFilter: '*.txt' description: 'Text Files (*.txt)'.
|
|
722 |
|
|
723 |
self save.
|
|
724 |
! !
|
|
725 |
|
|
726 |
!Win32FileDialog methodsFor:'private'!
|
|
727 |
|
|
728 |
fillStruct
|
|
729 |
"Private - fills the openFileNameStruct"
|
|
730 |
|
|
731 |
| temp |
|
|
732 |
|
8037
|
733 |
temp := fileName "asAsciiZ".
|
|
734 |
lpstrFile := ExternalBytes new:512 withAll:0.
|
8015
|
735 |
lpstrFile
|
|
736 |
replaceBytesFrom:1
|
|
737 |
to:temp size
|
|
738 |
with:temp
|
|
739 |
startingAt:1.
|
|
740 |
|
8037
|
741 |
lpstrFilter := ExternalBytes newNullTerminatedFromString: self filters.
|
8015
|
742 |
|
8037
|
743 |
lpstrInitialDir := ExternalBytes newNullTerminatedFromString: self directory pathName.
|
8015
|
744 |
|
|
745 |
openFileNameStruct
|
|
746 |
lpstrFile: lpstrFile address ;
|
|
747 |
nMaxFile: 512;
|
|
748 |
lpstrFilter: lpstrFilter address ;
|
|
749 |
nFilterIndex: defFilterIndex ; "set by filters"
|
|
750 |
lpstrInitialDir: lpstrInitialDir address.
|
|
751 |
|
|
752 |
( temp := defExtension) notNil ifTrue: [
|
8037
|
753 |
lpstrDefExt := ExternalBytes newNullTerminatedFromString: temp.
|
8015
|
754 |
openFileNameStruct lpstrDefExt: lpstrDefExt address].
|
|
755 |
|
|
756 |
( temp := title ) notNil ifTrue: [
|
8037
|
757 |
lpstrTitle := ExternalBytes newNullTerminatedFromString: temp.
|
8015
|
758 |
openFileNameStruct lpstrTitle: lpstrTitle address ].
|
|
759 |
!
|
|
760 |
|
|
761 |
getFileName
|
|
762 |
"Private - get the filename"
|
|
763 |
|
|
764 |
| directory |
|
|
765 |
|
|
766 |
self style: self flags.
|
|
767 |
fileName := lpstrFile stringAt: 1.
|
|
768 |
directory := fileName copyFrom: 1 to: openFileNameStruct nFileOffset.
|
|
769 |
self directory: directory asFilename.
|
|
770 |
! !
|
|
771 |
|
|
772 |
!Win32FileDialog::OpenFilenameStructure class methodsFor:'accessing'!
|
|
773 |
|
|
774 |
sizeInBytes
|
|
775 |
|
|
776 |
^ 76
|
|
777 |
! !
|
|
778 |
|
|
779 |
!Win32FileDialog::OpenFilenameStructure class methodsFor:'instance creation'!
|
|
780 |
|
|
781 |
new
|
|
782 |
|
|
783 |
^ super new: self sizeInBytes
|
|
784 |
! !
|
|
785 |
|
|
786 |
!Win32FileDialog::OpenFilenameStructure methodsFor:'accessing'!
|
|
787 |
|
|
788 |
flags
|
|
789 |
"Answer the receiver's flags field as a Smalltalk object."
|
|
790 |
|
8037
|
791 |
^ self doubleWordAt: 52+1
|
8015
|
792 |
!
|
|
793 |
|
|
794 |
flags: anObject
|
|
795 |
"Set the receiver's flags field as a Smalltalk object."
|
|
796 |
|
8037
|
797 |
^ self doubleWordAt: 52+1 put: anObject
|
8015
|
798 |
!
|
|
799 |
|
|
800 |
hInstance
|
|
801 |
"Get the receiver's hInstance field."
|
|
802 |
|
8037
|
803 |
^ self doubleWordAt: 8+1
|
8015
|
804 |
!
|
|
805 |
|
|
806 |
hInstance: anObject
|
|
807 |
"Set the receiver's hInstance field to the value of anObject."
|
|
808 |
|
8037
|
809 |
self doubleWordAt: 8+1 put: anObject
|
8015
|
810 |
!
|
|
811 |
|
|
812 |
hwndOwner
|
|
813 |
"Get the receiver's hwndOwner field."
|
|
814 |
|
8037
|
815 |
^ self doubleWordAt: 4+1
|
8015
|
816 |
!
|
|
817 |
|
|
818 |
hwndOwner: anObject
|
|
819 |
"Set the receiver's hwndOwner field to the value of anObject."
|
|
820 |
|
8037
|
821 |
self doubleWordAt: 4+1 put: anObject
|
8015
|
822 |
!
|
|
823 |
|
|
824 |
lCustData
|
|
825 |
"Get the receiver's lCustData field."
|
|
826 |
|
8037
|
827 |
^ self doubleWordAt: 64+1
|
8015
|
828 |
!
|
|
829 |
|
|
830 |
lCustData: anObject
|
|
831 |
"Set the receiver's lCustData field as a Smalltalk object."
|
|
832 |
|
8037
|
833 |
^ self doubleWordAt: 64+1 put: anObject
|
8015
|
834 |
!
|
|
835 |
|
|
836 |
lStructSize
|
|
837 |
"Get the receiver's lStructSize field."
|
|
838 |
|
8037
|
839 |
^ self doubleWordAt: 0+1
|
8015
|
840 |
!
|
|
841 |
|
|
842 |
lStructSize: anObject
|
|
843 |
"Set the receiver's lStructSize field to the value of anObject."
|
|
844 |
|
8037
|
845 |
self doubleWordAt:0+1 put:anObject
|
8015
|
846 |
!
|
|
847 |
|
|
848 |
lpfnHook
|
|
849 |
"Get the receiver's lpfnHook field."
|
|
850 |
|
8037
|
851 |
^ self doubleWordAt: 68+1
|
8015
|
852 |
!
|
|
853 |
|
|
854 |
lpfnHook: anObject
|
|
855 |
"Set the receiver's lpfnHook field to the value of anObject."
|
|
856 |
|
8037
|
857 |
self doubleWordAt: 68+1 put: anObject
|
8015
|
858 |
!
|
|
859 |
|
|
860 |
lpstrCustomFilter
|
|
861 |
"Get the receiver's lpstrCustomFilter field."
|
|
862 |
|
8037
|
863 |
^ self doubleWordAt: 16+1
|
8015
|
864 |
!
|
|
865 |
|
|
866 |
lpstrCustomFilter: anObject
|
|
867 |
"Set the receiver's lpstrCustomFilter field to the value of anObject."
|
|
868 |
|
8037
|
869 |
self doubleWordAt: 16+1 put: anObject
|
8015
|
870 |
!
|
|
871 |
|
|
872 |
lpstrDefExt
|
|
873 |
"Get the receiver's lpstrDefExt field."
|
|
874 |
|
8037
|
875 |
^ self doubleWordAt: 60+1
|
8015
|
876 |
!
|
|
877 |
|
|
878 |
lpstrDefExt: anObject
|
|
879 |
"Set the receiver's lpstrDefExt field to the value of anObject."
|
|
880 |
|
8037
|
881 |
self doubleWordAt: 60+1 put: anObject
|
8015
|
882 |
!
|
|
883 |
|
|
884 |
lpstrFile
|
|
885 |
"Get the receiver's lpstrFile field."
|
|
886 |
|
8037
|
887 |
^ self doubleWordAt: 28+1
|
8015
|
888 |
!
|
|
889 |
|
|
890 |
lpstrFile: anObject
|
|
891 |
"Set the receiver's lpstrFile field to the value of anObject."
|
|
892 |
|
8037
|
893 |
self doubleWordAt: 28+1 put: anObject
|
8015
|
894 |
!
|
|
895 |
|
|
896 |
lpstrFileTitle
|
|
897 |
"Get the receiver's lpstrFileTitle field."
|
|
898 |
|
8037
|
899 |
^ self doubleWordAt: 36+1
|
8015
|
900 |
!
|
|
901 |
|
|
902 |
lpstrFileTitle: anObject
|
|
903 |
"Set the receiver's lpstrFileTitle field to the value of anObject."
|
|
904 |
|
8037
|
905 |
self doubleWordAt: 36+1 put: anObject
|
8015
|
906 |
!
|
|
907 |
|
|
908 |
lpstrFilter
|
|
909 |
"Get the receiver's lpstrFilter field."
|
|
910 |
|
8037
|
911 |
^ self doubleWordAt: 12+1
|
8015
|
912 |
!
|
|
913 |
|
|
914 |
lpstrFilter: anObject
|
|
915 |
"Set the receiver's lpstrFilter field to the value of anObject."
|
|
916 |
|
8037
|
917 |
self doubleWordAt: 12+1 put: anObject
|
8015
|
918 |
!
|
|
919 |
|
|
920 |
lpstrInitialDir
|
|
921 |
"Get the receiver's lpstrInitialDir field."
|
|
922 |
|
8037
|
923 |
^ self doubleWordAt: 44+1
|
8015
|
924 |
!
|
|
925 |
|
|
926 |
lpstrInitialDir: anObject
|
|
927 |
"Set the receiver's lpstrInitialDir field to the value of anObject."
|
|
928 |
|
8037
|
929 |
self doubleWordAt: 44+1 put: anObject
|
8015
|
930 |
!
|
|
931 |
|
|
932 |
lpstrTemplateName
|
|
933 |
"Get the receiver's lpstrTemplateName field."
|
|
934 |
|
8037
|
935 |
^ self doubleWordAt: 72+1
|
8015
|
936 |
!
|
|
937 |
|
|
938 |
lpstrTemplateName: anObject
|
|
939 |
"Set the receiver's lpstrTemplateName field to the value of anObject."
|
|
940 |
|
8037
|
941 |
self doubleWordAt: 72+1 put: anObject
|
8015
|
942 |
!
|
|
943 |
|
|
944 |
lpstrTitle
|
|
945 |
"Get the receiver's lpstrTitle field."
|
|
946 |
|
8037
|
947 |
^ self doubleWordAt: 48+1
|
8015
|
948 |
!
|
|
949 |
|
|
950 |
lpstrTitle: anObject
|
|
951 |
"Set the receiver's lpstrTitle field to the value of anObject."
|
|
952 |
|
8037
|
953 |
self doubleWordAt: 48+1 put: anObject
|
8015
|
954 |
!
|
|
955 |
|
|
956 |
nFileExtension
|
|
957 |
"Get the receiver's nFileExtension field."
|
|
958 |
|
8037
|
959 |
^ self unsignedShortAt: 58+1
|
8015
|
960 |
!
|
|
961 |
|
|
962 |
nFileExtension: anObject
|
|
963 |
"Set the receiver's nFileExtension field to the value of anObject."
|
|
964 |
|
8037
|
965 |
self unsignedShortAt: 58+1 put: anObject
|
8015
|
966 |
!
|
|
967 |
|
|
968 |
nFileOffset
|
|
969 |
"Get the receiver's nFileOffset field."
|
|
970 |
|
8037
|
971 |
^ self unsignedShortAt: 56+1
|
8015
|
972 |
!
|
|
973 |
|
|
974 |
nFileOffset: anObject
|
|
975 |
"Set the receiver's nFileOffset field to the value of anObject."
|
|
976 |
|
8037
|
977 |
self unsignedShortAt: 56+1 put: anObject
|
8015
|
978 |
!
|
|
979 |
|
|
980 |
nFilterIndex
|
|
981 |
"Get the receiver's nFilterIndex field."
|
|
982 |
|
8037
|
983 |
^ self doubleWordAt: 24+1
|
8015
|
984 |
!
|
|
985 |
|
|
986 |
nFilterIndex: anObject
|
|
987 |
"Set the receiver's nFilterIndex field to the value of anObject."
|
|
988 |
|
8037
|
989 |
self doubleWordAt: 24+1 put: anObject
|
8015
|
990 |
!
|
|
991 |
|
|
992 |
nMaxCustFilter
|
|
993 |
"Get the receiver's nMaxCustFilter field."
|
|
994 |
|
8037
|
995 |
^ self doubleWordAt: 20+1
|
8015
|
996 |
!
|
|
997 |
|
|
998 |
nMaxCustFilter: anObject
|
|
999 |
"Set the receiver's nMaxCustFilter field to the value of anObject."
|
|
1000 |
|
8037
|
1001 |
self doubleWordAt: 20+1 put: anObject
|
8015
|
1002 |
!
|
|
1003 |
|
|
1004 |
nMaxFile
|
|
1005 |
"Get the receiver's nMaxFile field."
|
|
1006 |
|
8037
|
1007 |
^ self doubleWordAt: 32+1
|
8015
|
1008 |
!
|
|
1009 |
|
|
1010 |
nMaxFile: anObject
|
|
1011 |
"Set the receiver's nMaxFile field to the value of anObject."
|
|
1012 |
|
8037
|
1013 |
self doubleWordAt: 32+1 put: anObject
|
8015
|
1014 |
!
|
|
1015 |
|
|
1016 |
nMaxFileTitle
|
|
1017 |
"Get the receiver's nMaxFileTitle field."
|
|
1018 |
|
8037
|
1019 |
^ self doubleWordAt: 40+1
|
8015
|
1020 |
!
|
|
1021 |
|
|
1022 |
nMaxFileTitle: anObject
|
|
1023 |
"Set the receiver's nMaxFileTitle field to the value of anObject."
|
|
1024 |
|
8037
|
1025 |
self doubleWordAt: 40+1 put: anObject
|
8015
|
1026 |
!
|
|
1027 |
|
|
1028 |
sizeInBytes
|
|
1029 |
|
|
1030 |
^ self class sizeInBytes
|
|
1031 |
! !
|
|
1032 |
|
|
1033 |
!Win32FileDialog::OpenFilenameStructure methodsFor:'printing'!
|
|
1034 |
|
|
1035 |
printOn: aStream
|
|
1036 |
|
|
1037 |
super printOn: aStream.
|
|
1038 |
aStream cr.
|
|
1039 |
aStream nextPutAll:'flags: ', self flags printString; cr.
|
|
1040 |
aStream nextPutAll:'hInstance: ', self hInstance printString; cr.
|
|
1041 |
aStream nextPutAll:'hwndOwner: ', self hwndOwner printString; cr.
|
|
1042 |
aStream nextPutAll:'lCustData: ', self lCustData printString; cr.
|
|
1043 |
aStream nextPutAll:'lpfnHook: ', self lpfnHook printString; cr.
|
|
1044 |
aStream nextPutAll:'lpstrCustomFilter: ', self lpstrCustomFilter printString; cr.
|
|
1045 |
aStream nextPutAll:'lpstrDefExt: ', self lpstrDefExt printString; cr.
|
|
1046 |
aStream nextPutAll:'lpstrFile: ', self lpstrFile printString; cr.
|
|
1047 |
aStream nextPutAll:'lpstrFileTitle: ', self lpstrFileTitle printString; cr.
|
|
1048 |
aStream nextPutAll:'lpstrFilter: ', self lpstrFilter printString; cr.
|
|
1049 |
aStream nextPutAll:'lpstrInitialDir: ', self lpstrInitialDir printString; cr.
|
|
1050 |
aStream nextPutAll:'lpstrTemplateName: ', self lpstrTemplateName printString; cr.
|
|
1051 |
aStream nextPutAll:'lStructSize: ', self lStructSize printString; cr.
|
|
1052 |
aStream nextPutAll:'nFileExtension: ', self nFileExtension printString; cr.
|
|
1053 |
aStream nextPutAll:'nFileOffset: ', self nFileOffset printString; cr.
|
|
1054 |
aStream nextPutAll:'nFilterIndex: ', self nFilterIndex printString; cr.
|
|
1055 |
aStream nextPutAll:'nMaxCustFilter: ', self nMaxCustFilter printString; cr.
|
|
1056 |
aStream nextPutAll:'nMaxFile: ', self nMaxFile printString; cr.
|
|
1057 |
aStream nextPutAll:'nMaxFileTitle: ', self nMaxFileTitle printString; cr.
|
|
1058 |
! !
|
|
1059 |
|
|
1060 |
!Win32FileDialog class methodsFor:'documentation'!
|
|
1061 |
|
|
1062 |
version
|
9345
|
1063 |
^ '$Header: /cvs/stx/stx/libtool/Win32FileDialog.st,v 1.7 2010-02-01 09:51:29 cg Exp $'
|
|
1064 |
!
|
|
1065 |
|
|
1066 |
version_CVS
|
|
1067 |
^ '$Header: /cvs/stx/stx/libtool/Win32FileDialog.st,v 1.7 2010-02-01 09:51:29 cg Exp $'
|
8015
|
1068 |
! !
|