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