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