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