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