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