author | Claus Gittinger <cg@exept.de> |
Tue, 03 Jun 2003 12:37:41 +0200 | |
changeset 4939 | 101cc4d46184 |
parent 4627 | 856a643c7854 |
child 4966 | 29a4d15d9f69 |
permissions | -rw-r--r-- |
4318 | 1 |
"{ Package: 'stx:libtool' }" |
2 |
||
3 |
AbstractSettingsApplication subclass:#FileBrowserV2SettingsAppl |
|
4574 | 4 |
instanceVariableNames:'viewFilesInDirectoryTree viewDescription |
4318 | 5 |
sortDirectoriesBeforeFiles showDirectoryTree viewSize viewType |
6 |
viewPermissions viewGroup viewDirsInContentsBrowser viewDetails |
|
7 |
sortCaseless showHiddenFiles openMultipleApplicationsForType |
|
8 |
viewOwner toolBarVisibleHolder viewDirectoryDescription |
|
9 |
openAlwaysInTextEditor viewPreview viewTime |
|
4574 | 10 |
filenameEntryFieldVisibleHolder' |
4318 | 11 |
classVariableNames:'' |
12 |
poolDictionaries:'' |
|
13 |
category:'Interface-Tools-File' |
|
14 |
! |
|
15 |
||
16 |
||
17 |
!FileBrowserV2SettingsAppl class methodsFor:'icon'! |
|
18 |
||
19 |
defaultIcon |
|
20 |
||
21 |
^ FileBrowserV2 applicationIcon |
|
22 |
! ! |
|
23 |
||
24 |
!FileBrowserV2SettingsAppl class methodsFor:'interface specs'! |
|
25 |
||
26 |
windowSpec |
|
27 |
"This resource specification was automatically generated |
|
28 |
by the UIPainter of ST/X." |
|
29 |
||
30 |
"Do not manually edit this!! If it is corrupted, |
|
31 |
the UIPainter may not be able to read the specification." |
|
32 |
||
33 |
" |
|
34 |
UIPainter new openOnClass:FileBrowserV2SettingsAppl andSelector:#windowSpec |
|
35 |
FileBrowserV2SettingsAppl new openInterface:#windowSpec |
|
36 |
FileBrowserV2SettingsAppl open |
|
37 |
" |
|
38 |
||
39 |
<resource: #canvas> |
|
40 |
||
41 |
^ |
|
42 |
#(#FullSpec |
|
43 |
#name: #windowSpec |
|
44 |
#window: |
|
45 |
#(#WindowSpec |
|
46 |
#label: 'Settings' |
|
47 |
#name: 'Settings' |
|
48 |
#min: #(#Point 10 10) |
|
49 |
#max: #(#Point 1024 768) |
|
50 |
#bounds: #(#Rectangle 16 42 450 567) |
|
51 |
) |
|
52 |
#component: |
|
53 |
#(#SpecCollection |
|
54 |
#collection: #( |
|
55 |
#(#VerticalPanelViewSpec |
|
56 |
#name: 'VerticalPanel1' |
|
57 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
58 |
#horizontalLayout: #fit |
|
59 |
#verticalLayout: #center |
|
60 |
#horizontalSpace: 3 |
|
61 |
#verticalSpace: 3 |
|
62 |
#component: |
|
63 |
#(#SpecCollection |
|
64 |
#collection: #( |
|
65 |
#(#VerticalPanelViewSpec |
|
66 |
#name: 'VerticalPanel2' |
|
67 |
#horizontalLayout: #fit |
|
68 |
#verticalLayout: #center |
|
69 |
#horizontalSpace: 3 |
|
70 |
#verticalSpace: 3 |
|
71 |
#component: |
|
72 |
#(#SpecCollection |
|
73 |
#collection: #( |
|
74 |
#(#FramedBoxSpec |
|
75 |
#label: 'Show' |
|
76 |
#name: 'FramedBox1' |
|
77 |
#labelPosition: #topLeft |
|
78 |
#translateLabel: true |
|
79 |
#component: |
|
80 |
#(#SpecCollection |
|
81 |
#collection: #( |
|
82 |
#(#CheckBoxSpec |
|
83 |
#label: 'Hidden Files' |
|
84 |
#name: 'CheckBox1' |
|
85 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 20 0) |
|
86 |
#model: #showHiddenFiles |
|
87 |
#translateLabel: true |
|
88 |
) |
|
89 |
#(#CheckBoxSpec |
|
90 |
#label: 'Directory Tree' |
|
91 |
#name: 'CheckBox2' |
|
92 |
#layout: #(#LayoutFrame 0 0.0 25 0 0 1.0 45 0) |
|
93 |
#model: #showDirectoryTree |
|
94 |
#translateLabel: true |
|
95 |
) |
|
96 |
#(#CheckBoxSpec |
|
97 |
#label: 'Regular Files in TreeView (Left)' |
|
98 |
#name: 'CheckBox3' |
|
99 |
#layout: #(#LayoutFrame 20 0 50 0 0 1.0 70 0) |
|
100 |
#model: #viewFilesInDirectoryTree |
|
101 |
#translateLabel: true |
|
102 |
) |
|
103 |
#(#CheckBoxSpec |
|
104 |
#label: 'Directories in ContentsView (Right)' |
|
105 |
#name: 'CheckBox4' |
|
106 |
#layout: #(#LayoutFrame 0 0.0 75 0 0 1.0 95 0) |
|
107 |
#model: #viewDirsInContentsBrowser |
|
108 |
#translateLabel: true |
|
109 |
) |
|
110 |
#(#CheckBoxSpec |
|
111 |
#label: 'Toolbar' |
|
112 |
#name: 'CheckBox11' |
|
113 |
#layout: #(#LayoutFrame 0 0.0 100 0 0 1.0 120 0) |
|
114 |
#model: #toolBarVisibleHolder |
|
115 |
#translateLabel: true |
|
116 |
) |
|
117 |
#(#CheckBoxSpec |
|
118 |
#label: 'Path Entry && Filter' |
|
119 |
#name: 'CheckBox12' |
|
120 |
#layout: #(#LayoutFrame 0 0.0 125 0 0 1.0 145 0) |
|
121 |
#model: #filenameEntryFieldVisibleHolder |
|
122 |
#translateLabel: true |
|
123 |
) |
|
124 |
) |
|
125 |
||
126 |
) |
|
127 |
#extent: #(#Point 434 175) |
|
128 |
) |
|
129 |
#(#FramedBoxSpec |
|
130 |
#label: 'Sort' |
|
131 |
#name: 'FramedBox2' |
|
132 |
#labelPosition: #topLeft |
|
133 |
#translateLabel: true |
|
134 |
#component: |
|
135 |
#(#SpecCollection |
|
136 |
#collection: #( |
|
137 |
#(#CheckBoxSpec |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
138 |
#label: 'Ignore Case' |
4318 | 139 |
#name: 'CheckBox6' |
140 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 20 0) |
|
141 |
#model: #sortCaseless |
|
142 |
#translateLabel: true |
|
143 |
) |
|
144 |
#(#CheckBoxSpec |
|
145 |
#label: 'Directories before Files' |
|
146 |
#name: 'CheckBox7' |
|
147 |
#layout: #(#LayoutFrame 0 0.0 25 0 0 1.0 45 0) |
|
148 |
#model: #sortDirectoriesBeforeFiles |
|
149 |
#translateLabel: true |
|
150 |
) |
|
151 |
) |
|
152 |
||
153 |
) |
|
154 |
#extent: #(#Point 434 75) |
|
155 |
) |
|
156 |
#(#FramedBoxSpec |
|
157 |
#label: 'Application Notebook' |
|
158 |
#name: 'FramedBox3' |
|
159 |
#labelPosition: #topLeft |
|
160 |
#translateLabel: true |
|
161 |
#component: |
|
162 |
#(#SpecCollection |
|
163 |
#collection: #( |
|
164 |
#(#CheckBoxSpec |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
165 |
#label: 'Text Editor for all Types' |
4318 | 166 |
#name: 'CheckBox8' |
167 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 20 0) |
|
168 |
#model: #openAlwaysInTextEditor |
|
169 |
#translateLabel: true |
|
170 |
) |
|
171 |
#(#CheckBoxSpec |
|
172 |
#label: 'Open Multiple Applications' |
|
173 |
#name: 'CheckBox9' |
|
174 |
#layout: #(#LayoutFrame 0 0.0 25 0 0 1.0 45 0) |
|
175 |
#model: #openMultipleApplicationsForType |
|
176 |
#translateLabel: true |
|
177 |
) |
|
178 |
#(#CheckBoxSpec |
|
179 |
#label: 'Auto Open Directory Description' |
|
180 |
#name: 'CheckBox10' |
|
181 |
#layout: #(#LayoutFrame 0 0.0 50 0 0 1.0 70 0) |
|
182 |
#model: #viewDirectoryDescription |
|
183 |
#translateLabel: true |
|
184 |
) |
|
185 |
) |
|
186 |
||
187 |
) |
|
188 |
#extent: #(#Point 434 100) |
|
189 |
) |
|
190 |
#(#FramedBoxSpec |
|
191 |
#label: 'Show Columns in Contents Browser' |
|
192 |
#name: 'FramedBox4' |
|
193 |
#labelPosition: #topLeft |
|
194 |
#translateLabel: true |
|
195 |
#component: |
|
196 |
#(#SpecCollection |
|
197 |
#collection: #( |
|
198 |
#(#CheckBoxSpec |
|
199 |
#label: 'Details' |
|
200 |
#name: 'CheckBox22' |
|
201 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 20 0) |
|
202 |
#model: #viewDetails |
|
203 |
#translateLabel: true |
|
204 |
) |
|
205 |
#(#CheckBoxSpec |
|
206 |
#label: 'Suffix' |
|
207 |
#name: 'CheckBox13' |
|
208 |
#layout: #(#LayoutFrame 20 0.0 25 0 170 0 45 0) |
|
209 |
#enableChannel: #viewDetails |
|
210 |
#model: #viewType |
|
211 |
#translateLabel: true |
|
212 |
) |
|
213 |
#(#CheckBoxSpec |
|
214 |
#label: 'Permissions' |
|
215 |
#name: 'CheckBox21' |
|
216 |
#layout: #(#LayoutFrame 170 0.0 25 0 -5 1 45 0) |
|
217 |
#enableChannel: #viewDetails |
|
218 |
#model: #viewPermissions |
|
219 |
#translateLabel: true |
|
220 |
) |
|
221 |
#(#CheckBoxSpec |
|
222 |
#label: 'Owner' |
|
223 |
#name: 'CheckBox14' |
|
224 |
#layout: #(#LayoutFrame 20 0.0 50 0 170 0 70 0) |
|
225 |
#enableChannel: #viewDetails |
|
226 |
#model: #viewOwner |
|
227 |
#translateLabel: true |
|
228 |
) |
|
229 |
#(#CheckBoxSpec |
|
230 |
#label: 'Group' |
|
231 |
#name: 'CheckBox18' |
|
232 |
#layout: #(#LayoutFrame 170 0.0 50 0 -5 1 70 0) |
|
233 |
#enableChannel: #viewDetails |
|
234 |
#model: #viewGroup |
|
235 |
#translateLabel: true |
|
236 |
) |
|
237 |
#(#CheckBoxSpec |
|
238 |
#label: 'Size' |
|
239 |
#name: 'CheckBox15' |
|
240 |
#layout: #(#LayoutFrame 20 0.0 75 0 170 0 95 0) |
|
241 |
#enableChannel: #viewDetails |
|
242 |
#model: #viewSize |
|
243 |
#translateLabel: true |
|
244 |
) |
|
245 |
#(#CheckBoxSpec |
|
246 |
#label: 'Date && Time' |
|
247 |
#name: 'CheckBox19' |
|
248 |
#layout: #(#LayoutFrame 170 0.0 75 0 -5 1 95 0) |
|
249 |
#enableChannel: #viewDetails |
|
250 |
#model: #viewTime |
|
251 |
#translateLabel: true |
|
252 |
) |
|
253 |
#(#CheckBoxSpec |
|
254 |
#label: 'File Info' |
|
255 |
#name: 'CheckBox16' |
|
256 |
#layout: #(#LayoutFrame 20 0.0 100 0 170 0 120 0) |
|
257 |
#enableChannel: #viewDetails |
|
258 |
#model: #viewDescription |
|
259 |
#translateLabel: true |
|
260 |
) |
|
261 |
#(#CheckBoxSpec |
|
262 |
#label: 'Preview' |
|
263 |
#name: 'CheckBox20' |
|
264 |
#layout: #(#LayoutFrame 170 0.0 100 0 -5 1 120 0) |
|
265 |
#enableChannel: #viewDetails |
|
266 |
#model: #viewPreview |
|
267 |
#translateLabel: true |
|
268 |
) |
|
269 |
) |
|
270 |
||
271 |
) |
|
272 |
#extent: #(#Point 434 150) |
|
273 |
) |
|
274 |
) |
|
275 |
||
276 |
) |
|
277 |
#extent: #(#Point 434 530) |
|
278 |
) |
|
279 |
) |
|
280 |
||
281 |
) |
|
282 |
) |
|
283 |
) |
|
284 |
||
285 |
) |
|
286 |
) |
|
287 |
! ! |
|
288 |
||
289 |
!FileBrowserV2SettingsAppl methodsFor:'accessing'! |
|
290 |
||
291 |
requestor |
|
292 |
"return the value of the instance variable 'requestor' (automatically generated)" |
|
293 |
||
294 |
| masterApplication | |
|
295 |
masterApplication := self masterApplication. |
|
296 |
masterApplication notNil ifTrue:[ |
|
297 |
^ masterApplication requestor. |
|
298 |
]. |
|
299 |
^ nil |
|
300 |
! ! |
|
301 |
||
302 |
!FileBrowserV2SettingsAppl methodsFor:'actions'! |
|
303 |
||
4574 | 304 |
basicSaveSettings |
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
305 |
|aspectList req writeToCurrentFileBrowser| |
4574 | 306 |
|
307 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
|
308 |
req := self requestor. |
|
309 |
writeToCurrentFileBrowser := (req notNil and:[req isKindOf:AbstractFileBrowser]). |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
310 |
aspectList do:[ :aAspect | |value| |
4574 | 311 |
value := (self perform:aAspect) value. |
312 |
(currentUserPrefs perform:((aAspect asString, ':') asSymbol) with:value). |
|
313 |
writeToCurrentFileBrowser ifTrue:[ |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
314 |
(req perform:aAspect) value:value. |
4574 | 315 |
]. |
316 |
]. |
|
317 |
! |
|
318 |
||
4318 | 319 |
evaluateModified |
320 |
||
321 |
self modifiedChannel value:(self hasUnsavedChanges). |
|
322 |
! |
|
323 |
||
324 |
help |
|
325 |
||
326 |
self warn:'no help available here'. |
|
327 |
"/ self withWaitCursorDo:[HTMLDocumentView openFullOnHelpFile:'Launcher/keyboardSetting.html']. |
|
328 |
! |
|
329 |
||
4574 | 330 |
readSettings |
331 |
|req receiver aspectList| |
|
4318 | 332 |
|
333 |
req := self requestor. |
|
4574 | 334 |
receiver := (req notNil and:[req isKindOf:AbstractFileBrowser]) ifTrue:[ |
335 |
req |
|
336 |
] ifFalse:[ |
|
337 |
currentUserPrefs |
|
338 |
]. |
|
4318 | 339 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
340 |
aspectList do:[:aAspect | |value| |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
341 |
value := (receiver perform:aAspect) value. |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
342 |
(self perform:aAspect) value:value |
4318 | 343 |
]. |
4574 | 344 |
self modifiedChannel value:false |
4318 | 345 |
! ! |
346 |
||
347 |
!FileBrowserV2SettingsAppl methodsFor:'aspects'! |
|
348 |
||
349 |
filenameEntryFieldVisibleHolder |
|
350 |
||
351 |
filenameEntryFieldVisibleHolder isNil ifTrue:[ |
|
352 |
filenameEntryFieldVisibleHolder := true asValue. |
|
353 |
filenameEntryFieldVisibleHolder onChangeSend:#evaluateModified to:self. |
|
354 |
]. |
|
355 |
^ filenameEntryFieldVisibleHolder. |
|
356 |
! |
|
357 |
||
358 |
openAlwaysInTextEditor |
|
359 |
||
360 |
openAlwaysInTextEditor isNil ifTrue:[ |
|
361 |
openAlwaysInTextEditor := true asValue. |
|
362 |
openAlwaysInTextEditor onChangeSend:#evaluateModified to:self. |
|
363 |
]. |
|
364 |
^ openAlwaysInTextEditor. |
|
365 |
! |
|
366 |
||
367 |
openMultipleApplicationsForType |
|
368 |
||
369 |
openMultipleApplicationsForType isNil ifTrue:[ |
|
370 |
openMultipleApplicationsForType := true asValue. |
|
371 |
openMultipleApplicationsForType onChangeSend:#evaluateModified to:self. |
|
372 |
]. |
|
373 |
^ openMultipleApplicationsForType. |
|
374 |
! |
|
375 |
||
376 |
showDirectoryTree |
|
377 |
||
378 |
showDirectoryTree isNil ifTrue:[ |
|
379 |
showDirectoryTree := true asValue. |
|
380 |
showDirectoryTree onChangeSend:#evaluateModified to:self. |
|
381 |
]. |
|
382 |
^ showDirectoryTree. |
|
383 |
! |
|
384 |
||
385 |
showHiddenFiles |
|
386 |
||
387 |
showHiddenFiles isNil ifTrue:[ |
|
388 |
showHiddenFiles := true asValue. |
|
389 |
showHiddenFiles onChangeSend:#evaluateModified to:self. |
|
390 |
]. |
|
391 |
^ showHiddenFiles. |
|
392 |
! |
|
393 |
||
394 |
sortCaseless |
|
395 |
||
396 |
sortCaseless isNil ifTrue:[ |
|
397 |
sortCaseless := true asValue. |
|
398 |
sortCaseless onChangeSend:#evaluateModified to:self. |
|
399 |
]. |
|
400 |
^ sortCaseless. |
|
401 |
! |
|
402 |
||
403 |
sortDirectoriesBeforeFiles |
|
404 |
||
405 |
sortDirectoriesBeforeFiles isNil ifTrue:[ |
|
406 |
sortDirectoriesBeforeFiles := true asValue. |
|
407 |
sortDirectoriesBeforeFiles onChangeSend:#evaluateModified to:self. |
|
408 |
]. |
|
409 |
^ sortDirectoriesBeforeFiles. |
|
410 |
! |
|
411 |
||
412 |
toolBarVisibleHolder |
|
413 |
||
414 |
toolBarVisibleHolder isNil ifTrue:[ |
|
415 |
toolBarVisibleHolder := true asValue. |
|
416 |
toolBarVisibleHolder onChangeSend:#evaluateModified to:self. |
|
417 |
]. |
|
418 |
^ toolBarVisibleHolder. |
|
419 |
! |
|
420 |
||
421 |
viewDescription |
|
422 |
||
423 |
viewDescription isNil ifTrue:[ |
|
424 |
viewDescription := true asValue. |
|
425 |
viewDescription onChangeSend:#evaluateModified to:self. |
|
426 |
]. |
|
427 |
^ viewDescription. |
|
428 |
! |
|
429 |
||
430 |
viewDetails |
|
431 |
||
432 |
viewDetails isNil ifTrue:[ |
|
433 |
viewDetails := true asValue. |
|
434 |
viewDetails onChangeSend:#evaluateModified to:self. |
|
435 |
]. |
|
436 |
^ viewDetails. |
|
437 |
! |
|
438 |
||
439 |
viewDirectoryDescription |
|
440 |
||
441 |
viewDirectoryDescription isNil ifTrue:[ |
|
442 |
viewDirectoryDescription := true asValue. |
|
443 |
viewDirectoryDescription onChangeSend:#evaluateModified to:self. |
|
444 |
]. |
|
445 |
^ viewDirectoryDescription. |
|
446 |
! |
|
447 |
||
448 |
viewDirsInContentsBrowser |
|
449 |
||
450 |
viewDirsInContentsBrowser isNil ifTrue:[ |
|
451 |
viewDirsInContentsBrowser := true asValue. |
|
452 |
viewDirsInContentsBrowser onChangeSend:#evaluateModified to:self. |
|
453 |
]. |
|
454 |
^ viewDirsInContentsBrowser. |
|
455 |
! |
|
456 |
||
457 |
viewFilesInDirectoryTree |
|
458 |
||
459 |
viewFilesInDirectoryTree isNil ifTrue:[ |
|
460 |
viewFilesInDirectoryTree := true asValue. |
|
461 |
viewFilesInDirectoryTree onChangeSend:#evaluateModified to:self. |
|
462 |
]. |
|
463 |
^ viewFilesInDirectoryTree. |
|
464 |
! |
|
465 |
||
466 |
viewGroup |
|
467 |
||
468 |
viewGroup isNil ifTrue:[ |
|
469 |
viewGroup := true asValue. |
|
470 |
viewGroup onChangeSend:#evaluateModified to:self. |
|
471 |
]. |
|
472 |
^ viewGroup. |
|
473 |
! |
|
474 |
||
475 |
viewOwner |
|
476 |
||
477 |
viewOwner isNil ifTrue:[ |
|
478 |
viewOwner := true asValue. |
|
479 |
viewOwner onChangeSend:#evaluateModified to:self. |
|
480 |
]. |
|
481 |
^ viewOwner. |
|
482 |
! |
|
483 |
||
484 |
viewPermissions |
|
485 |
||
486 |
viewPermissions isNil ifTrue:[ |
|
487 |
viewPermissions := true asValue. |
|
488 |
viewPermissions onChangeSend:#evaluateModified to:self. |
|
489 |
]. |
|
490 |
^ viewPermissions. |
|
491 |
! |
|
492 |
||
493 |
viewPreview |
|
494 |
||
495 |
viewPreview isNil ifTrue:[ |
|
496 |
viewPreview := true asValue. |
|
497 |
viewPreview onChangeSend:#evaluateModified to:self. |
|
498 |
]. |
|
499 |
^ viewPreview. |
|
500 |
! |
|
501 |
||
502 |
viewSize |
|
503 |
||
504 |
viewSize isNil ifTrue:[ |
|
505 |
viewSize := true asValue. |
|
506 |
viewSize onChangeSend:#evaluateModified to:self. |
|
507 |
]. |
|
508 |
^ viewSize. |
|
509 |
! |
|
510 |
||
511 |
viewTime |
|
512 |
||
513 |
viewTime isNil ifTrue:[ |
|
514 |
viewTime := true asValue. |
|
515 |
viewTime onChangeSend:#evaluateModified to:self. |
|
516 |
]. |
|
517 |
^ viewTime. |
|
518 |
! |
|
519 |
||
520 |
viewType |
|
521 |
||
522 |
viewType isNil ifTrue:[ |
|
523 |
viewType := true asValue. |
|
524 |
viewType onChangeSend:#evaluateModified to:self. |
|
525 |
]. |
|
526 |
^ viewType. |
|
527 |
! ! |
|
528 |
||
529 |
!FileBrowserV2SettingsAppl methodsFor:'queries'! |
|
530 |
||
531 |
hasUnsavedChanges |
|
532 |
||
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
533 |
|aspectList req receiver| |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
534 |
|
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
535 |
req := self requestor. |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
536 |
receiver := (req notNil and:[req isKindOf:AbstractFileBrowser]) ifTrue:[ |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
537 |
req |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
538 |
] ifFalse:[ |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
539 |
currentUserPrefs |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
540 |
]. |
4318 | 541 |
|
542 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
|
543 |
aspectList do:[ : aAspect | |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
544 |
(self perform:aAspect) value ~= (receiver perform:aAspect) value ifTrue:[ |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
545 |
^ true |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
546 |
] |
4318 | 547 |
]. |
548 |
^ false |
|
549 |
! ! |
|
550 |
||
551 |
!FileBrowserV2SettingsAppl class methodsFor:'documentation'! |
|
552 |
||
553 |
version |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
554 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2SettingsAppl.st,v 1.8 2003-06-03 10:37:41 cg Exp $' |
4318 | 555 |
! ! |