author | Claus Gittinger <cg@exept.de> |
Thu, 18 Dec 2008 02:12:34 +0100 | |
changeset 8497 | 08a96ef8a3c4 |
parent 8395 | 3596ebae2d90 |
child 8498 | 3f0be0fbfbec |
permissions | -rw-r--r-- |
6179 | 1 |
" |
2 |
COPYRIGHT (c) 2004 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 |
" |
|
5302 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
14 |
ToolApplicationModel subclass:#MultiViewToolApplication |
|
15 |
instanceVariableNames:'workspaces tabList selectedWorkspaceIndexHolder workspaceHolder' |
|
8497 | 16 |
classVariableNames:'DefaultInfoVisible DefaultEditToolBarVisible' |
5302 | 17 |
poolDictionaries:'' |
18 |
category:'Interface-Smalltalk' |
|
19 |
! |
|
20 |
||
21 |
!MultiViewToolApplication class methodsFor:'documentation'! |
|
22 |
||
6179 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
5302 | 37 |
documentation |
38 |
" |
|
8497 | 39 |
Common code for multiView applications (Workspace, Terminal app and maybe more later) |
5302 | 40 |
|
41 |
[author:] |
|
42 |
Claus Gittinger |
|
43 |
" |
|
44 |
! ! |
|
45 |
||
7824 | 46 |
!MultiViewToolApplication class methodsFor:'defaults'! |
47 |
||
8497 | 48 |
defaultEditToolbarVisible |
49 |
^ DefaultEditToolBarVisible ? false |
|
50 |
||
51 |
"Created: / 14-07-2007 / 16:38:47 / cg" |
|
52 |
! |
|
53 |
||
7824 | 54 |
defaultInfoVisible |
55 |
^ DefaultInfoVisible ? true |
|
56 |
||
57 |
"Created: / 14-07-2007 / 16:38:32 / cg" |
|
58 |
! |
|
59 |
||
60 |
defaultToolbarVisible |
|
61 |
^ DefaultToolBarVisible ? false |
|
62 |
||
63 |
"Created: / 14-07-2007 / 16:38:47 / cg" |
|
64 |
! ! |
|
65 |
||
7650 | 66 |
!MultiViewToolApplication class methodsFor:'help specs'! |
67 |
||
68 |
helpSpec |
|
69 |
"This resource specification was automatically generated |
|
70 |
by the UIHelpTool of ST/X." |
|
71 |
||
72 |
"Do not manually edit this!! If it is corrupted, |
|
73 |
the UIHelpTool may not be able to read the specification." |
|
74 |
||
75 |
" |
|
76 |
UIHelpTool openOnClass:MultiViewToolApplication |
|
77 |
" |
|
78 |
||
79 |
<resource: #help> |
|
80 |
||
81 |
^ super helpSpec addPairsFrom:#( |
|
82 |
||
83 |
#hideToolBar |
|
84 |
'' |
|
85 |
||
86 |
) |
|
87 |
! ! |
|
88 |
||
89 |
!MultiViewToolApplication class methodsFor:'image specs'! |
|
90 |
||
91 |
hideToolBarIcon |
|
92 |
<resource: #programImage> |
|
93 |
||
94 |
^ ToolbarIconLibrary hideToolBarIcon |
|
95 |
||
96 |
"Created: / 18-02-2007 / 14:53:38 / cg" |
|
97 |
! ! |
|
98 |
||
5302 | 99 |
!MultiViewToolApplication class methodsFor:'interface specs'! |
100 |
||
101 |
windowSpec |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
102 |
"This resource specification was automatically generated |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
103 |
by the UIPainter of ST/X." |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
104 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
105 |
"Do not manually edit this!! If it is corrupted, |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
106 |
the UIPainter may not be able to read the specification." |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
107 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
108 |
" |
7650 | 109 |
UIPainter new openOnClass:MultiViewToolApplication andSelector:#windowSpec |
110 |
MultiViewToolApplication new openInterface:#windowSpec |
|
111 |
MultiViewToolApplication open |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
112 |
" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
113 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
114 |
<resource: #canvas> |
5302 | 115 |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
116 |
^ |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
117 |
#(FullSpec |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
118 |
name: windowSpec |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
119 |
window: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
120 |
(WindowSpec |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
121 |
label: 'Workspace' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
122 |
name: 'Workspace' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
123 |
min: (Point 10 10) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
124 |
bounds: (Rectangle 0 0 432 241) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
125 |
menu: mainMenu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
126 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
127 |
component: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
128 |
(SpecCollection |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
129 |
collection: ( |
7650 | 130 |
(ViewSpec |
131 |
name: 'ToolBar' |
|
8231 | 132 |
layout: (LayoutFrame 0 0 0 0 0 1 32 0) |
7650 | 133 |
visibilityChannel: toolBarVisibleHolder |
134 |
component: |
|
135 |
(SpecCollection |
|
136 |
collection: ( |
|
137 |
(ActionButtonSpec |
|
138 |
label: 'hideToolBarIcon' |
|
139 |
name: 'HideToolBarButton' |
|
140 |
layout: (LayoutFrame 0 0 0 0 13 0 0 1) |
|
141 |
activeHelpKey: hideToolBar |
|
142 |
hasCharacterOrientedLabel: false |
|
143 |
translateLabel: true |
|
144 |
model: hideToolbar |
|
145 |
postBuildCallback: hideToolBarButtonCreated: |
|
146 |
) |
|
147 |
(MenuPanelSpec |
|
148 |
name: 'ToolBarMenu' |
|
149 |
layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0) |
|
150 |
visibilityChannel: toolBarVisibleHolder |
|
151 |
menu: toolBarMenu |
|
152 |
textDefault: true |
|
153 |
) |
|
154 |
) |
|
155 |
||
156 |
) |
|
157 |
) |
|
8497 | 158 |
(ViewSpec |
159 |
name: 'EditToolBar' |
|
160 |
layout: (LayoutFrame 0 0 32 0 0 1 64 0) |
|
161 |
visibilityChannel: editToolBarVisibleHolder |
|
162 |
component: |
|
163 |
(SpecCollection |
|
164 |
collection: ( |
|
165 |
(ActionButtonSpec |
|
166 |
label: 'hideToolBarIcon' |
|
167 |
name: 'HideEditToolBarButton' |
|
168 |
layout: (LayoutFrame 0 0 0 0 13 0 0 1) |
|
169 |
activeHelpKey: hideToolBar |
|
170 |
hasCharacterOrientedLabel: false |
|
171 |
translateLabel: true |
|
172 |
model: hideEditToolbar |
|
173 |
postBuildCallback: hideToolBarButtonCreated: |
|
174 |
) |
|
175 |
(MenuPanelSpec |
|
176 |
name: 'EditToolBar1' |
|
177 |
layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0) |
|
178 |
visibilityChannel: editToolBarVisibleHolder |
|
179 |
menu: editToolBarMenu |
|
180 |
textDefault: true |
|
181 |
) |
|
182 |
) |
|
183 |
||
184 |
) |
|
185 |
) |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
186 |
(NoteBookViewSpec |
7650 | 187 |
name: 'NoteBook' |
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
188 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
189 |
model: selectedWorkspaceIndexHolder |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
190 |
menu: tabList |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
191 |
useIndex: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
192 |
accessTabMenuAction: tabMenuAt: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
193 |
destroyTabAction: destroyTab: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
194 |
canvas: workspaceHolder |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
195 |
canvasInset: 0 |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
196 |
keepCanvasAlive: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
197 |
tabLevel: 1 |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
198 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
199 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
200 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
201 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
202 |
) |
5302 | 203 |
! ! |
204 |
||
205 |
!MultiViewToolApplication class methodsFor:'menu specs'! |
|
206 |
||
8497 | 207 |
editToolBarMenu |
208 |
"This resource specification was automatically generated |
|
209 |
by the MenuEditor of ST/X." |
|
210 |
||
211 |
"Do not manually edit this!! If it is corrupted, |
|
212 |
the MenuEditor may not be able to read the specification." |
|
213 |
||
214 |
" |
|
215 |
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#toolBarMenu |
|
216 |
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication toolBarMenu)) startUp |
|
217 |
" |
|
218 |
||
219 |
<resource: #menu> |
|
220 |
||
221 |
^ |
|
222 |
#(Menu |
|
223 |
( |
|
224 |
) |
|
225 |
nil |
|
226 |
nil |
|
227 |
) |
|
228 |
||
229 |
"Modified: / 18-02-2007 / 14:59:21 / cg" |
|
230 |
! |
|
231 |
||
5302 | 232 |
mainMenu |
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
233 |
"This resource specification was automatically generated |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
234 |
by the MenuEditor of ST/X." |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
235 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
236 |
"Do not manually edit this!! If it is corrupted, |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
237 |
the MenuEditor may not be able to read the specification." |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
238 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
239 |
" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
240 |
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#mainMenu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
241 |
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication mainMenu)) startUp |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
242 |
" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
243 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
244 |
<resource: #menu> |
5302 | 245 |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
246 |
^ |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
247 |
#(Menu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
248 |
( |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
249 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
250 |
label: 'File' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
251 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
252 |
submenu: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
253 |
(Menu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
254 |
( |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
255 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
256 |
label: 'New Editor' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
257 |
itemValue: newWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
258 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
259 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
260 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
261 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
262 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
263 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
264 |
label: 'Load File...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
265 |
itemValue: menuLoad |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
266 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
267 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
268 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
269 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
270 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
271 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
272 |
label: 'Save As...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
273 |
itemValue: menuSaveAs |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
274 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
275 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
276 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
277 |
enabled: hasMultipleBuffersHolder |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
278 |
label: 'Save all As...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
279 |
itemValue: menuSaveAllAs |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
280 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
281 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
282 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
283 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
284 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
285 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
286 |
label: 'Print...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
287 |
itemValue: menuPrint |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
288 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
289 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
290 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
291 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
292 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
293 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
294 |
label: 'Exit' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
295 |
itemValue: closeRequest |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
296 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
297 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
298 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
299 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
300 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
301 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
302 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
303 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
304 |
label: 'Buffers' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
305 |
nameKey: Buffer |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
306 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
307 |
submenu: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
308 |
(Menu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
309 |
( |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
310 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
311 |
label: 'Add Buffer' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
312 |
itemValue: addWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
313 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
314 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
315 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
316 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
317 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
318 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
319 |
label: 'Rename...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
320 |
itemValue: renameWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
321 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
322 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
323 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
324 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
325 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
326 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
327 |
enabled: canRemoveWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
328 |
label: 'Remove Buffer' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
329 |
itemValue: removeWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
330 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
331 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
332 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
333 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
334 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
335 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
336 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
337 |
(MenuItem |
7650 | 338 |
label: 'View' |
339 |
translateLabel: true |
|
340 |
submenuChannel: viewMenu |
|
341 |
keepLinkedMenu: true |
|
342 |
) |
|
343 |
(MenuItem |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
344 |
label: 'Edit' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
345 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
346 |
submenu: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
347 |
(Menu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
348 |
( |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
349 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
350 |
enabled: hasSelectionInActiveWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
351 |
label: 'Cut' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
352 |
itemValue: cutSelection |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
353 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
354 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
355 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
356 |
enabled: hasSelectionInActiveWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
357 |
label: 'Copy' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
358 |
itemValue: copySelection |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
359 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
360 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
361 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
362 |
label: 'Paste' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
363 |
itemValue: paste |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
364 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
365 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
366 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
367 |
label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
368 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
369 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
370 |
label: 'Select All' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
371 |
itemValue: selectAll |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
372 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
373 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
374 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
375 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
376 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
377 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
378 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
379 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
380 |
label: 'MENU_Help' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
381 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
382 |
startGroup: conditionalRight |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
383 |
submenu: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
384 |
(Menu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
385 |
( |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
386 |
(MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
387 |
label: 'About this Application...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
388 |
itemValue: openAboutThisApplication |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
389 |
translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
390 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
391 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
392 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
393 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
394 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
395 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
396 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
397 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
398 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
399 |
) |
7650 | 400 |
|
401 |
"Modified: / 18-02-2007 / 15:18:25 / cg" |
|
5302 | 402 |
! |
403 |
||
404 |
tabMenu |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
405 |
"This resource specification was automatically generated |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
406 |
by the MenuEditor of ST/X." |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
407 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
408 |
"Do not manually edit this!! If it is corrupted, |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
409 |
the MenuEditor may not be able to read the specification." |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
410 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
411 |
" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
412 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#tabMenu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
413 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication tabMenu)) startUp |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
414 |
" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
415 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
416 |
<resource: #menu> |
5302 | 417 |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
418 |
^ |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
419 |
#(#Menu |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
420 |
#( |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
421 |
#(#MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
422 |
#label: 'Add Tab' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
423 |
#translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
424 |
"/ #triggerOnDown: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
425 |
#value: #addWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
426 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
427 |
#(#MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
428 |
#label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
429 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
430 |
#(#MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
431 |
#label: 'Remove Tab' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
432 |
#translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
433 |
"/ #triggerOnDown: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
434 |
#value: #removeWorkspace: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
435 |
#enabled: #canRemoveWorkspace: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
436 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
437 |
#(#MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
438 |
#label: '-' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
439 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
440 |
#(#MenuItem |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
441 |
#label: 'Rename...' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
442 |
#translateLabel: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
443 |
"/ #triggerOnDown: true |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
444 |
#value: #renameWorkspace: |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
445 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
446 |
) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
447 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
448 |
nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
449 |
) |
7650 | 450 |
! |
451 |
||
452 |
toolBarMenu |
|
453 |
"This resource specification was automatically generated |
|
454 |
by the MenuEditor of ST/X." |
|
455 |
||
456 |
"Do not manually edit this!! If it is corrupted, |
|
457 |
the MenuEditor may not be able to read the specification." |
|
458 |
||
459 |
" |
|
460 |
MenuEditor new openOnClass:MultiViewToolApplication andSelector:#toolBarMenu |
|
461 |
(Menu new fromLiteralArrayEncoding:(MultiViewToolApplication toolBarMenu)) startUp |
|
462 |
" |
|
463 |
||
464 |
<resource: #menu> |
|
465 |
||
466 |
^ |
|
467 |
#(Menu |
|
468 |
( |
|
469 |
(MenuItem |
|
470 |
label: '' |
|
471 |
) |
|
472 |
(MenuItem |
|
473 |
"/ activeHelpKey: addWorkspace |
|
474 |
label: 'Add Buffer' |
|
475 |
itemValue: addWorkspace |
|
476 |
translateLabel: true |
|
477 |
isButton: true |
|
478 |
labelImage: (ResourceRetriever ToolbarIconLibrary addBufferIcon) |
|
479 |
) |
|
480 |
) |
|
481 |
nil |
|
482 |
nil |
|
483 |
) |
|
484 |
||
485 |
"Modified: / 18-02-2007 / 14:59:21 / cg" |
|
486 |
! |
|
487 |
||
488 |
viewMenu |
|
489 |
"This resource specification was automatically generated |
|
490 |
by the MenuEditor of ST/X." |
|
491 |
||
492 |
"Do not manually edit this!! If it is corrupted, |
|
493 |
the MenuEditor may not be able to read the specification." |
|
494 |
||
495 |
" |
|
496 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#viewMenu |
|
497 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication viewMenu)) startUp |
|
498 |
" |
|
499 |
||
500 |
<resource: #menu> |
|
501 |
||
502 |
^ |
|
503 |
#(Menu |
|
504 |
( |
|
505 |
(MenuItem |
|
506 |
label: 'Toolbar' |
|
507 |
translateLabel: true |
|
508 |
hideMenuOnActivated: false |
|
509 |
indication: toolBarVisibleHolder |
|
510 |
) |
|
511 |
(MenuItem |
|
8497 | 512 |
label: 'Editor Toolbar' |
513 |
translateLabel: true |
|
514 |
hideMenuOnActivated: false |
|
515 |
indication: editToolBarVisibleHolder |
|
516 |
isVisible: hasEditToolBar |
|
517 |
) |
|
518 |
(MenuItem |
|
7650 | 519 |
label: 'Info' |
520 |
translateLabel: true |
|
521 |
isVisible: false |
|
522 |
hideMenuOnActivated: false |
|
7653
71f20b5aab8d
Do not refer to non-existant aspect
Stefan Vogel <sv@exept.de>
parents:
7650
diff
changeset
|
523 |
indication: infoVisibleHolder |
7650 | 524 |
) |
525 |
) |
|
526 |
nil |
|
527 |
nil |
|
528 |
) |
|
7824 | 529 |
|
530 |
"Modified: / 14-07-2007 / 16:49:04 / cg" |
|
5302 | 531 |
! ! |
532 |
||
533 |
!MultiViewToolApplication class methodsFor:'queries'! |
|
534 |
||
535 |
isVisualStartable |
|
536 |
"return true, if this application can be started via #open. |
|
537 |
(to allow start of a change browser via double-click in the browser)" |
|
538 |
||
5303 | 539 |
self == MultiViewToolApplication ifTrue:[^false]. |
5302 | 540 |
^ super isVisualStartable |
541 |
! ! |
|
542 |
||
543 |
!MultiViewToolApplication methodsFor:'accessing'! |
|
544 |
||
545 |
selectedWorkspace |
|
546 |
|wsIndex| |
|
547 |
||
548 |
workspaces isNil ifTrue:[ |
|
549 |
workspaces := OrderedCollection new. |
|
550 |
]. |
|
551 |
wsIndex := self selectedWorkspaceIndexHolder value. |
|
552 |
wsIndex == 0 ifTrue:[ |
|
553 |
^ nil |
|
554 |
]. |
|
555 |
||
556 |
workspaces size < wsIndex ifTrue:[ |
|
557 |
workspaces grow:wsIndex. |
|
558 |
workspaces at:wsIndex put:(self createWorkspace). |
|
559 |
]. |
|
560 |
^ workspaces at:wsIndex |
|
561 |
! |
|
562 |
||
563 |
tabMenuAt:index |
|
6244 | 564 |
<resource: #programMenu> |
565 |
||
5302 | 566 |
|m i ws| |
567 |
||
568 |
m := self class tabMenu. |
|
569 |
m := m decodeAsLiteralArray. |
|
570 |
i := m detectItem:[:item | item value == #removeWorkspace:] ifNone:nil. |
|
571 |
i notNil ifTrue:[ |
|
572 |
i argument:index. |
|
573 |
index ~~ self selectedWorkspaceIndexHolder value ifTrue:[ |
|
574 |
"/ for now: if that buffer is modified, |
|
575 |
"/ do not allow removing. |
|
576 |
"/ (must be brought to front, in order for check-for-modification to work) |
|
577 |
ws := workspaces at:index. |
|
578 |
(ws isKindOf:ScrollableView) ifTrue:[ |
|
579 |
ws := ws scrolledView |
|
580 |
]. |
|
581 |
((ws isKindOf:TextView) not |
|
582 |
or:[ ws modified ]) |
|
583 |
ifTrue:[ |
|
584 |
i disable |
|
585 |
]. |
|
586 |
]. |
|
587 |
]. |
|
588 |
i := m detectItem:[:item | item value == #renameWorkspace:] ifNone:nil. |
|
589 |
i notNil ifTrue:[ |
|
590 |
i argument:index. |
|
591 |
]. |
|
592 |
||
593 |
m findGuiResourcesIn:self. |
|
594 |
^ m |
|
595 |
! |
|
596 |
||
597 |
workspaceHolder |
|
598 |
workspaceHolder isNil ifTrue:[ |
|
599 |
workspaceHolder := ValueHolder with:(self selectedWorkspace). |
|
600 |
]. |
|
601 |
^ workspaceHolder |
|
7852 | 602 |
! |
603 |
||
604 |
workspaces |
|
605 |
^ workspaces |
|
5302 | 606 |
! ! |
607 |
||
608 |
!MultiViewToolApplication methodsFor:'aspects'! |
|
609 |
||
8497 | 610 |
editToolBarVisibleHolder |
611 |
|holder| |
|
612 |
||
613 |
(holder := builder bindingAt:#editToolBarVisibleHolder) isNil ifTrue:[ |
|
614 |
holder := self class defaultEditToolbarVisible asValue. |
|
615 |
builder aspectAt:#editToolBarVisibleHolder put: holder. |
|
616 |
holder addDependent:self. |
|
617 |
]. |
|
618 |
^ holder |
|
619 |
||
620 |
"Created: / 18-02-2007 / 14:43:39 / cg" |
|
621 |
"Modified: / 14-07-2007 / 16:39:55 / cg" |
|
622 |
! |
|
623 |
||
624 |
hasEditToolBar |
|
625 |
^ (self menuFor:#editToolBarMenu) decodeAsLiteralArray hasItems |
|
626 |
! |
|
627 |
||
7650 | 628 |
infoVisibleHolder |
629 |
|holder| |
|
630 |
||
631 |
(holder := builder bindingAt:#infoVisibleHolder) isNil ifTrue:[ |
|
7824 | 632 |
holder := self class defaultInfoVisible asValue. |
7650 | 633 |
builder aspectAt:#infoVisibleHolder put: holder. |
634 |
holder addDependent:self. |
|
635 |
]. |
|
636 |
^ holder |
|
637 |
||
638 |
"Created: / 18-02-2007 / 15:01:05 / cg" |
|
7824 | 639 |
"Modified: / 14-07-2007 / 16:39:20 / cg" |
7650 | 640 |
! |
641 |
||
5302 | 642 |
selectedWorkspaceIndexHolder |
643 |
selectedWorkspaceIndexHolder isNil ifTrue:[ |
|
644 |
selectedWorkspaceIndexHolder := 1 asValue. |
|
645 |
selectedWorkspaceIndexHolder onChangeSend:#workspaceSelectionChanged to:self. |
|
646 |
]. |
|
647 |
^ selectedWorkspaceIndexHolder. |
|
648 |
! |
|
649 |
||
650 |
tabList |
|
651 |
tabList isNil ifTrue:[ |
|
652 |
tabList := List new. |
|
653 |
]. |
|
654 |
^ tabList. |
|
7650 | 655 |
! |
656 |
||
657 |
toolBarVisibleHolder |
|
658 |
|holder| |
|
659 |
||
660 |
(holder := builder bindingAt:#toolBarVisibleHolder) isNil ifTrue:[ |
|
7824 | 661 |
holder := self class defaultToolbarVisible asValue. |
7650 | 662 |
builder aspectAt:#toolBarVisibleHolder put: holder. |
663 |
holder addDependent:self. |
|
664 |
]. |
|
665 |
^ holder |
|
666 |
||
667 |
"Created: / 18-02-2007 / 14:43:39 / cg" |
|
7824 | 668 |
"Modified: / 14-07-2007 / 16:39:55 / cg" |
5302 | 669 |
! ! |
670 |
||
671 |
!MultiViewToolApplication methodsFor:'aspects-queries'! |
|
672 |
||
673 |
canRemoveWorkspace |
|
674 |
^ self canRemoveWorkspace:(self selectedWorkspaceIndexHolder value) |
|
675 |
! |
|
676 |
||
677 |
canRemoveWorkspace:idx |
|
678 |
^ self tabList size > 1 |
|
679 |
"/ and:[ (self workspacesTextViewAt:(self selectedWorkspaceIndexHolder value)) |
|
680 |
! |
|
681 |
||
682 |
hasMultipleBuffersHolder |
|
683 |
^ [ workspaces size > 1 ] |
|
684 |
! |
|
685 |
||
686 |
hasSelectionInActiveWorkspace |
|
6424 | 687 |
|v| |
688 |
||
689 |
v := self selectedWorkspacesTextView. |
|
690 |
^ v notNil and:[v selectionAsString size > 0] |
|
5302 | 691 |
! ! |
692 |
||
7650 | 693 |
!MultiViewToolApplication methodsFor:'change & update'! |
694 |
||
8497 | 695 |
infoVisibilityChanged |
696 |
|visible cFrame bottomOffset| |
|
697 |
||
698 |
visible := self infoVisibleHolder value. |
|
699 |
||
700 |
cFrame := builder findComponentAt:#EditorNoteBook. "/ #CodeView. |
|
701 |
cFrame notNil ifTrue:[ |
|
702 |
visible ifFalse:[ |
|
703 |
bottomOffset := 0. |
|
704 |
] ifTrue:[ |
|
705 |
bottomOffset := -25. |
|
706 |
]. |
|
707 |
cFrame layout bottomOffset:bottomOffset. |
|
708 |
cFrame container notNil ifTrue:[ |
|
709 |
cFrame containerChangedSize. |
|
710 |
]. |
|
711 |
]. |
|
712 |
DefaultInfoVisible := visible |
|
713 |
||
714 |
"Created: / 18-02-2007 / 15:01:55 / cg" |
|
715 |
! |
|
716 |
||
717 |
toolBarVisibilityChanged |
|
718 |
|toolBarVisible editToolBarVisible toolBar editToolBar noteBook topOffset| |
|
719 |
||
720 |
topOffset := 0. |
|
721 |
||
722 |
toolBar := self componentAt:#ToolBar. |
|
723 |
toolBar notNil ifTrue:[ |
|
724 |
toolBarVisible := self toolBarVisibleHolder value. |
|
725 |
DefaultToolBarVisible := toolBarVisible. |
|
726 |
toolBarVisible ifTrue:[ |
|
727 |
topOffset := topOffset + toolBar height. |
|
728 |
] |
|
729 |
]. |
|
730 |
||
731 |
editToolBar := self componentAt:#EditToolBar. |
|
732 |
editToolBar notNil ifTrue:[ |
|
733 |
editToolBar layout |
|
734 |
topOffset:topOffset bottomOffset:(topOffset + editToolBar height). |
|
735 |
"/ force it to recompute its dimension |
|
736 |
editToolBar container notNil ifTrue:[ |
|
737 |
editToolBar containerChangedSize. |
|
738 |
]. |
|
739 |
editToolBarVisible := self editToolBarVisibleHolder value. |
|
740 |
DefaultEditToolBarVisible := editToolBarVisible. |
|
741 |
editToolBarVisible ifTrue:[ |
|
742 |
topOffset := topOffset + editToolBar height. |
|
743 |
] |
|
744 |
]. |
|
745 |
||
746 |
noteBook := self componentAt:#NoteBook. |
|
747 |
noteBook notNil ifTrue:[ |
|
748 |
noteBook layout topOffset:topOffset. |
|
749 |
"/ force it to recompute its dimension |
|
750 |
noteBook container notNil ifTrue:[ |
|
751 |
noteBook containerChangedSize. |
|
752 |
]. |
|
753 |
]. |
|
754 |
||
755 |
"Created: / 18-02-2007 / 14:46:22 / cg" |
|
756 |
! |
|
757 |
||
7650 | 758 |
update:something with:aParameter from:changedObject |
8497 | 759 |
((changedObject == self toolBarVisibleHolder) |
760 |
or:[ changedObject == self editToolBarVisibleHolder ]) ifTrue:[ |
|
7650 | 761 |
self toolBarVisibilityChanged. |
762 |
^ self |
|
763 |
]. |
|
7824 | 764 |
changedObject == self infoVisibleHolder ifTrue:[ |
765 |
self infoVisibilityChanged. |
|
766 |
^ self |
|
767 |
]. |
|
7650 | 768 |
^ super update:something with:aParameter from:changedObject |
769 |
||
7824 | 770 |
"Modified: / 14-07-2007 / 16:46:14 / cg" |
7650 | 771 |
! ! |
772 |
||
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
773 |
!MultiViewToolApplication methodsFor:'defaults'! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
774 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
775 |
defaultFileNameForLoad |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
776 |
^ 'file.txt' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
777 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
778 |
"Created: / 25-10-2006 / 14:56:19 / cg" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
779 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
780 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
781 |
defaultFileNameForSave |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
782 |
^ 'file.txt' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
783 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
784 |
"Modified: / 25-10-2006 / 14:54:13 / cg" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
785 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
786 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
787 |
defaultFileNameForSaveAll |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
788 |
^ 'file.txt' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
789 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
790 |
"Modified: / 25-10-2006 / 14:55:50 / cg" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
791 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
792 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
793 |
defaultPatternLoad |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
794 |
^ '*.txt' |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
795 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
796 |
"Created: / 25-10-2006 / 14:57:18 / cg" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
797 |
! ! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
798 |
|
7650 | 799 |
!MultiViewToolApplication methodsFor:'initialization'! |
800 |
||
801 |
hideToolBarButtonCreated:aButton |
|
802 |
aButton passiveLevel:(MenuPanel defaultLevel). |
|
803 |
"/ aButton passiveLevel:1. |
|
804 |
aButton activeLevel:-1. |
|
805 |
aButton backgroundColor:(MenuPanel defaultBackgroundColor). |
|
806 |
||
807 |
"Created: / 18-02-2007 / 14:48:28 / cg" |
|
808 |
! |
|
809 |
||
810 |
postBuildWith:aBuilder |
|
811 |
super postBuildWith:aBuilder. |
|
8497 | 812 |
|
7650 | 813 |
self infoVisibleHolder value ifTrue:[ self infoVisibilityChanged ]. |
8497 | 814 |
(self toolBarVisibleHolder value |
815 |
or:[ self editToolBarVisibleHolder value ]) ifTrue:[ self toolBarVisibilityChanged ]. |
|
7650 | 816 |
|
817 |
"Created: / 18-02-2007 / 15:03:08 / cg" |
|
818 |
! ! |
|
819 |
||
5302 | 820 |
!MultiViewToolApplication methodsFor:'menu-actions'! |
821 |
||
822 |
addWindow:aWindow named:name |
|
823 |
^ self addWindow:aWindow named:name asFirst:false |
|
824 |
! |
|
825 |
||
826 |
addWindow:aWindow named:name asFirst:asFirst |
|
827 |
|tabList wsIndex newSelectedIndex| |
|
828 |
||
829 |
tabList := self tabList. |
|
830 |
wsIndex := tabList size + 1. |
|
831 |
wsIndex == 1 ifTrue:[ |
|
832 |
"/ first - add a name for the first tab |
|
833 |
tabList add:(self window label). "/ 'Workspace'. |
|
834 |
wsIndex := wsIndex + 1. |
|
835 |
]. |
|
836 |
||
837 |
workspaces grow:wsIndex. |
|
838 |
asFirst ifTrue:[ |
|
839 |
tabList addFirst:(name bindWith:wsIndex). |
|
840 |
workspaces replaceFrom:2 to:wsIndex with:workspaces startingAt:1. |
|
841 |
newSelectedIndex := 1. |
|
842 |
] ifFalse:[ |
|
843 |
tabList addLast:(name bindWith:wsIndex). |
|
844 |
newSelectedIndex := wsIndex. |
|
845 |
]. |
|
846 |
workspaces at:newSelectedIndex put:aWindow. |
|
847 |
self selectedWorkspaceIndexHolder value:newSelectedIndex. |
|
848 |
"/ workspaceHolder value:aWindow. |
|
849 |
! |
|
850 |
||
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
851 |
addWorkspace |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
852 |
self addWindow:(self createWorkspace) named:'Workspace%1' |
6408
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
853 |
! |
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
854 |
|
6458 | 855 |
destroyTab:tabIndex |
856 |
self removeWorkspace:tabIndex |
|
857 |
! |
|
858 |
||
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
859 |
loadFile:aFileName |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
860 |
self loadFile:aFileName encoding:nil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
861 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
862 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
863 |
loadFile:aFileName encoding:encodingSymbolOrNil |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
864 |
|lbl| |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
865 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
866 |
lbl := aFileName asFilename withoutSuffix baseName. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
867 |
self loadFile:aFileName encoding:encodingSymbolOrNil label:lbl. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
868 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
869 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
870 |
loadFile:aFileName encoding:encodingSymbolOrNil label:label |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
871 |
|file ws| |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
872 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
873 |
file := aFileName asFilename. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
874 |
ws := self selectedWorkspacesTextView. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
875 |
[ |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
876 |
|contents| |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
877 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
878 |
contents := file contents. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
879 |
encodingSymbolOrNil notNil ifTrue:[ |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
880 |
contents := contents encodeFrom:encodingSymbolOrNil into:#'unicode'. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
881 |
ws externalEncoding:encodingSymbolOrNil. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
882 |
]. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
883 |
ws contents:contents. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
884 |
ws defaultFileNameForFileDialog:file pathName. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
885 |
] on:StreamError do:[:ex| |
8368 | 886 |
Dialog warn:(resources stringWithCRs:'Cannot open "%1":\\%2' with:file asString with:ex description). |
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
887 |
^ self |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
888 |
]. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
889 |
ws modified:false. |
8033 | 890 |
self setLabel:label. |
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
891 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
892 |
|
7745 | 893 |
loadFile:aFileName label:lbl |
894 |
|encoding| |
|
895 |
||
896 |
encoding := CharacterEncoder guessEncodingOfFile:aFileName. |
|
897 |
(encoding == #'iso8859-1' or:[encoding == #'ascii']) ifTrue:[ |
|
898 |
encoding := nil |
|
899 |
]. |
|
900 |
self loadFile:aFileName encoding:encoding label:lbl. |
|
901 |
||
902 |
"Created: / 15-03-2007 / 11:52:21 / cg" |
|
903 |
! |
|
904 |
||
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
905 |
menuLoad |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
906 |
|file| |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
907 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
908 |
(self askIfModified:'Text was modified. Load anyway ?' yesButton:'Load') ifFalse:[ ^ self]. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
909 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
910 |
file := Dialog |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
911 |
requestFileName:(resources string:'Load file') |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
912 |
default:(self defaultFileNameForLoad) |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
913 |
pattern:(self defaultPatternLoad). |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
914 |
file size ~~ 0 ifTrue:[ |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
915 |
self loadFile:file |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
916 |
] |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
917 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
918 |
"Modified: / 25-10-2006 / 14:57:34 / cg" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
919 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
920 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
921 |
menuPrint |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
922 |
|ws| |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
923 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
924 |
ws := self selectedWorkspacesTextView. |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
925 |
ws doPrint |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
926 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
927 |
"Created: / 25-10-2006 / 15:01:51 / cg" |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
928 |
! |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
929 |
|
5302 | 930 |
menuSaveAllAs |
931 |
self |
|
932 |
askForFile:'Save all Buffers into:' |
|
8196 | 933 |
default:(self defaultFileNameForSaveAll) |
5302 | 934 |
thenDo:[:file :doAppend | |
935 |
|ws append| |
|
936 |
||
937 |
append := doAppend. |
|
938 |
workspaces do:[:subView | |
|
939 |
|ws| |
|
940 |
||
941 |
ws := self workspaceViewOfView:subView. |
|
942 |
ws notNil ifTrue:[ |
|
943 |
ws saveAs:file doAppend:append. |
|
944 |
ws modified:false. |
|
945 |
]. |
|
946 |
append := true. |
|
947 |
]. |
|
948 |
] |
|
949 |
! |
|
950 |
||
951 |
menuSaveAs |
|
952 |
self |
|
6408
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
953 |
askForFile:'Save Buffer into:' |
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
954 |
default:(self defaultFileNameForSave) |
5302 | 955 |
thenDo:[:file :doAppend | |
8033 | 956 |
|ws lbl| |
5302 | 957 |
|
958 |
ws := self selectedWorkspacesTextView. |
|
959 |
ws saveAs:file doAppend:doAppend. |
|
960 |
ws modified:false. |
|
8395
3596ebae2d90
changed #defaultFileNameForSave
Claus Gittinger <cg@exept.de>
parents:
8368
diff
changeset
|
961 |
"/ ws defaultFileNameForFileDialog:file asFilename baseName. |
8033 | 962 |
|
963 |
lbl := file asFilename withoutSuffix baseName. |
|
964 |
self setLabel:lbl. |
|
5302 | 965 |
] |
966 |
! |
|
967 |
||
968 |
newWorkspace |
|
6863 | 969 |
self class new openWithExtent:(self builder window extent). |
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
970 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
971 |
"Modified: / 25-10-2006 / 14:39:15 / cg" |
5302 | 972 |
! |
973 |
||
974 |
removeWorkspace |
|
975 |
self removeWorkspace:(self selectedWorkspaceIndexHolder value) |
|
976 |
! |
|
977 |
||
978 |
removeWorkspace:wsIndex |
|
979 |
|tabList newWsIndex| |
|
980 |
||
981 |
wsIndex == self selectedWorkspaceIndexHolder value ifTrue:[ |
|
6509 | 982 |
(self askIfModified:'Text was modified. Remove buffer anyway ?' yesButton:'Remove Buffer') ifFalse:[ |
5302 | 983 |
^ self |
984 |
]. |
|
985 |
]. |
|
986 |
||
987 |
tabList := self tabList. |
|
988 |
||
989 |
wsIndex == tabList size ifTrue:[ |
|
990 |
newWsIndex := wsIndex - 1. |
|
991 |
] ifFalse:[ |
|
992 |
newWsIndex := wsIndex. |
|
993 |
]. |
|
994 |
||
995 |
tabList removeIndex:wsIndex. |
|
996 |
(workspaces at:wsIndex) destroy. |
|
997 |
workspaces removeIndex:wsIndex. |
|
998 |
||
999 |
tabList size == 1 ifTrue:[ |
|
1000 |
self window label:(tabList at:1). |
|
1001 |
tabList removeIndex:1 |
|
1002 |
]. |
|
1003 |
||
1004 |
workspaceHolder value:(workspaces at:newWsIndex). |
|
1005 |
self selectedWorkspaceIndexHolder value:newWsIndex. |
|
1006 |
"/ to force change (update workspaceHolder - even if same index) |
|
1007 |
self selectedWorkspaceIndexHolder changed:#value. |
|
1008 |
! |
|
1009 |
||
1010 |
renameWorkspace |
|
1011 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) |
|
1012 |
! |
|
1013 |
||
1014 |
renameWorkspace:wsIndex |
|
1015 |
|tabList oldName newName| |
|
1016 |
||
1017 |
tabList := self tabList. |
|
1018 |
tabList isEmpty ifTrue:[ |
|
1019 |
oldName := self window label |
|
1020 |
] ifFalse:[ |
|
1021 |
oldName := tabList at:wsIndex. |
|
1022 |
]. |
|
1023 |
newName := Dialog request:(resources string:'New Name for %1:' with:oldName) initialAnswer:oldName. |
|
1024 |
newName size == 0 ifTrue:[ ^ self]. |
|
1025 |
||
1026 |
self renameWorkspace:wsIndex to:newName. |
|
1027 |
! |
|
1028 |
||
1029 |
renameWorkspace:wsIndex to:newName |
|
1030 |
|tabList| |
|
1031 |
||
1032 |
tabList := self tabList. |
|
1033 |
tabList notEmpty ifTrue:[ |
|
1034 |
tabList at:wsIndex put:newName. |
|
1035 |
]. |
|
1036 |
wsIndex == self selectedWorkspaceIndexHolder value ifTrue:[ |
|
1037 |
self window label:newName. |
|
1038 |
]. |
|
1039 |
! ! |
|
1040 |
||
1041 |
!MultiViewToolApplication methodsFor:'menu-actions-editing'! |
|
1042 |
||
1043 |
copySelection |
|
1044 |
self selectedWorkspacesTextView copySelection |
|
1045 |
! |
|
1046 |
||
1047 |
cutSelection |
|
1048 |
self selectedWorkspacesTextView cutSelection |
|
1049 |
! |
|
1050 |
||
1051 |
paste |
|
1052 |
self selectedWorkspacesTextView paste |
|
1053 |
! |
|
1054 |
||
1055 |
paste:aString |
|
1056 |
self selectedWorkspacesTextView paste:aString. |
|
1057 |
! |
|
1058 |
||
1059 |
selectAll |
|
1060 |
self selectedWorkspacesTextView selectAll. |
|
1061 |
! ! |
|
1062 |
||
1063 |
!MultiViewToolApplication methodsFor:'private'! |
|
1064 |
||
6408
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1065 |
askForFile:question default:defaultFilename thenDo:aBlock |
5302 | 1066 |
Dialog |
1067 |
requestSaveFileName:(resources string:question) |
|
6408
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1068 |
default:defaultFilename |
5302 | 1069 |
fromDirectory:nil |
1070 |
action:[:fileName | aBlock value:fileName value:false] |
|
1071 |
appendAction:[:fileName | aBlock value:fileName value:true] |
|
1072 |
||
1073 |
"/ |file doAppend| |
|
1074 |
"/ |
|
1075 |
"/ doAppend := false. |
|
1076 |
"/ Dialog aboutToOpenBoxNotificationSignal handle:[:n | |
|
1077 |
"/ |box| |
|
1078 |
"/ |
|
1079 |
"/ box := n parameter. |
|
1080 |
"/ box addButton:(Button label:'Append' action:[doAppend := true. box okPressed]). |
|
1081 |
"/ n proceed. |
|
1082 |
"/ ] do:[ |
|
1083 |
"/ file := Dialog requestFileName:question default:'file.wsp'. |
|
1084 |
"/ ]. |
|
1085 |
"/ file isEmptyOrNil ifFalse:[ |
|
1086 |
"/ aBlock value:file value:doAppend |
|
1087 |
"/ ]. |
|
1088 |
! |
|
1089 |
||
6408
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1090 |
askForFile:question thenDo:aBlock |
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1091 |
^ self |
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1092 |
askForFile:question default:'file.wsp' thenDo:aBlock |
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1093 |
! |
e0f701a20cae
remember last-saved fileName for next default
Claus Gittinger <cg@exept.de>
parents:
6354
diff
changeset
|
1094 |
|
5302 | 1095 |
askIfAnyModified:arg1 yesButton:arg2 |
1096 |
"raise an error: must be redefined in concrete subclass(es)" |
|
1097 |
||
1098 |
^ self subclassResponsibility |
|
1099 |
! |
|
1100 |
||
1101 |
askIfModified:question yesButton:yesButtonText |
|
1102 |
"tell user, that code has been modified - let her confirm" |
|
1103 |
||
1104 |
|textView| |
|
1105 |
||
1106 |
textView := self selectedWorkspace. |
|
1107 |
(self isModifiedWorkspace:textView) ifFalse:[^ true]. |
|
1108 |
||
1109 |
(Dialog |
|
6354 | 1110 |
confirm:(resources stringWithCRs:question) |
6634 | 1111 |
yesLabel:(resources string:yesButtonText) |
1112 |
noLabel:(resources string:'Cancel')) |
|
5302 | 1113 |
ifTrue:[ |
1114 |
"/ reset modified flag so question is asked only once |
|
1115 |
textView modified:false. |
|
1116 |
^ true |
|
1117 |
]. |
|
1118 |
^ false |
|
1119 |
||
1120 |
"Modified: 2.10.1997 / 14:23:47 / stefan" |
|
1121 |
! |
|
1122 |
||
1123 |
createWorkspace |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
1124 |
|ws| |
5302 | 1125 |
|
7475
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
1126 |
ws := (HVScrollableView for:EditTextView). |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
1127 |
^ ws |
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
1128 |
|
54b889153fc7
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
6863
diff
changeset
|
1129 |
"Modified: / 25-10-2006 / 14:34:19 / cg" |
5302 | 1130 |
! |
1131 |
||
1132 |
isModifiedWorkspace:aView |
|
1133 |
self subclassResponsibility |
|
1134 |
! |
|
1135 |
||
1136 |
selectedWorkspacesTextView |
|
1137 |
^ self workspaceViewOfView:(self selectedWorkspace) |
|
1138 |
! |
|
1139 |
||
8033 | 1140 |
setLabel:label |
1141 |
tabList size > 1 ifTrue:[ |
|
1142 |
tabList at:self selectedWorkspaceIndexHolder value put:label |
|
1143 |
]. |
|
1144 |
self window label:label. |
|
1145 |
! |
|
1146 |
||
5302 | 1147 |
workspaceSelectionChanged |
1148 |
|wsIndex windowLabel v| |
|
1149 |
||
1150 |
"/ self selected |
|
1151 |
self workspaceHolder value:(v := self selectedWorkspace). |
|
1152 |
wsIndex := self selectedWorkspaceIndexHolder value. |
|
1153 |
||
1154 |
wsIndex ~~ 0 ifTrue:[ |
|
1155 |
windowLabel := tabList at:wsIndex ifAbsent:nil. |
|
1156 |
windowLabel notNil ifTrue:[self window label:windowLabel]. |
|
1157 |
]. |
|
1158 |
! |
|
1159 |
||
1160 |
workspaceViewOfView:aView |
|
1161 |
|view| |
|
1162 |
||
1163 |
view := aView. |
|
7663 | 1164 |
|
5302 | 1165 |
(view isScrollWrapper) ifTrue:[ |
1166 |
view := view scrolledView. |
|
1167 |
view isNil ifTrue:[^ nil]. |
|
1168 |
]. |
|
7663 | 1169 |
|
5302 | 1170 |
(view isTextView) ifFalse:[ |
7663 | 1171 |
(view isKindOf:InspectorView) ifTrue:[ |
1172 |
view := view workspace. |
|
1173 |
(view isScrollWrapper) ifTrue:[ |
|
1174 |
view := view scrolledView |
|
1175 |
]. |
|
5302 | 1176 |
]. |
1177 |
]. |
|
7663 | 1178 |
(view isTextView) ifTrue:[^ view]. |
1179 |
^ view allSubViewsDetect:[:v| v name = #Workspace] ifNone:nil. |
|
5302 | 1180 |
! ! |
1181 |
||
7650 | 1182 |
!MultiViewToolApplication methodsFor:'user actions'! |
1183 |
||
8497 | 1184 |
hideEditToolbar |
1185 |
self editToolBarVisibleHolder value:false |
|
1186 |
! |
|
1187 |
||
7650 | 1188 |
hideToolbar |
1189 |
self toolBarVisibleHolder value:false |
|
1190 |
||
1191 |
"Created: / 18-02-2007 / 14:55:54 / cg" |
|
1192 |
! ! |
|
1193 |
||
5302 | 1194 |
!MultiViewToolApplication class methodsFor:'documentation'! |
1195 |
||
1196 |
version |
|
8497 | 1197 |
^ '$Header: /cvs/stx/stx/libtool/MultiViewToolApplication.st,v 1.24 2008-12-18 01:12:34 cg Exp $' |
5302 | 1198 |
! ! |