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