author | Stefan Vogel <sv@exept.de> |
Thu, 24 Mar 2011 15:34:11 +0100 | |
changeset 9799 | d908e671b942 |
parent 9580 | 0412197f0e64 |
child 10756 | eaa975e29a38 |
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 |
|
9799 | 46 |
<resource: #programImage> |
4318 | 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 |
6389 | 339 |
|aspectList writeToCurrentFileBrowser| |
4574 | 340 |
|
341 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
|
6389 | 342 |
|
343 |
writeToCurrentFileBrowser := (settingsDialog notNil and:[settingsDialog isKindOf:AbstractFileBrowser]). |
|
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
344 |
aspectList keysDo:[ :anAspect | |value| |
6389 | 345 |
value := (self perform:anAspect) value. |
346 |
(currentUserPrefs perform:((anAspect asString, ':') asSymbol) with:value). |
|
4574 | 347 |
writeToCurrentFileBrowser ifTrue:[ |
6389 | 348 |
(settingsDialog perform:anAspect) value:value. |
4574 | 349 |
]. |
350 |
]. |
|
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
351 |
|
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
352 |
"Modified: / 15-10-2010 / 10:29:28 / cg" |
4574 | 353 |
! |
354 |
||
5102 | 355 |
helpFilename |
356 |
^ 'FileBrowserV2/settings.html' |
|
4318 | 357 |
! |
358 |
||
4574 | 359 |
readSettings |
6389 | 360 |
|receiver aspectList| |
4318 | 361 |
|
6389 | 362 |
receiver := (settingsDialog notNil and:[settingsDialog isKindOf:AbstractFileBrowser]) ifTrue:[ |
363 |
settingsDialog |
|
4574 | 364 |
] ifFalse:[ |
365 |
currentUserPrefs |
|
366 |
]. |
|
4318 | 367 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
368 |
aspectList keysDo:[:anAspect | |
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
369 |
|value| |
6389 | 370 |
value := (receiver perform:anAspect) value. |
371 |
(self perform:anAspect) value:value |
|
4318 | 372 |
]. |
4574 | 373 |
self modifiedChannel value:false |
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
374 |
|
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
375 |
"Modified: / 03-04-2007 / 08:45:12 / cg" |
4318 | 376 |
! ! |
377 |
||
378 |
!FileBrowserV2SettingsAppl methodsFor:'aspects'! |
|
379 |
||
380 |
filenameEntryFieldVisibleHolder |
|
381 |
filenameEntryFieldVisibleHolder isNil ifTrue:[ |
|
382 |
filenameEntryFieldVisibleHolder := true asValue. |
|
5042 | 383 |
filenameEntryFieldVisibleHolder onChangeSend:#updateModifiedChannel |
384 |
to:self |
|
4318 | 385 |
]. |
5042 | 386 |
^ filenameEntryFieldVisibleHolder |
4318 | 387 |
! |
388 |
||
389 |
openAlwaysInTextEditor |
|
390 |
openAlwaysInTextEditor isNil ifTrue:[ |
|
391 |
openAlwaysInTextEditor := true asValue. |
|
5042 | 392 |
openAlwaysInTextEditor onChangeSend:#updateModifiedChannel to:self |
4318 | 393 |
]. |
5042 | 394 |
^ openAlwaysInTextEditor |
4318 | 395 |
! |
396 |
||
397 |
openMultipleApplicationsForType |
|
398 |
openMultipleApplicationsForType isNil ifTrue:[ |
|
399 |
openMultipleApplicationsForType := true asValue. |
|
5042 | 400 |
openMultipleApplicationsForType onChangeSend:#updateModifiedChannel |
401 |
to:self |
|
4318 | 402 |
]. |
5042 | 403 |
^ openMultipleApplicationsForType |
4318 | 404 |
! |
405 |
||
406 |
showDirectoryTree |
|
407 |
showDirectoryTree isNil ifTrue:[ |
|
408 |
showDirectoryTree := true asValue. |
|
5042 | 409 |
showDirectoryTree onChangeSend:#updateModifiedChannel to:self |
4318 | 410 |
]. |
5042 | 411 |
^ showDirectoryTree |
4318 | 412 |
! |
413 |
||
414 |
showHiddenFiles |
|
415 |
showHiddenFiles isNil ifTrue:[ |
|
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
416 |
showHiddenFiles := true asValue. |
5042 | 417 |
showHiddenFiles onChangeSend:#updateModifiedChannel to:self |
4318 | 418 |
]. |
5042 | 419 |
^ showHiddenFiles |
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
420 |
|
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
421 |
"Modified: / 15-10-2010 / 10:28:07 / cg" |
4318 | 422 |
! |
423 |
||
424 |
sortCaseless |
|
425 |
sortCaseless isNil ifTrue:[ |
|
426 |
sortCaseless := true asValue. |
|
5042 | 427 |
sortCaseless onChangeSend:#updateModifiedChannel to:self |
4318 | 428 |
]. |
5042 | 429 |
^ sortCaseless |
4318 | 430 |
! |
431 |
||
432 |
sortDirectoriesBeforeFiles |
|
433 |
sortDirectoriesBeforeFiles isNil ifTrue:[ |
|
434 |
sortDirectoriesBeforeFiles := true asValue. |
|
5042 | 435 |
sortDirectoriesBeforeFiles onChangeSend:#updateModifiedChannel to:self |
4318 | 436 |
]. |
5042 | 437 |
^ sortDirectoriesBeforeFiles |
4318 | 438 |
! |
439 |
||
440 |
toolBarVisibleHolder |
|
441 |
toolBarVisibleHolder isNil ifTrue:[ |
|
442 |
toolBarVisibleHolder := true asValue. |
|
5042 | 443 |
toolBarVisibleHolder onChangeSend:#updateModifiedChannel to:self |
4318 | 444 |
]. |
5042 | 445 |
^ toolBarVisibleHolder |
4318 | 446 |
! |
447 |
||
448 |
viewDescription |
|
449 |
viewDescription isNil ifTrue:[ |
|
5325 | 450 |
viewDescription := false asValue. |
5042 | 451 |
viewDescription onChangeSend:#updateModifiedChannel to:self |
4318 | 452 |
]. |
5042 | 453 |
^ viewDescription |
4318 | 454 |
! |
455 |
||
456 |
viewDetails |
|
457 |
viewDetails isNil ifTrue:[ |
|
458 |
viewDetails := true asValue. |
|
5042 | 459 |
viewDetails onChangeSend:#updateModifiedChannel to:self |
4318 | 460 |
]. |
5042 | 461 |
^ viewDetails |
4318 | 462 |
! |
463 |
||
464 |
viewDirectoryDescription |
|
465 |
viewDirectoryDescription isNil ifTrue:[ |
|
466 |
viewDirectoryDescription := true asValue. |
|
5042 | 467 |
viewDirectoryDescription onChangeSend:#updateModifiedChannel to:self |
4318 | 468 |
]. |
5042 | 469 |
^ viewDirectoryDescription |
4318 | 470 |
! |
471 |
||
472 |
viewDirsInContentsBrowser |
|
473 |
viewDirsInContentsBrowser isNil ifTrue:[ |
|
474 |
viewDirsInContentsBrowser := true asValue. |
|
5042 | 475 |
viewDirsInContentsBrowser onChangeSend:#updateModifiedChannel to:self |
4318 | 476 |
]. |
5042 | 477 |
^ viewDirsInContentsBrowser |
4318 | 478 |
! |
479 |
||
480 |
viewFilesInDirectoryTree |
|
481 |
viewFilesInDirectoryTree isNil ifTrue:[ |
|
482 |
viewFilesInDirectoryTree := true asValue. |
|
5042 | 483 |
viewFilesInDirectoryTree onChangeSend:#updateModifiedChannel to:self |
4318 | 484 |
]. |
5042 | 485 |
^ viewFilesInDirectoryTree |
4318 | 486 |
! |
487 |
||
488 |
viewGroup |
|
489 |
viewGroup isNil ifTrue:[ |
|
490 |
viewGroup := true asValue. |
|
5042 | 491 |
viewGroup onChangeSend:#updateModifiedChannel to:self |
4318 | 492 |
]. |
5042 | 493 |
^ viewGroup |
4318 | 494 |
! |
495 |
||
496 |
viewOwner |
|
497 |
viewOwner isNil ifTrue:[ |
|
498 |
viewOwner := true asValue. |
|
5042 | 499 |
viewOwner onChangeSend:#updateModifiedChannel to:self |
4318 | 500 |
]. |
5042 | 501 |
^ viewOwner |
4318 | 502 |
! |
503 |
||
504 |
viewPermissions |
|
505 |
viewPermissions isNil ifTrue:[ |
|
506 |
viewPermissions := true asValue. |
|
5042 | 507 |
viewPermissions onChangeSend:#updateModifiedChannel to:self |
4318 | 508 |
]. |
5042 | 509 |
^ viewPermissions |
4318 | 510 |
! |
511 |
||
512 |
viewPreview |
|
513 |
viewPreview isNil ifTrue:[ |
|
514 |
viewPreview := true asValue. |
|
5042 | 515 |
viewPreview onChangeSend:#updateModifiedChannel to:self |
4318 | 516 |
]. |
5042 | 517 |
^ viewPreview |
4318 | 518 |
! |
519 |
||
520 |
viewSize |
|
521 |
viewSize isNil ifTrue:[ |
|
522 |
viewSize := true asValue. |
|
5042 | 523 |
viewSize onChangeSend:#updateModifiedChannel to:self |
4318 | 524 |
]. |
5042 | 525 |
^ viewSize |
4318 | 526 |
! |
527 |
||
4966 | 528 |
viewSizeInBytes |
529 |
viewSizeInBytes isNil ifTrue:[ |
|
530 |
viewSizeInBytes := false asValue. |
|
5042 | 531 |
viewSizeInBytes onChangeSend:#updateModifiedChannel to:self |
4966 | 532 |
]. |
5042 | 533 |
^ viewSizeInBytes |
4966 | 534 |
! |
535 |
||
5344 | 536 |
viewSizeInKiloBytes |
537 |
viewSizeInKiloBytes isNil ifTrue:[ |
|
538 |
viewSizeInKiloBytes := false asValue. |
|
539 |
viewSizeInKiloBytes onChangeSend:#updateModifiedChannel to:self |
|
540 |
]. |
|
541 |
^ viewSizeInKiloBytes |
|
542 |
! |
|
543 |
||
4318 | 544 |
viewTime |
545 |
viewTime isNil ifTrue:[ |
|
546 |
viewTime := true asValue. |
|
5042 | 547 |
viewTime onChangeSend:#updateModifiedChannel to:self |
4318 | 548 |
]. |
5042 | 549 |
^ viewTime |
4318 | 550 |
! |
551 |
||
552 |
viewType |
|
553 |
viewType isNil ifTrue:[ |
|
554 |
viewType := true asValue. |
|
5042 | 555 |
viewType onChangeSend:#updateModifiedChannel to:self |
4318 | 556 |
]. |
5042 | 557 |
^ viewType |
4318 | 558 |
! ! |
559 |
||
560 |
!FileBrowserV2SettingsAppl methodsFor:'queries'! |
|
561 |
||
562 |
hasUnsavedChanges |
|
563 |
||
6389 | 564 |
|aspectList receiver| |
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
565 |
|
6389 | 566 |
receiver := (settingsDialog notNil and:[settingsDialog isKindOf:AbstractFileBrowser]) ifTrue:[ |
567 |
settingsDialog |
|
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
568 |
] ifFalse:[ |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
569 |
currentUserPrefs |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
570 |
]. |
4318 | 571 |
|
572 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
|
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
573 |
aspectList keysDo:[:anAspect | |
6389 | 574 |
(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
|
575 |
^ true |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
576 |
] |
4318 | 577 |
]. |
578 |
^ false |
|
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
579 |
|
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
580 |
"Modified: / 03-04-2007 / 08:45:27 / cg" |
4318 | 581 |
! ! |
582 |
||
583 |
!FileBrowserV2SettingsAppl class methodsFor:'documentation'! |
|
584 |
||
585 |
version |
|
9799 | 586 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2SettingsAppl.st,v 1.25 2011-03-24 14:34:11 stefan Exp $' |
9117 | 587 |
! |
588 |
||
589 |
version_CVS |
|
9799 | 590 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2SettingsAppl.st,v 1.25 2011-03-24 14:34:11 stefan Exp $' |
4318 | 591 |
! ! |