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