author | Claus Gittinger <cg@exept.de> |
Tue, 25 Jun 2013 16:04:25 +0200 | |
changeset 13007 | d71b508f4592 |
parent 13006 | f5c4d034874d |
child 13178 | c9bf900fe729 |
child 14120 | c0edd37113db |
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) |
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
100 |
bounds: (Rectangle 0 0 620 559) |
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' |
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
107 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
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 |
) |
|
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
168 |
extent: (Point 620 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 |
) |
|
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
195 |
extent: (Point 620 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 |
) |
|
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
295 |
extent: (Point 620 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' |
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
307 |
layout: (LayoutFrame 0 0 5 0 0 1 0 1) |
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
308 |
horizontalLayout: left |
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
309 |
verticalLayout: top |
13006
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 |
component: |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
313 |
(SpecCollection |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
314 |
collection: ( |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
315 |
(CheckBoxSpec |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
316 |
label: 'Text Editor for all Types' |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
317 |
name: 'CheckBox25' |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
318 |
activeHelpKey: textEditorForAllTypes |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
319 |
model: openAlwaysInTextEditor |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
320 |
translateLabel: true |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
321 |
extent: (Point 435 20) |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
322 |
) |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
323 |
(CheckBoxSpec |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
324 |
label: 'Open Multiple Applications' |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
325 |
name: 'CheckBox9' |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
326 |
activeHelpKey: openMultipleApplications |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
327 |
model: openMultipleApplicationsForType |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
328 |
translateLabel: true |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
329 |
extent: (Point 435 20) |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
330 |
) |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
331 |
(CheckBoxSpec |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
332 |
label: 'Auto Open Directory Description (README)' |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
333 |
name: 'CheckBox10' |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
334 |
activeHelpKey: autoOpenDirectoryDescription |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
335 |
model: viewDirectoryDescription |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
336 |
translateLabel: true |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
337 |
extent: (Point 435 20) |
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
338 |
) |
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 |
) |
10756 | 342 |
) |
343 |
) |
|
344 |
||
345 |
) |
|
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
346 |
extent: (Point 620 108) |
4318 | 347 |
) |
348 |
) |
|
349 |
||
350 |
) |
|
351 |
) |
|
352 |
) |
|
353 |
||
354 |
) |
|
355 |
) |
|
356 |
! ! |
|
357 |
||
5522 | 358 |
!FileBrowserV2SettingsAppl class methodsFor:'resources'! |
359 |
||
360 |
classResources |
|
361 |
^ FileBrowserV2 classResources |
|
362 |
! ! |
|
363 |
||
4318 | 364 |
!FileBrowserV2SettingsAppl methodsFor:'accessing'! |
365 |
||
366 |
requestor |
|
367 |
"return the value of the instance variable 'requestor' (automatically generated)" |
|
368 |
||
369 |
| masterApplication | |
|
370 |
masterApplication := self masterApplication. |
|
371 |
masterApplication notNil ifTrue:[ |
|
372 |
^ masterApplication requestor. |
|
373 |
]. |
|
374 |
^ nil |
|
375 |
! ! |
|
376 |
||
377 |
!FileBrowserV2SettingsAppl methodsFor:'actions'! |
|
378 |
||
4574 | 379 |
basicSaveSettings |
6389 | 380 |
|aspectList writeToCurrentFileBrowser| |
4574 | 381 |
|
382 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
|
6389 | 383 |
|
384 |
writeToCurrentFileBrowser := (settingsDialog notNil and:[settingsDialog isKindOf:AbstractFileBrowser]). |
|
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
385 |
aspectList keysDo:[ :anAspect | |value| |
6389 | 386 |
value := (self perform:anAspect) value. |
387 |
(currentUserPrefs perform:((anAspect asString, ':') asSymbol) with:value). |
|
4574 | 388 |
writeToCurrentFileBrowser ifTrue:[ |
6389 | 389 |
(settingsDialog perform:anAspect) value:value. |
4574 | 390 |
]. |
391 |
]. |
|
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
392 |
|
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
393 |
"Modified: / 15-10-2010 / 10:29:28 / cg" |
4574 | 394 |
! |
395 |
||
5102 | 396 |
helpFilename |
397 |
^ 'FileBrowserV2/settings.html' |
|
4318 | 398 |
! |
399 |
||
4574 | 400 |
readSettings |
6389 | 401 |
|receiver aspectList| |
4318 | 402 |
|
6389 | 403 |
receiver := (settingsDialog notNil and:[settingsDialog isKindOf:AbstractFileBrowser]) ifTrue:[ |
404 |
settingsDialog |
|
4574 | 405 |
] ifFalse:[ |
406 |
currentUserPrefs |
|
407 |
]. |
|
4318 | 408 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
409 |
aspectList keysDo:[:anAspect | |
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
410 |
|value| |
6389 | 411 |
value := (receiver perform:anAspect) value. |
412 |
(self perform:anAspect) value:value |
|
4318 | 413 |
]. |
4574 | 414 |
self modifiedChannel value:false |
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
415 |
|
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
416 |
"Modified: / 03-04-2007 / 08:45:12 / cg" |
4318 | 417 |
! ! |
418 |
||
419 |
!FileBrowserV2SettingsAppl methodsFor:'aspects'! |
|
420 |
||
421 |
filenameEntryFieldVisibleHolder |
|
422 |
filenameEntryFieldVisibleHolder isNil ifTrue:[ |
|
423 |
filenameEntryFieldVisibleHolder := true asValue. |
|
5042 | 424 |
filenameEntryFieldVisibleHolder onChangeSend:#updateModifiedChannel |
425 |
to:self |
|
4318 | 426 |
]. |
5042 | 427 |
^ filenameEntryFieldVisibleHolder |
4318 | 428 |
! |
429 |
||
430 |
openAlwaysInTextEditor |
|
431 |
openAlwaysInTextEditor isNil ifTrue:[ |
|
432 |
openAlwaysInTextEditor := true asValue. |
|
5042 | 433 |
openAlwaysInTextEditor onChangeSend:#updateModifiedChannel to:self |
4318 | 434 |
]. |
5042 | 435 |
^ openAlwaysInTextEditor |
4318 | 436 |
! |
437 |
||
438 |
openMultipleApplicationsForType |
|
439 |
openMultipleApplicationsForType isNil ifTrue:[ |
|
440 |
openMultipleApplicationsForType := true asValue. |
|
5042 | 441 |
openMultipleApplicationsForType onChangeSend:#updateModifiedChannel |
442 |
to:self |
|
4318 | 443 |
]. |
5042 | 444 |
^ openMultipleApplicationsForType |
4318 | 445 |
! |
446 |
||
447 |
showDirectoryTree |
|
448 |
showDirectoryTree isNil ifTrue:[ |
|
449 |
showDirectoryTree := true asValue. |
|
5042 | 450 |
showDirectoryTree onChangeSend:#updateModifiedChannel to:self |
4318 | 451 |
]. |
5042 | 452 |
^ showDirectoryTree |
4318 | 453 |
! |
454 |
||
455 |
showHiddenFiles |
|
456 |
showHiddenFiles isNil ifTrue:[ |
|
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
457 |
showHiddenFiles := true asValue. |
5042 | 458 |
showHiddenFiles onChangeSend:#updateModifiedChannel to:self |
4318 | 459 |
]. |
5042 | 460 |
^ showHiddenFiles |
9580
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
461 |
|
0412197f0e64
changed: #initializeWellKnownExpeccoTypes
Claus Gittinger <cg@exept.de>
parents:
9117
diff
changeset
|
462 |
"Modified: / 15-10-2010 / 10:28:07 / cg" |
4318 | 463 |
! |
464 |
||
465 |
sortCaseless |
|
466 |
sortCaseless isNil ifTrue:[ |
|
467 |
sortCaseless := true asValue. |
|
5042 | 468 |
sortCaseless onChangeSend:#updateModifiedChannel to:self |
4318 | 469 |
]. |
5042 | 470 |
^ sortCaseless |
4318 | 471 |
! |
472 |
||
473 |
sortDirectoriesBeforeFiles |
|
474 |
sortDirectoriesBeforeFiles isNil ifTrue:[ |
|
475 |
sortDirectoriesBeforeFiles := true asValue. |
|
5042 | 476 |
sortDirectoriesBeforeFiles onChangeSend:#updateModifiedChannel to:self |
4318 | 477 |
]. |
5042 | 478 |
^ sortDirectoriesBeforeFiles |
4318 | 479 |
! |
480 |
||
481 |
toolBarVisibleHolder |
|
482 |
toolBarVisibleHolder isNil ifTrue:[ |
|
483 |
toolBarVisibleHolder := true asValue. |
|
5042 | 484 |
toolBarVisibleHolder onChangeSend:#updateModifiedChannel to:self |
4318 | 485 |
]. |
5042 | 486 |
^ toolBarVisibleHolder |
4318 | 487 |
! |
488 |
||
10756 | 489 |
useCodeView2InTools |
13006
f5c4d034874d
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12418
diff
changeset
|
490 |
"/ obsolete - will vanish |
10756 | 491 |
useCodeView2InTools isNil ifTrue:[ |
492 |
useCodeView2InTools := true asValue. |
|
493 |
useCodeView2InTools onChangeSend:#updateModifiedChannel to:self |
|
494 |
]. |
|
495 |
^ useCodeView2InTools |
|
496 |
||
497 |
"Created: / 06-10-2011 / 11:30:42 / cg" |
|
498 |
! |
|
499 |
||
4318 | 500 |
viewDescription |
501 |
viewDescription isNil ifTrue:[ |
|
5325 | 502 |
viewDescription := false asValue. |
5042 | 503 |
viewDescription onChangeSend:#updateModifiedChannel to:self |
4318 | 504 |
]. |
5042 | 505 |
^ viewDescription |
4318 | 506 |
! |
507 |
||
508 |
viewDetails |
|
509 |
viewDetails isNil ifTrue:[ |
|
510 |
viewDetails := true asValue. |
|
5042 | 511 |
viewDetails onChangeSend:#updateModifiedChannel to:self |
4318 | 512 |
]. |
5042 | 513 |
^ viewDetails |
4318 | 514 |
! |
515 |
||
516 |
viewDirectoryDescription |
|
517 |
viewDirectoryDescription isNil ifTrue:[ |
|
518 |
viewDirectoryDescription := true asValue. |
|
5042 | 519 |
viewDirectoryDescription onChangeSend:#updateModifiedChannel to:self |
4318 | 520 |
]. |
5042 | 521 |
^ viewDirectoryDescription |
4318 | 522 |
! |
523 |
||
524 |
viewDirsInContentsBrowser |
|
525 |
viewDirsInContentsBrowser isNil ifTrue:[ |
|
526 |
viewDirsInContentsBrowser := true asValue. |
|
5042 | 527 |
viewDirsInContentsBrowser onChangeSend:#updateModifiedChannel to:self |
4318 | 528 |
]. |
5042 | 529 |
^ viewDirsInContentsBrowser |
4318 | 530 |
! |
531 |
||
532 |
viewFilesInDirectoryTree |
|
533 |
viewFilesInDirectoryTree isNil ifTrue:[ |
|
534 |
viewFilesInDirectoryTree := true asValue. |
|
5042 | 535 |
viewFilesInDirectoryTree onChangeSend:#updateModifiedChannel to:self |
4318 | 536 |
]. |
5042 | 537 |
^ viewFilesInDirectoryTree |
4318 | 538 |
! |
539 |
||
540 |
viewGroup |
|
541 |
viewGroup isNil ifTrue:[ |
|
542 |
viewGroup := true asValue. |
|
5042 | 543 |
viewGroup onChangeSend:#updateModifiedChannel to:self |
4318 | 544 |
]. |
5042 | 545 |
^ viewGroup |
4318 | 546 |
! |
547 |
||
548 |
viewOwner |
|
549 |
viewOwner isNil ifTrue:[ |
|
550 |
viewOwner := true asValue. |
|
5042 | 551 |
viewOwner onChangeSend:#updateModifiedChannel to:self |
4318 | 552 |
]. |
5042 | 553 |
^ viewOwner |
4318 | 554 |
! |
555 |
||
556 |
viewPermissions |
|
557 |
viewPermissions isNil ifTrue:[ |
|
558 |
viewPermissions := true asValue. |
|
5042 | 559 |
viewPermissions onChangeSend:#updateModifiedChannel to:self |
4318 | 560 |
]. |
5042 | 561 |
^ viewPermissions |
4318 | 562 |
! |
563 |
||
564 |
viewPreview |
|
565 |
viewPreview isNil ifTrue:[ |
|
566 |
viewPreview := true asValue. |
|
5042 | 567 |
viewPreview onChangeSend:#updateModifiedChannel to:self |
4318 | 568 |
]. |
5042 | 569 |
^ viewPreview |
4318 | 570 |
! |
571 |
||
572 |
viewSize |
|
573 |
viewSize isNil ifTrue:[ |
|
574 |
viewSize := true asValue. |
|
5042 | 575 |
viewSize onChangeSend:#updateModifiedChannel to:self |
4318 | 576 |
]. |
5042 | 577 |
^ viewSize |
4318 | 578 |
! |
579 |
||
4966 | 580 |
viewSizeInBytes |
581 |
viewSizeInBytes isNil ifTrue:[ |
|
582 |
viewSizeInBytes := false asValue. |
|
5042 | 583 |
viewSizeInBytes onChangeSend:#updateModifiedChannel to:self |
4966 | 584 |
]. |
5042 | 585 |
^ viewSizeInBytes |
4966 | 586 |
! |
587 |
||
5344 | 588 |
viewSizeInKiloBytes |
589 |
viewSizeInKiloBytes isNil ifTrue:[ |
|
590 |
viewSizeInKiloBytes := false asValue. |
|
591 |
viewSizeInKiloBytes onChangeSend:#updateModifiedChannel to:self |
|
592 |
]. |
|
593 |
^ viewSizeInKiloBytes |
|
594 |
! |
|
595 |
||
4318 | 596 |
viewTime |
597 |
viewTime isNil ifTrue:[ |
|
598 |
viewTime := true asValue. |
|
5042 | 599 |
viewTime onChangeSend:#updateModifiedChannel to:self |
4318 | 600 |
]. |
5042 | 601 |
^ viewTime |
4318 | 602 |
! |
603 |
||
604 |
viewType |
|
605 |
viewType isNil ifTrue:[ |
|
606 |
viewType := true asValue. |
|
5042 | 607 |
viewType onChangeSend:#updateModifiedChannel to:self |
4318 | 608 |
]. |
5042 | 609 |
^ viewType |
4318 | 610 |
! ! |
611 |
||
612 |
!FileBrowserV2SettingsAppl methodsFor:'queries'! |
|
613 |
||
614 |
hasUnsavedChanges |
|
615 |
||
6389 | 616 |
|aspectList receiver| |
4939
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
617 |
|
10901 | 618 |
receiver := (settingsDialog notNil |
619 |
and:[settingsDialog isKindOf:AbstractFileBrowser]) |
|
620 |
ifTrue:[ settingsDialog ] |
|
621 |
ifFalse:[ currentUserPrefs ]. |
|
4318 | 622 |
|
623 |
aspectList := AbstractFileBrowser userPreferencesAspectList. |
|
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
624 |
aspectList keysDo:[:anAspect | |
6389 | 625 |
(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
|
626 |
^ true |
101cc4d46184
fixes to allow settings dialog to be opened from browser
Claus Gittinger <cg@exept.de>
parents:
4627
diff
changeset
|
627 |
] |
4318 | 628 |
]. |
629 |
^ false |
|
7786
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
630 |
|
b23413a469e7
oops - aspectlist processing
Claus Gittinger <cg@exept.de>
parents:
6389
diff
changeset
|
631 |
"Modified: / 03-04-2007 / 08:45:27 / cg" |
10901 | 632 |
"Modified (format): / 25-11-2011 / 15:24:25 / cg" |
4318 | 633 |
! ! |
634 |
||
635 |
!FileBrowserV2SettingsAppl class methodsFor:'documentation'! |
|
636 |
||
637 |
version |
|
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
638 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2SettingsAppl.st,v 1.31 2013-06-25 14:04:25 cg Exp $' |
9117 | 639 |
! |
640 |
||
641 |
version_CVS |
|
13007
d71b508f4592
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13006
diff
changeset
|
642 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2SettingsAppl.st,v 1.31 2013-06-25 14:04:25 cg Exp $' |
4318 | 643 |
! ! |
12418
d4fdcbe19d40
class: FileBrowserV2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
10901
diff
changeset
|
644 |