author | Claus Gittinger <cg@exept.de> |
Fri, 04 Jul 2014 12:21:47 +0200 | |
changeset 14574 | 8057b1c7ec88 |
parent 14563 | 61b8b5928152 |
child 14578 | 758b72c5c89b |
permissions | -rw-r--r-- |
9892 | 1 |
" |
14484 | 2 |
COPYRIGHT (c) 2002 by eXept Software AG |
3 |
All Rights Reserved |
|
9892 | 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 |
" |
|
12 |
"{ Package: 'stx:libtool' }" |
|
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
9907 | 16 |
ApplicationModel subclass:#TagsBrowser |
10435 | 17 |
instanceVariableNames:'editedFileHolder commonAspects tagView tagList action tagsMenu |
13632 | 18 |
menus tagsValid tagListGenerator' |
10435 | 19 |
classVariableNames:'' |
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Tools-File-Tags' |
|
9892 | 22 |
! |
23 |
||
24 |
SelectionInListModelView subclass:#TagView |
|
14561 | 25 |
instanceVariableNames:'application process fileName tagLineNr itemHeight' |
10435 | 26 |
classVariableNames:'TypeInset' |
27 |
poolDictionaries:'' |
|
28 |
privateIn:TagsBrowser |
|
9892 | 29 |
! |
30 |
||
31 |
!TagsBrowser class methodsFor:'documentation'! |
|
32 |
||
33 |
copyright |
|
34 |
" |
|
14484 | 35 |
COPYRIGHT (c) 2002 by eXept Software AG |
36 |
All Rights Reserved |
|
9892 | 37 |
|
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
||
45 |
||
46 |
" |
|
9919 | 47 |
! |
48 |
||
49 |
documentation |
|
50 |
" |
|
51 |
a simple tag-support view, which can be plugged into another (file) application |
|
52 |
for indexing. |
|
53 |
Supports a bunch of languages somehow, but none really perfect. |
|
54 |
Uses ctags if present, if not, has naive fallback tag generation support. |
|
55 |
||
10055 | 56 |
Good enough for me, doing occasional work in other languages (of course, is not able |
57 |
to compete with a specialized editor tools loke notepad++, emacs or similar. |
|
9919 | 58 |
" |
9892 | 59 |
! ! |
60 |
||
10763 | 61 |
!TagsBrowser class methodsFor:'help specs'! |
62 |
||
63 |
flyByHelpSpec |
|
64 |
^ super flyByHelpSpec addPairsFrom:#( |
|
65 |
||
10769 | 66 |
#updateTagList |
67 |
'Update (regenerate) the tag list' |
|
68 |
||
10763 | 69 |
#sortByName |
70 |
'Sort by name (ignoring case and leading underscores)' |
|
71 |
||
72 |
#sortByLineNumber |
|
73 |
'Sort by line number' |
|
74 |
||
75 |
#functionsOnly |
|
14563 | 76 |
'Show only Functions (see popup menu for more options)' |
14544 | 77 |
|
78 |
#structsOnly |
|
14563 | 79 |
'Show only Structures (see popup menu for more options)' |
10763 | 80 |
|
11721 | 81 |
#toggleTagFilter |
14563 | 82 |
'Toggle name filter to show only tags which match a pattern' |
11721 | 83 |
|
84 |
#tagFilter |
|
14563 | 85 |
'Pattern to filter tags by name.\Multiple OR-patterns are separated by ";"' |
11721 | 86 |
|
10763 | 87 |
) |
88 |
||
89 |
"Created: / 06-10-2011 / 12:04:51 / cg" |
|
90 |
! ! |
|
91 |
||
9892 | 92 |
!TagsBrowser class methodsFor:'interface specs'! |
93 |
||
94 |
windowSpec |
|
95 |
"This resource specification was automatically generated |
|
96 |
by the UIPainter of ST/X." |
|
97 |
||
98 |
"Do not manually edit this!! If it is corrupted, |
|
99 |
the UIPainter may not be able to read the specification." |
|
100 |
||
101 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
102 |
UIPainter new openOnClass:Tools::TagsBrowser andSelector:#windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
103 |
Tools::TagsBrowser new openInterface:#windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
104 |
Tools::TagsBrowser open |
9892 | 105 |
" |
106 |
||
107 |
<resource: #canvas> |
|
108 |
||
14543 | 109 |
^ |
110 |
#(FullSpec |
|
111 |
name: windowSpec |
|
112 |
window: |
|
113 |
(WindowSpec |
|
114 |
label: 'TagsBrowser' |
|
115 |
name: 'TagsBrowser' |
|
116 |
min: (Point 10 10) |
|
117 |
max: (Point 1024 768) |
|
118 |
bounds: (Rectangle 0 0 300 337) |
|
119 |
) |
|
120 |
component: |
|
121 |
(SpecCollection |
|
122 |
collection: ( |
|
123 |
(HorizontalPanelViewSpec |
|
124 |
name: 'HorizontalPanel1' |
|
125 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0) |
|
126 |
horizontalLayout: leftFit |
|
127 |
verticalLayout: center |
|
128 |
horizontalSpace: 3 |
|
129 |
verticalSpace: 3 |
|
130 |
ignoreInvisibleComponents: false |
|
131 |
elementsChangeSize: true |
|
132 |
component: |
|
133 |
(SpecCollection |
|
134 |
collection: ( |
|
135 |
(MenuPanelSpec |
|
136 |
name: 'ToolBar1' |
|
137 |
level: 0 |
|
138 |
menu: toolBarMenu |
|
139 |
extent: (Point 32 30) |
|
140 |
useDynamicPreferredWidth: true |
|
141 |
usePreferredWidth: true |
|
142 |
textDefault: true |
|
143 |
) |
|
144 |
(InputFieldSpec |
|
145 |
name: 'TagFilterInputField' |
|
146 |
activeHelpKey: tagFilter |
|
147 |
visibilityChannel: tagFilterFieldVisibleHolder |
|
148 |
model: tagFilterPatternHolder |
|
149 |
immediateAccept: true |
|
150 |
acceptOnReturn: true |
|
151 |
acceptOnTab: true |
|
152 |
acceptOnPointerLeave: true |
|
153 |
extent: (Point 263 22) |
|
154 |
) |
|
155 |
) |
|
156 |
||
157 |
) |
|
158 |
) |
|
159 |
(ArbitraryComponentSpec |
|
160 |
name: 'Browser' |
|
161 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1) |
|
162 |
level: -1 |
|
163 |
menu: middleButtonMenu |
|
164 |
hasHorizontalScrollBar: true |
|
165 |
hasVerticalScrollBar: true |
|
166 |
miniScrollerHorizontal: true |
|
167 |
miniScrollerVertical: false |
|
168 |
hasBorder: false |
|
169 |
component: tagView |
|
170 |
) |
|
171 |
) |
|
172 |
||
173 |
) |
|
174 |
) |
|
9892 | 175 |
! ! |
176 |
||
177 |
!TagsBrowser class methodsFor:'menu specs'! |
|
178 |
||
179 |
assemblerMenuSlice |
|
180 |
"This resource specification was automatically generated |
|
181 |
by the MenuEditor of ST/X." |
|
182 |
||
183 |
"Do not manually edit this!! If it is corrupted, |
|
184 |
the MenuEditor may not be able to read the specification." |
|
185 |
||
186 |
" |
|
9920 | 187 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#assemblerMenuSlice |
188 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser assemblerMenuSlice)) startUp |
|
9892 | 189 |
" |
190 |
||
191 |
<resource: #menu> |
|
192 |
||
14484 | 193 |
^ |
9920 | 194 |
#(Menu |
14484 | 195 |
( |
196 |
(MenuItem |
|
197 |
label: '-' |
|
198 |
isVisible: editedFileHasAssemblerSuffix |
|
199 |
) |
|
200 |
(MenuItem |
|
201 |
enabled: tagTypesPresentHolder |
|
202 |
label: 'Hide Local Labels (Style1: Starting with ".")' |
|
203 |
translateLabel: true |
|
204 |
isVisible: editedFileHasAssemblerSuffix |
|
205 |
hideMenuOnActivated: false |
|
206 |
indication: hideLocalLabels: |
|
207 |
) |
|
208 |
(MenuItem |
|
209 |
enabled: tagTypesPresentHolder |
|
210 |
label: 'Hide Local Labels (Style2: Not Starting with "_")' |
|
211 |
translateLabel: true |
|
212 |
isVisible: editedFileHasAssemblerSuffix |
|
213 |
hideMenuOnActivated: false |
|
214 |
indication: hideLocalLabels2: |
|
215 |
) |
|
216 |
(MenuItem |
|
217 |
enabled: tagTypesPresentHolder |
|
218 |
label: 'Hide Local Labels (Style3: "L[0-9]+")' |
|
219 |
translateLabel: true |
|
220 |
isVisible: editedFileHasAssemblerSuffix |
|
221 |
hideMenuOnActivated: false |
|
222 |
indication: hideLocalLabels3: |
|
223 |
) |
|
224 |
(MenuItem |
|
225 |
enabled: tagTypesPresentHolder |
|
226 |
label: 'Hide Data Labels' |
|
227 |
translateLabel: true |
|
228 |
isVisible: editedFileHasAssemblerSuffix |
|
229 |
hideMenuOnActivated: false |
|
230 |
indication: hideDataLabels: |
|
231 |
) |
|
232 |
(MenuItem |
|
233 |
enabled: tagTypesPresentHolder |
|
234 |
label: 'Hide Text Labels' |
|
235 |
translateLabel: true |
|
236 |
isVisible: editedFileHasAssemblerSuffix |
|
237 |
hideMenuOnActivated: false |
|
238 |
indication: hideTextLabels: |
|
239 |
) |
|
240 |
) |
|
241 |
nil |
|
242 |
nil |
|
9892 | 243 |
) |
11465 | 244 |
|
11503 | 245 |
"Modified: / 13-05-2012 / 11:26:28 / cg" |
9892 | 246 |
! |
247 |
||
248 |
cMenuSlice |
|
249 |
"This resource specification was automatically generated |
|
250 |
by the MenuEditor of ST/X." |
|
251 |
||
252 |
"Do not manually edit this!! If it is corrupted, |
|
253 |
the MenuEditor may not be able to read the specification." |
|
254 |
||
255 |
" |
|
9920 | 256 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#cMenuSlice |
257 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser cMenuSlice)) startUp |
|
9892 | 258 |
" |
259 |
||
260 |
<resource: #menu> |
|
261 |
||
14484 | 262 |
^ |
9892 | 263 |
#(Menu |
14484 | 264 |
( |
265 |
(MenuItem |
|
266 |
label: '-' |
|
267 |
isVisible: editedFileHasCSuffix |
|
268 |
) |
|
269 |
(MenuItem |
|
270 |
enabled: tagTypesPresentHolder |
|
271 |
label: 'Classes, Functions && Variables Only' |
|
272 |
translateLabel: true |
|
273 |
isVisible: editedFileHasCSuffix |
|
274 |
indication: classesFunctionsAndVariablesOnly: |
|
275 |
) |
|
276 |
(MenuItem |
|
277 |
enabled: tagTypesPresentHolder |
|
278 |
label: 'Classes Only' |
|
279 |
translateLabel: true |
|
280 |
isVisible: editedFileHasCSuffix |
|
281 |
indication: classesOnly: |
|
282 |
) |
|
283 |
(MenuItem |
|
284 |
enabled: tagTypesPresentHolder |
|
285 |
label: 'Functions Only' |
|
286 |
translateLabel: true |
|
287 |
isVisible: editedFileHasCSuffix |
|
288 |
indication: functionsOnly: |
|
289 |
) |
|
290 |
(MenuItem |
|
291 |
enabled: tagTypesPresentHolder |
|
292 |
label: 'Variables Only' |
|
293 |
translateLabel: true |
|
294 |
isVisible: editedFileHasCSuffix |
|
295 |
indication: variablesOnly: |
|
296 |
) |
|
297 |
(MenuItem |
|
298 |
enabled: tagTypesPresentHolder |
|
299 |
label: 'Types Only' |
|
300 |
translateLabel: true |
|
301 |
isVisible: editedFileHasCSuffix |
|
302 |
indication: typesOnly: |
|
303 |
) |
|
304 |
(MenuItem |
|
305 |
enabled: tagTypesPresentHolder |
|
306 |
label: 'Structs Only' |
|
307 |
translateLabel: true |
|
308 |
isVisible: editedFileHasCSuffix |
|
309 |
indication: structsOnly: |
|
310 |
) |
|
311 |
(MenuItem |
|
312 |
enabled: tagTypesPresentHolder |
|
313 |
label: 'Defines Only' |
|
314 |
translateLabel: true |
|
315 |
isVisible: editedFileHasCSuffix |
|
316 |
indication: definesOnly: |
|
317 |
) |
|
318 |
(MenuItem |
|
319 |
label: '-' |
|
320 |
isVisible: editedFileHasCSuffix |
|
321 |
) |
|
322 |
(MenuItem |
|
323 |
enabled: tagTypesPresentHolder |
|
324 |
label: 'Hide Classes' |
|
325 |
translateLabel: true |
|
326 |
isVisible: editedFileHasCSuffix |
|
327 |
hideMenuOnActivated: false |
|
328 |
indication: hideClasses: |
|
329 |
) |
|
330 |
(MenuItem |
|
331 |
enabled: tagTypesPresentHolder |
|
332 |
label: 'Hide Functions' |
|
333 |
translateLabel: true |
|
334 |
isVisible: editedFileHasCSuffix |
|
335 |
hideMenuOnActivated: false |
|
336 |
indication: hideFunctions: |
|
337 |
) |
|
338 |
(MenuItem |
|
339 |
enabled: tagTypesPresentHolder |
|
340 |
label: 'Hide Variables' |
|
341 |
translateLabel: true |
|
342 |
isVisible: editedFileHasCSuffix |
|
343 |
hideMenuOnActivated: false |
|
344 |
indication: hideVariables: |
|
345 |
) |
|
346 |
(MenuItem |
|
347 |
enabled: tagTypesPresentHolder |
|
348 |
label: 'Hide Typedefs' |
|
349 |
translateLabel: true |
|
350 |
isVisible: editedFileHasCSuffix |
|
351 |
hideMenuOnActivated: false |
|
352 |
indication: hideTypedefs: |
|
353 |
) |
|
354 |
(MenuItem |
|
355 |
enabled: tagTypesPresentHolder |
|
356 |
label: 'Hide Structures' |
|
357 |
translateLabel: true |
|
358 |
isVisible: editedFileHasCSuffix |
|
359 |
hideMenuOnActivated: false |
|
360 |
indication: hideStructures: |
|
361 |
) |
|
362 |
(MenuItem |
|
363 |
enabled: tagTypesPresentHolder |
|
364 |
label: 'Hide Struct Members' |
|
365 |
translateLabel: true |
|
366 |
isVisible: editedFileHasCSuffix |
|
367 |
hideMenuOnActivated: false |
|
368 |
indication: hideStructMembers: |
|
369 |
) |
|
370 |
(MenuItem |
|
371 |
enabled: tagTypesPresentHolder |
|
372 |
label: 'Hide Defines' |
|
373 |
translateLabel: true |
|
374 |
isVisible: editedFileHasCSuffix |
|
375 |
hideMenuOnActivated: false |
|
376 |
indication: hideDefines: |
|
377 |
) |
|
378 |
(MenuItem |
|
379 |
enabled: tagTypesPresentHolder |
|
380 |
label: 'Hide Labels' |
|
381 |
translateLabel: true |
|
382 |
isVisible: editedFileHasCSuffix |
|
383 |
hideMenuOnActivated: false |
|
384 |
indication: hideLabels: |
|
385 |
) |
|
386 |
(MenuItem |
|
387 |
label: '-' |
|
388 |
isVisible: editedFileHasCSuffix |
|
389 |
) |
|
390 |
(MenuItem |
|
391 |
enabled: tagTypesPresentHolder |
|
392 |
label: 'Hide Static' |
|
393 |
translateLabel: true |
|
394 |
isVisible: editedFileHasCSuffix |
|
395 |
hideMenuOnActivated: false |
|
396 |
indication: hideStatic: |
|
397 |
) |
|
398 |
) |
|
399 |
nil |
|
400 |
nil |
|
9892 | 401 |
) |
402 |
! |
|
403 |
||
11761 | 404 |
dartMenuSlice |
405 |
"This resource specification was automatically generated |
|
406 |
by the MenuEditor of ST/X." |
|
407 |
||
408 |
"Do not manually edit this!! If it is corrupted, |
|
409 |
the MenuEditor may not be able to read the specification." |
|
410 |
||
411 |
" |
|
412 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
|
413 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
414 |
" |
|
415 |
||
416 |
<resource: #menu> |
|
417 |
||
14484 | 418 |
^ |
11761 | 419 |
#(Menu |
14484 | 420 |
( |
421 |
(MenuItem |
|
422 |
label: '-' |
|
423 |
isVisible: editedFileHasDartSuffix |
|
424 |
) |
|
425 |
(MenuItem |
|
426 |
enabled: tagTypesPresentHolder |
|
427 |
label: 'Classes Only' |
|
428 |
translateLabel: true |
|
429 |
isVisible: editedFileHasDartSuffix |
|
430 |
indication: dartClassesOnly: |
|
431 |
) |
|
432 |
(MenuItem |
|
433 |
enabled: tagTypesPresentHolder |
|
434 |
label: 'Methods Only' |
|
435 |
translateLabel: true |
|
436 |
isVisible: editedFileHasDartSuffix |
|
437 |
indication: dartMethodsOnly: |
|
438 |
) |
|
439 |
(MenuItem |
|
440 |
enabled: tagTypesPresentHolder |
|
441 |
label: 'Classes && Methods Only' |
|
442 |
translateLabel: true |
|
443 |
isVisible: editedFileHasDartSuffix |
|
444 |
indication: dartClassesAndMethodsOnly: |
|
445 |
) |
|
446 |
(MenuItem |
|
447 |
label: '-' |
|
448 |
isVisible: editedFileHasDartSuffix |
|
449 |
) |
|
450 |
(MenuItem |
|
451 |
enabled: tagTypesPresentHolder |
|
452 |
label: 'Hide Packages' |
|
453 |
translateLabel: true |
|
454 |
isVisible: false "editedFileHasDartSuffix" |
|
455 |
hideMenuOnActivated: false |
|
456 |
indication: hideJavaPackages: |
|
457 |
) |
|
458 |
(MenuItem |
|
459 |
enabled: tagTypesPresentHolder |
|
460 |
label: 'Hide Classes' |
|
461 |
translateLabel: true |
|
462 |
isVisible: editedFileHasDartSuffix |
|
463 |
hideMenuOnActivated: false |
|
464 |
indication: hideDartClasses: |
|
465 |
) |
|
466 |
(MenuItem |
|
467 |
enabled: tagTypesPresentHolder |
|
468 |
label: 'Hide Interfaces' |
|
469 |
translateLabel: true |
|
470 |
isVisible: editedFileHasDartSuffix |
|
471 |
hideMenuOnActivated: false |
|
472 |
indication: hideDartInterfaces: |
|
473 |
) |
|
474 |
(MenuItem |
|
475 |
enabled: tagTypesPresentHolder |
|
476 |
label: 'Hide Methods' |
|
477 |
translateLabel: true |
|
478 |
isVisible: editedFileHasDartSuffix |
|
479 |
hideMenuOnActivated: false |
|
480 |
indication: hideDartMethods: |
|
481 |
) |
|
482 |
(MenuItem |
|
483 |
enabled: tagTypesPresentHolder |
|
484 |
label: 'Hide Fields' |
|
485 |
translateLabel: true |
|
486 |
isVisible: editedFileHasDartSuffix |
|
487 |
hideMenuOnActivated: false |
|
488 |
indication: hideDartFields: |
|
489 |
) |
|
490 |
) |
|
491 |
nil |
|
492 |
nil |
|
11761 | 493 |
) |
494 |
||
495 |
"Modified: / 21-08-2012 / 20:49:32 / cg" |
|
496 |
! |
|
497 |
||
9892 | 498 |
javaMenuSlice |
499 |
"This resource specification was automatically generated |
|
500 |
by the MenuEditor of ST/X." |
|
501 |
||
502 |
"Do not manually edit this!! If it is corrupted, |
|
503 |
the MenuEditor may not be able to read the specification." |
|
504 |
||
505 |
" |
|
9920 | 506 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
507 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
9892 | 508 |
" |
509 |
||
510 |
<resource: #menu> |
|
511 |
||
14484 | 512 |
^ |
9920 | 513 |
#(Menu |
14484 | 514 |
( |
515 |
(MenuItem |
|
516 |
label: '-' |
|
517 |
isVisible: editedFileHasJavaSuffix |
|
518 |
) |
|
519 |
(MenuItem |
|
520 |
enabled: tagTypesPresentHolder |
|
521 |
label: 'Classes Only' |
|
522 |
translateLabel: true |
|
523 |
isVisible: editedFileHasJavaSuffix |
|
524 |
indication: javaClassesOnly: |
|
525 |
) |
|
526 |
(MenuItem |
|
527 |
enabled: tagTypesPresentHolder |
|
528 |
label: 'Methods OnLy' |
|
529 |
translateLabel: true |
|
530 |
isVisible: editedFileHasJavaSuffix |
|
531 |
indication: javaMethodsOnly: |
|
532 |
) |
|
533 |
(MenuItem |
|
534 |
enabled: tagTypesPresentHolder |
|
535 |
label: 'Classes && Methods Only' |
|
536 |
translateLabel: true |
|
537 |
isVisible: editedFileHasJavaSuffix |
|
538 |
indication: javaClassesAndMethodsOnly: |
|
539 |
) |
|
540 |
(MenuItem |
|
541 |
label: '-' |
|
542 |
isVisible: editedFileHasJavaSuffix |
|
543 |
) |
|
544 |
(MenuItem |
|
545 |
enabled: tagTypesPresentHolder |
|
546 |
label: 'Hide Packages' |
|
547 |
translateLabel: true |
|
548 |
isVisible: editedFileHasJavaSuffix |
|
549 |
hideMenuOnActivated: false |
|
550 |
indication: hideJavaPackages: |
|
551 |
) |
|
552 |
(MenuItem |
|
553 |
enabled: tagTypesPresentHolder |
|
554 |
label: 'Hide Classes' |
|
555 |
translateLabel: true |
|
556 |
isVisible: editedFileHasJavaSuffix |
|
557 |
hideMenuOnActivated: false |
|
558 |
indication: hideJavaClasses: |
|
559 |
) |
|
560 |
(MenuItem |
|
561 |
enabled: tagTypesPresentHolder |
|
562 |
label: 'Hide Methods' |
|
563 |
translateLabel: true |
|
564 |
isVisible: editedFileHasJavaSuffix |
|
565 |
hideMenuOnActivated: false |
|
566 |
indication: hideJavaMethods: |
|
567 |
) |
|
568 |
(MenuItem |
|
569 |
enabled: tagTypesPresentHolder |
|
570 |
label: 'Hide Fields' |
|
571 |
translateLabel: true |
|
572 |
isVisible: editedFileHasJavaSuffix |
|
573 |
hideMenuOnActivated: false |
|
574 |
indication: hideJavaFields: |
|
575 |
) |
|
576 |
) |
|
577 |
nil |
|
578 |
nil |
|
9892 | 579 |
) |
580 |
! |
|
581 |
||
582 |
javaScriptMenuSlice |
|
583 |
"This resource specification was automatically generated |
|
584 |
by the MenuEditor of ST/X." |
|
585 |
||
586 |
"Do not manually edit this!! If it is corrupted, |
|
587 |
the MenuEditor may not be able to read the specification." |
|
588 |
||
589 |
" |
|
9920 | 590 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
591 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
9892 | 592 |
" |
593 |
||
594 |
<resource: #menu> |
|
595 |
||
14484 | 596 |
^ |
9920 | 597 |
#(Menu |
14484 | 598 |
( |
599 |
(MenuItem |
|
600 |
label: '-' |
|
601 |
isVisible: editedFileHasJavaScriptSuffix |
|
602 |
) |
|
603 |
(MenuItem |
|
604 |
enabled: tagTypesPresentHolder |
|
605 |
label: 'Functions Only' |
|
606 |
translateLabel: true |
|
607 |
isVisible: editedFileHasJavaScriptSuffix |
|
608 |
hideMenuOnActivated: false |
|
609 |
indication: functionsOnly: |
|
610 |
) |
|
611 |
(MenuItem |
|
612 |
enabled: tagTypesPresentHolder |
|
613 |
label: 'Variables Only' |
|
614 |
translateLabel: true |
|
615 |
isVisible: editedFileHasJavaScriptSuffix |
|
616 |
hideMenuOnActivated: false |
|
617 |
indication: variablesOnly: |
|
618 |
) |
|
619 |
) |
|
620 |
nil |
|
621 |
nil |
|
9892 | 622 |
) |
623 |
! |
|
624 |
||
625 |
lispMenuSlice |
|
626 |
"This resource specification was automatically generated |
|
627 |
by the MenuEditor of ST/X." |
|
628 |
||
629 |
"Do not manually edit this!! If it is corrupted, |
|
630 |
the MenuEditor may not be able to read the specification." |
|
631 |
||
632 |
" |
|
9920 | 633 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#lispMenuSlice |
634 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser lispMenuSlice)) startUp |
|
9892 | 635 |
" |
636 |
||
637 |
<resource: #menu> |
|
638 |
||
14484 | 639 |
^ |
9892 | 640 |
#(Menu |
14484 | 641 |
( |
642 |
(MenuItem |
|
643 |
label: '-' |
|
644 |
isVisible: editedFileHasLispSuffix |
|
645 |
) |
|
646 |
(MenuItem |
|
647 |
enabled: tagTypesPresentHolder |
|
648 |
label: 'Documentation Only' |
|
649 |
translateLabel: true |
|
650 |
isVisible: editedFileHasLispSuffix |
|
651 |
indication: documentationOnly: |
|
652 |
) |
|
653 |
(MenuItem |
|
654 |
enabled: tagTypesPresentHolder |
|
655 |
label: 'Classes Only' |
|
656 |
translateLabel: true |
|
657 |
isVisible: editedFileHasLispSuffix |
|
658 |
indication: classesOnly: |
|
659 |
) |
|
660 |
(MenuItem |
|
661 |
enabled: tagTypesPresentHolder |
|
662 |
label: 'Methods Only' |
|
663 |
translateLabel: true |
|
664 |
isVisible: editedFileHasLispSuffix |
|
665 |
indication: methodsOnly: |
|
666 |
) |
|
667 |
(MenuItem |
|
668 |
enabled: tagTypesPresentHolder |
|
669 |
label: 'Functions Only' |
|
670 |
translateLabel: true |
|
671 |
isVisible: editedFileHasLispSuffix |
|
672 |
indication: functionsOnly: |
|
673 |
) |
|
674 |
(MenuItem |
|
675 |
enabled: tagTypesPresentHolder |
|
676 |
label: 'Variables Only' |
|
677 |
translateLabel: true |
|
678 |
isVisible: editedFileHasLispSuffix |
|
679 |
indication: variablesOnly: |
|
680 |
) |
|
681 |
(MenuItem |
|
682 |
enabled: tagTypesPresentHolder |
|
683 |
label: 'Macros Only' |
|
684 |
translateLabel: true |
|
685 |
isVisible: editedFileHasLispSuffix |
|
686 |
indication: macrosOnly: |
|
687 |
) |
|
688 |
(MenuItem |
|
689 |
label: '-' |
|
690 |
isVisible: editedFileHasLispSuffix |
|
691 |
) |
|
692 |
(MenuItem |
|
693 |
enabled: tagTypesPresentHolder |
|
694 |
label: 'Hide Documentation' |
|
695 |
translateLabel: true |
|
696 |
isVisible: editedFileHasLispSuffix |
|
697 |
hideMenuOnActivated: false |
|
698 |
indication: hideDocumentation: |
|
699 |
) |
|
700 |
(MenuItem |
|
701 |
enabled: tagTypesPresentHolder |
|
702 |
label: 'Hide Classes' |
|
703 |
translateLabel: true |
|
704 |
isVisible: editedFileHasLispSuffix |
|
705 |
hideMenuOnActivated: false |
|
706 |
indication: hideClasses: |
|
707 |
) |
|
708 |
(MenuItem |
|
709 |
enabled: tagTypesPresentHolder |
|
710 |
label: 'Hide Methods' |
|
711 |
translateLabel: true |
|
712 |
isVisible: editedFileHasLispSuffix |
|
713 |
hideMenuOnActivated: false |
|
714 |
indication: hideLispMethods: |
|
715 |
) |
|
716 |
(MenuItem |
|
717 |
enabled: tagTypesPresentHolder |
|
718 |
label: 'Hide Functions' |
|
719 |
translateLabel: true |
|
720 |
isVisible: editedFileHasLispSuffix |
|
721 |
hideMenuOnActivated: false |
|
722 |
indication: hideFunctions: |
|
723 |
) |
|
724 |
(MenuItem |
|
725 |
enabled: tagTypesPresentHolder |
|
726 |
label: 'Hide Variables' |
|
727 |
translateLabel: true |
|
728 |
isVisible: editedFileHasLispSuffix |
|
729 |
hideMenuOnActivated: false |
|
730 |
indication: hideVariables: |
|
731 |
) |
|
732 |
(MenuItem |
|
733 |
enabled: tagTypesPresentHolder |
|
734 |
label: 'Hide Macros' |
|
735 |
translateLabel: true |
|
736 |
isVisible: editedFileHasLispSuffix |
|
737 |
hideMenuOnActivated: false |
|
738 |
indication: hideLispMacros: |
|
739 |
) |
|
740 |
(MenuItem |
|
741 |
enabled: tagTypesPresentHolder |
|
742 |
label: 'Hide Constants' |
|
743 |
translateLabel: true |
|
744 |
isVisible: editedFileHasLispSuffix |
|
745 |
hideMenuOnActivated: false |
|
746 |
indication: hideLispConstants: |
|
747 |
) |
|
748 |
(MenuItem |
|
749 |
enabled: tagTypesPresentHolder |
|
750 |
label: 'Hide Evaluations' |
|
751 |
translateLabel: true |
|
752 |
isVisible: editedFileHasLispSuffix |
|
753 |
hideMenuOnActivated: false |
|
754 |
indication: hideLispEvaluations: |
|
755 |
) |
|
756 |
(MenuItem |
|
757 |
enabled: tagTypesPresentHolder |
|
758 |
label: 'Hide Structs' |
|
759 |
translateLabel: true |
|
760 |
isVisible: editedFileHasLispSuffix |
|
761 |
hideMenuOnActivated: false |
|
762 |
indication: hideStructures: |
|
763 |
) |
|
764 |
) |
|
765 |
nil |
|
766 |
nil |
|
9892 | 767 |
) |
768 |
! |
|
769 |
||
14348 | 770 |
luaMenuSlice |
771 |
"This resource specification was automatically generated |
|
772 |
by the MenuEditor of ST/X." |
|
773 |
||
774 |
"Do not manually edit this!! If it is corrupted, |
|
775 |
the MenuEditor may not be able to read the specification." |
|
776 |
||
777 |
" |
|
778 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
|
779 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
780 |
" |
|
781 |
||
782 |
<resource: #menu> |
|
783 |
||
14484 | 784 |
^ |
14348 | 785 |
#(Menu |
14484 | 786 |
( |
787 |
(MenuItem |
|
788 |
label: '-' |
|
789 |
isVisible: editedFileHasLuaSuffix |
|
790 |
) |
|
791 |
(MenuItem |
|
792 |
enabled: tagTypesPresentHolder |
|
793 |
label: 'Functions Only' |
|
794 |
translateLabel: true |
|
795 |
isVisible: editedFileHasLuaSuffix |
|
796 |
hideMenuOnActivated: false |
|
797 |
indication: functionsOnly: |
|
798 |
) |
|
799 |
(MenuItem |
|
800 |
enabled: tagTypesPresentHolder |
|
801 |
label: 'Variables Only' |
|
802 |
translateLabel: true |
|
803 |
isVisible: editedFileHasLuaSuffix |
|
804 |
hideMenuOnActivated: false |
|
805 |
indication: variablesOnly: |
|
806 |
) |
|
807 |
) |
|
808 |
nil |
|
809 |
nil |
|
14348 | 810 |
) |
811 |
! |
|
812 |
||
9892 | 813 |
makefileMenuSlice |
814 |
"This resource specification was automatically generated |
|
815 |
by the MenuEditor of ST/X." |
|
816 |
||
817 |
"Do not manually edit this!! If it is corrupted, |
|
818 |
the MenuEditor may not be able to read the specification." |
|
819 |
||
820 |
" |
|
9920 | 821 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#makefileMenuSlice |
822 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser makefileMenuSlice)) startUp |
|
9892 | 823 |
" |
824 |
||
825 |
<resource: #menu> |
|
826 |
||
14484 | 827 |
^ |
9920 | 828 |
#(Menu |
14484 | 829 |
( |
830 |
(MenuItem |
|
831 |
label: '-' |
|
832 |
isVisible: editedFileIsMakefile |
|
833 |
) |
|
834 |
(MenuItem |
|
835 |
enabled: tagTypesPresentHolder |
|
836 |
label: 'Targets Only' |
|
837 |
translateLabel: true |
|
838 |
isVisible: editedFileIsMakefile |
|
839 |
hideMenuOnActivated: false |
|
840 |
indication: targetsOnly: |
|
841 |
) |
|
842 |
) |
|
843 |
nil |
|
844 |
nil |
|
9892 | 845 |
) |
846 |
! |
|
847 |
||
848 |
middleButtonMenu |
|
849 |
"This resource specification was automatically generated |
|
850 |
by the MenuEditor of ST/X." |
|
851 |
||
852 |
"Do not manually edit this!! If it is corrupted, |
|
853 |
the MenuEditor may not be able to read the specification." |
|
854 |
||
855 |
" |
|
856 |
MenuEditor new openOnClass:CBrowser::TagsBrowser andSelector:#middleButtonMenu |
|
857 |
(Menu new fromLiteralArrayEncoding:(CBrowser::TagsBrowser middleButtonMenu)) startUp |
|
858 |
" |
|
859 |
||
860 |
<resource: #menu> |
|
861 |
||
14484 | 862 |
^ |
9892 | 863 |
#(Menu |
14484 | 864 |
( |
865 |
(MenuItem |
|
866 |
enabled: tagTypesPresentHolder |
|
867 |
label: 'Group by Type' |
|
868 |
translateLabel: true |
|
869 |
indication: groupedByType: |
|
870 |
) |
|
871 |
(MenuItem |
|
872 |
label: '-' |
|
873 |
) |
|
874 |
(MenuItem |
|
875 |
label: 'Sort by Name' |
|
876 |
translateLabel: true |
|
877 |
indication: sortedByName: |
|
878 |
) |
|
879 |
(MenuItem |
|
880 |
label: 'Sort by Name Ignoring Case' |
|
881 |
translateLabel: true |
|
882 |
indication: sortedByNameIgnoringCase: |
|
883 |
) |
|
884 |
(MenuItem |
|
885 |
label: 'Sort by Name (Ignore Leading Underscores)' |
|
886 |
translateLabel: true |
|
887 |
indication: sortedByNameIgnoringLeadingUnderscores: |
|
888 |
) |
|
889 |
(MenuItem |
|
890 |
label: 'Sort by Name (Ignore Leading Underscores and Case)' |
|
891 |
translateLabel: true |
|
892 |
indication: sortedByNameIgnoringLeadingUnderscoresAndCase: |
|
893 |
) |
|
894 |
(MenuItem |
|
895 |
label: 'Sort by Line Number' |
|
896 |
translateLabel: true |
|
897 |
indication: sortedByLineNumber: |
|
898 |
) |
|
899 |
(MenuItem |
|
900 |
label: 'C Menu Slice' |
|
901 |
translateLabel: true |
|
902 |
submenuChannel: cMenuSlice |
|
903 |
isMenuSlice: true |
|
904 |
) |
|
905 |
(MenuItem |
|
906 |
label: 'Smalltalk Menu Slice' |
|
907 |
translateLabel: true |
|
908 |
submenuChannel: smalltalkMenuSlice |
|
909 |
isMenuSlice: true |
|
910 |
) |
|
911 |
(MenuItem |
|
912 |
label: 'Java Menu Slice' |
|
913 |
translateLabel: true |
|
914 |
submenuChannel: javaMenuSlice |
|
915 |
isMenuSlice: true |
|
916 |
) |
|
917 |
(MenuItem |
|
918 |
label: 'JavaScript Menu Slice' |
|
919 |
translateLabel: true |
|
920 |
submenuChannel: javaScriptMenuSlice |
|
921 |
isMenuSlice: true |
|
922 |
) |
|
923 |
(MenuItem |
|
924 |
label: 'Dart Menu Slice' |
|
925 |
translateLabel: true |
|
926 |
submenuChannel: dartMenuSlice |
|
927 |
isMenuSlice: true |
|
928 |
) |
|
929 |
(MenuItem |
|
930 |
label: 'TCL Menu Slice' |
|
931 |
translateLabel: true |
|
932 |
submenuChannel: tclMenuSlice |
|
933 |
isMenuSlice: true |
|
934 |
) |
|
935 |
(MenuItem |
|
936 |
label: 'Assembler Menu Slice' |
|
937 |
translateLabel: true |
|
938 |
submenuChannel: assemblerMenuSlice |
|
939 |
isMenuSlice: true |
|
940 |
) |
|
941 |
(MenuItem |
|
942 |
label: 'Lisp Menu Slice' |
|
943 |
translateLabel: true |
|
944 |
submenuChannel: lispMenuSlice |
|
945 |
isMenuSlice: true |
|
946 |
) |
|
947 |
(MenuItem |
|
948 |
label: 'Lua Menu Slice' |
|
949 |
translateLabel: true |
|
950 |
submenuChannel: luaMenuSlice |
|
951 |
isMenuSlice: true |
|
952 |
) |
|
953 |
(MenuItem |
|
954 |
label: 'Python Menu Slice' |
|
955 |
translateLabel: true |
|
956 |
submenuChannel: pythonMenuSlice |
|
957 |
isMenuSlice: true |
|
958 |
) |
|
959 |
(MenuItem |
|
960 |
label: 'OZ Menu Slice' |
|
961 |
translateLabel: true |
|
962 |
submenuChannel: ozMenuSlice |
|
963 |
isMenuSlice: true |
|
964 |
) |
|
965 |
(MenuItem |
|
966 |
label: 'Makefile Menu Slice' |
|
967 |
translateLabel: true |
|
968 |
submenuChannel: makefileMenuSlice |
|
969 |
isMenuSlice: true |
|
970 |
) |
|
971 |
(MenuItem |
|
972 |
label: '-' |
|
973 |
) |
|
974 |
(MenuItem |
|
975 |
label: 'Update' |
|
976 |
itemValue: updateTagList |
|
977 |
translateLabel: true |
|
978 |
) |
|
979 |
) |
|
980 |
nil |
|
981 |
nil |
|
9892 | 982 |
) |
983 |
||
11761 | 984 |
"Modified: / 21-08-2012 / 21:00:35 / cg" |
9892 | 985 |
! |
986 |
||
987 |
ozMenuSlice |
|
988 |
"This resource specification was automatically generated |
|
989 |
by the MenuEditor of ST/X." |
|
990 |
||
991 |
"Do not manually edit this!! If it is corrupted, |
|
992 |
the MenuEditor may not be able to read the specification." |
|
993 |
||
994 |
" |
|
9920 | 995 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#ozMenuSlice |
996 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser ozMenuSlice)) startUp |
|
9892 | 997 |
" |
998 |
||
999 |
<resource: #menu> |
|
1000 |
||
14484 | 1001 |
^ |
9920 | 1002 |
#(Menu |
14484 | 1003 |
( |
1004 |
(MenuItem |
|
1005 |
label: '-' |
|
1006 |
isVisible: editedFileHasOzSuffix |
|
1007 |
) |
|
1008 |
(MenuItem |
|
1009 |
enabled: tagTypesPresentHolder |
|
1010 |
label: 'Hide Classes' |
|
1011 |
translateLabel: true |
|
1012 |
isVisible: editedFileHasOzSuffix |
|
1013 |
hideMenuOnActivated: false |
|
1014 |
indication: hideOzClasses: |
|
1015 |
) |
|
1016 |
(MenuItem |
|
1017 |
enabled: tagTypesPresentHolder |
|
1018 |
label: 'Hide Methods' |
|
1019 |
translateLabel: true |
|
1020 |
isVisible: editedFileHasOzSuffix |
|
1021 |
hideMenuOnActivated: false |
|
1022 |
indication: hideOzMethods: |
|
1023 |
) |
|
1024 |
(MenuItem |
|
1025 |
enabled: tagTypesPresentHolder |
|
1026 |
label: 'Hide Functions' |
|
1027 |
translateLabel: true |
|
1028 |
isVisible: editedFileHasOzSuffix |
|
1029 |
hideMenuOnActivated: false |
|
1030 |
indication: hideOzFunctions: |
|
1031 |
) |
|
1032 |
) |
|
1033 |
nil |
|
1034 |
nil |
|
9892 | 1035 |
) |
1036 |
! |
|
1037 |
||
1038 |
pythonMenuSlice |
|
1039 |
"This resource specification was automatically generated |
|
1040 |
by the MenuEditor of ST/X." |
|
1041 |
||
1042 |
"Do not manually edit this!! If it is corrupted, |
|
1043 |
the MenuEditor may not be able to read the specification." |
|
1044 |
||
1045 |
" |
|
9920 | 1046 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#pythonMenuSlice |
1047 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser pythonMenuSlice)) startUp |
|
9892 | 1048 |
" |
1049 |
||
1050 |
<resource: #menu> |
|
1051 |
||
14484 | 1052 |
^ |
9920 | 1053 |
#(Menu |
14484 | 1054 |
( |
1055 |
(MenuItem |
|
1056 |
label: '-' |
|
1057 |
isVisible: editedFileHasPythonSuffix |
|
1058 |
) |
|
1059 |
(MenuItem |
|
1060 |
enabled: tagTypesPresentHolder |
|
1061 |
label: 'Classes Only' |
|
1062 |
translateLabel: true |
|
1063 |
isVisible: editedFileHasPythonSuffix |
|
1064 |
indication: pythonClassesOnly: |
|
1065 |
) |
|
1066 |
(MenuItem |
|
1067 |
enabled: tagTypesPresentHolder |
|
1068 |
label: 'Methods Only' |
|
1069 |
translateLabel: true |
|
1070 |
isVisible: editedFileHasPythonSuffix |
|
1071 |
indication: pythonMethodsOnly: |
|
1072 |
) |
|
1073 |
(MenuItem |
|
1074 |
enabled: tagTypesPresentHolder |
|
1075 |
label: 'Functions Only' |
|
1076 |
translateLabel: true |
|
1077 |
isVisible: editedFileHasPythonSuffix |
|
1078 |
indication: pythonFunctionsOnly: |
|
1079 |
) |
|
1080 |
(MenuItem |
|
1081 |
label: '-' |
|
1082 |
isVisible: editedFileHasPythonSuffix |
|
1083 |
) |
|
1084 |
(MenuItem |
|
1085 |
enabled: tagTypesPresentHolder |
|
1086 |
label: 'Hide Classes' |
|
1087 |
translateLabel: true |
|
1088 |
isVisible: editedFileHasPythonSuffix |
|
1089 |
hideMenuOnActivated: false |
|
1090 |
indication: hidePythonClasses: |
|
1091 |
) |
|
1092 |
(MenuItem |
|
1093 |
enabled: tagTypesPresentHolder |
|
1094 |
label: 'Hide Methods' |
|
1095 |
translateLabel: true |
|
1096 |
isVisible: editedFileHasPythonSuffix |
|
1097 |
hideMenuOnActivated: false |
|
1098 |
indication: hidePythonMethods: |
|
1099 |
) |
|
1100 |
(MenuItem |
|
1101 |
enabled: tagTypesPresentHolder |
|
1102 |
label: 'Hide Functions' |
|
1103 |
translateLabel: true |
|
1104 |
isVisible: editedFileHasPythonSuffix |
|
1105 |
hideMenuOnActivated: false |
|
1106 |
indication: hidePythonFunctions: |
|
1107 |
) |
|
1108 |
) |
|
1109 |
nil |
|
1110 |
nil |
|
9892 | 1111 |
) |
1112 |
! |
|
1113 |
||
11761 | 1114 |
smalltalkMenuSlice |
1115 |
"This resource specification was automatically generated |
|
1116 |
by the MenuEditor of ST/X." |
|
1117 |
||
1118 |
"Do not manually edit this!! If it is corrupted, |
|
1119 |
the MenuEditor may not be able to read the specification." |
|
1120 |
||
1121 |
" |
|
1122 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#ozMenuSlice |
|
1123 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser ozMenuSlice)) startUp |
|
1124 |
" |
|
1125 |
||
1126 |
<resource: #menu> |
|
1127 |
||
14484 | 1128 |
^ |
11761 | 1129 |
#(Menu |
14484 | 1130 |
( |
1131 |
(MenuItem |
|
1132 |
label: '-' |
|
1133 |
isVisible: editedFileHasSmalltalkSuffix |
|
1134 |
) |
|
1135 |
(MenuItem |
|
1136 |
enabled: tagTypesPresentHolder |
|
1137 |
label: 'Hide Classes' |
|
1138 |
translateLabel: true |
|
1139 |
isVisible: editedFileHasSmalltalkSuffix |
|
1140 |
hideMenuOnActivated: false |
|
1141 |
indication: hideClasses: |
|
1142 |
) |
|
1143 |
(MenuItem |
|
1144 |
enabled: tagTypesPresentHolder |
|
1145 |
label: 'Hide Methods' |
|
1146 |
translateLabel: true |
|
1147 |
isVisible: editedFileHasSmalltalkSuffix |
|
1148 |
hideMenuOnActivated: false |
|
1149 |
indication: hideMethods: |
|
1150 |
) |
|
1151 |
) |
|
1152 |
nil |
|
1153 |
nil |
|
11761 | 1154 |
) |
1155 |
||
1156 |
"Created: / 21-08-2012 / 20:59:28 / cg" |
|
1157 |
! |
|
1158 |
||
9892 | 1159 |
tclMenuSlice |
1160 |
"This resource specification was automatically generated |
|
1161 |
by the MenuEditor of ST/X." |
|
1162 |
||
1163 |
"Do not manually edit this!! If it is corrupted, |
|
1164 |
the MenuEditor may not be able to read the specification." |
|
1165 |
||
1166 |
" |
|
9920 | 1167 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#tclMenuSlice |
1168 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser tclMenuSlice)) startUp |
|
9892 | 1169 |
" |
1170 |
||
1171 |
<resource: #menu> |
|
1172 |
||
14484 | 1173 |
^ |
9920 | 1174 |
#(Menu |
14484 | 1175 |
( |
1176 |
(MenuItem |
|
1177 |
label: '-' |
|
1178 |
isVisible: editedFileHasTCLSuffix |
|
1179 |
) |
|
1180 |
(MenuItem |
|
1181 |
enabled: tagTypesPresentHolder |
|
1182 |
label: 'Hide Variables' |
|
1183 |
translateLabel: true |
|
1184 |
isVisible: editedFileHasTCLSuffix |
|
1185 |
hideMenuOnActivated: false |
|
1186 |
indication: hideVariables: |
|
1187 |
) |
|
1188 |
) |
|
1189 |
nil |
|
1190 |
nil |
|
9892 | 1191 |
) |
9942 | 1192 |
! |
1193 |
||
1194 |
toolBarMenu |
|
1195 |
"This resource specification was automatically generated |
|
1196 |
by the MenuEditor of ST/X." |
|
1197 |
||
1198 |
"Do not manually edit this!! If it is corrupted, |
|
1199 |
the MenuEditor may not be able to read the specification." |
|
1200 |
||
10763 | 1201 |
|
9942 | 1202 |
" |
1203 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#toolBarMenu |
|
1204 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser toolBarMenu)) startUp |
|
1205 |
" |
|
1206 |
||
1207 |
<resource: #menu> |
|
1208 |
||
14543 | 1209 |
^ |
9942 | 1210 |
#(Menu |
14543 | 1211 |
( |
1212 |
(MenuItem |
|
1213 |
activeHelpKey: updateTagList |
|
1214 |
label: 'updateTagList' |
|
1215 |
itemValue: updateTagList |
|
1216 |
isButton: true |
|
1217 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
1218 |
) |
|
1219 |
(MenuItem |
|
1220 |
label: '-' |
|
1221 |
) |
|
1222 |
(MenuItem |
|
1223 |
activeHelpKey: sortByName |
|
1224 |
label: 'SortByName' |
|
1225 |
itemValue: sortByName |
|
1226 |
isButton: true |
|
1227 |
indication: sortIsByName |
|
1228 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByName16x16Icon) |
|
1229 |
) |
|
1230 |
(MenuItem |
|
1231 |
activeHelpKey: sortByLineNumber |
|
1232 |
label: 'SortByLineNumber' |
|
1233 |
itemValue: sortByLineNumber |
|
1234 |
isButton: true |
|
1235 |
indication: sortIsByLineNumber |
|
1236 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByLineNumber16x16Icon) |
|
1237 |
) |
|
1238 |
(MenuItem |
|
1239 |
label: '-' |
|
1240 |
) |
|
1241 |
(MenuItem |
|
1242 |
activeHelpKey: functionsOnly |
|
1243 |
label: 'FunctionsOnly' |
|
1244 |
itemValue: functionsOnly: |
|
1245 |
isButton: true |
|
1246 |
indication: functionsOnlyHolder |
|
1247 |
labelImage: (ResourceRetriever ToolbarIconLibrary functionsOnly16x16Icon) |
|
1248 |
) |
|
1249 |
(MenuItem |
|
14544 | 1250 |
activeHelpKey: structsOnly |
14543 | 1251 |
label: 'StructsOnly' |
1252 |
itemValue: structsOnly: |
|
1253 |
isButton: true |
|
14544 | 1254 |
isVisible: structsOnlyVisibleHolder |
14543 | 1255 |
indication: structsOnlyHolder |
1256 |
labelImage: (ResourceRetriever ToolbarIconLibrary structsOnly16x16Icon) |
|
1257 |
) |
|
1258 |
(MenuItem |
|
1259 |
activeHelpKey: toggleTagFilter |
|
1260 |
label: 'TagFilter' |
|
1261 |
isButton: true |
|
1262 |
indication: tagFilterFieldVisibleHolder |
|
1263 |
labelImage: (ResourceRetriever ToolbarIconLibrary filter16x16Icon) |
|
1264 |
) |
|
1265 |
) |
|
1266 |
nil |
|
1267 |
nil |
|
9942 | 1268 |
) |
11721 | 1269 |
! ! |
10772 | 1270 |
|
9892 | 1271 |
!TagsBrowser methodsFor:'accessing'! |
1272 |
||
9942 | 1273 |
action:aOneArgBlock |
1274 |
"set the action, which is called with the selected tag |
|
1275 |
" |
|
1276 |
action := aOneArgBlock. |
|
1277 |
||
1278 |
"Modified: / 23-06-2011 / 16:36:59 / cg" |
|
1279 |
! |
|
1280 |
||
9907 | 1281 |
editedFile |
1282 |
^ self editedFileHolder value |
|
1283 |
||
1284 |
"Created: / 06-05-2011 / 13:56:20 / cg" |
|
1285 |
! |
|
1286 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1287 |
editedFile:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1288 |
self editedFileHolder value:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1289 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1290 |
"Created: / 07-05-2011 / 14:48:58 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1291 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1292 |
|
9907 | 1293 |
editedFileHolder |
1294 |
"gets the holder, which keeps the current edited file |
|
1295 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1296 |
editedFileHolder isNil ifTrue:[ |
14484 | 1297 |
editedFileHolder := nil asValue. |
1298 |
editedFileHolder addDependent:self. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1299 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1300 |
^ editedFileHolder. |
9907 | 1301 |
|
1302 |
"Created: / 06-05-2011 / 13:52:39 / cg" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1303 |
"Modified: / 07-05-2011 / 10:15:30 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1304 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1305 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1306 |
editedFileHolder:aHolder |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1307 |
"gets the holder, which keeps the current edited file |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1308 |
" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1309 |
editedFileHolder notNil ifTrue:[ |
14484 | 1310 |
editedFileHolder removeDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1311 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1312 |
editedFileHolder := aHolder. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1313 |
editedFileHolder notNil ifTrue:[ |
14484 | 1314 |
editedFileHolder addDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1315 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1316 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1317 |
"Created: / 07-05-2011 / 10:16:18 / cg" |
9907 | 1318 |
! |
1319 |
||
9892 | 1320 |
filter:aString |
1321 |
tagView filter:aString. |
|
9907 | 1322 |
! |
1323 |
||
13630 | 1324 |
tagsMenu:something |
1325 |
tagsMenu := something. |
|
1326 |
! |
|
1327 |
||
14484 | 1328 |
tagsValid |
13341 | 1329 |
^ tagsValid ? false |
1330 |
! |
|
1331 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1332 |
tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1333 |
commonAspects notNil ifTrue:[ |
14484 | 1334 |
^ commonAspects tempDirectory |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1335 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1336 |
^ Filename tempDirectory |
9907 | 1337 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1338 |
"Created: / 07-05-2011 / 15:42:44 / cg" |
9892 | 1339 |
! ! |
1340 |
||
1341 |
!TagsBrowser methodsFor:'accessing filters'! |
|
1342 |
||
1343 |
classesFunctionsAndVariablesOnly |
|
1344 |
^ tagList classesFunctionsAndVariablesOnly |
|
1345 |
! |
|
1346 |
||
1347 |
classesFunctionsAndVariablesOnly:aBool |
|
1348 |
aBool ifTrue:[ |
|
14484 | 1349 |
tagList hideClasses:false. |
1350 |
tagList hideFunctions:false. |
|
1351 |
tagList hideVariables:false. |
|
9892 | 1352 |
]. |
1353 |
tagList classesFunctionsAndVariablesOnly:aBool. |
|
1354 |
self updateTagList |
|
1355 |
||
1356 |
"Modified: / 05-05-2011 / 15:33:13 / cg" |
|
1357 |
! |
|
1358 |
||
1359 |
classesOnly |
|
1360 |
^ tagList classesOnly |
|
1361 |
! |
|
1362 |
||
1363 |
classesOnly:aBool |
|
1364 |
aBool ifTrue:[ |
|
14484 | 1365 |
tagList hideClasses:false. |
9892 | 1366 |
]. |
1367 |
tagList classesOnly:aBool. |
|
1368 |
self updateTagList |
|
1369 |
||
1370 |
"Modified: / 05-05-2011 / 15:33:07 / cg" |
|
1371 |
! |
|
1372 |
||
13076 | 1373 |
dartClassesAndMethodsOnly |
1374 |
^ tagList dartClassesAndMethodsOnly |
|
1375 |
! |
|
1376 |
||
1377 |
dartClassesAndMethodsOnly:aBool |
|
1378 |
aBool ifTrue:[ |
|
14484 | 1379 |
tagList hideDartClasses:false. |
1380 |
tagList hideDartMethods:false. |
|
13076 | 1381 |
]. |
1382 |
tagList dartClassesAndMethodsOnly:aBool. |
|
1383 |
self updateTagList |
|
1384 |
! |
|
1385 |
||
11761 | 1386 |
dartClassesOnly |
1387 |
^ tagList dartClassesOnly |
|
1388 |
! |
|
1389 |
||
1390 |
dartClassesOnly:aBool |
|
1391 |
aBool ifTrue:[ |
|
14484 | 1392 |
tagList hideDartClasses:false. |
11761 | 1393 |
]. |
1394 |
tagList dartClassesOnly:aBool. |
|
1395 |
self updateTagList |
|
1396 |
! |
|
1397 |
||
13076 | 1398 |
dartMethodsOnly |
1399 |
^ tagList dartMethodsOnly |
|
1400 |
! |
|
1401 |
||
1402 |
dartMethodsOnly:aBool |
|
1403 |
aBool ifTrue:[ |
|
14484 | 1404 |
tagList hideDartMethods:false. |
13076 | 1405 |
]. |
1406 |
tagList dartMethodsOnly:aBool. |
|
1407 |
self updateTagList |
|
1408 |
! |
|
1409 |
||
9892 | 1410 |
definesOnly |
1411 |
^ tagList definesOnly |
|
1412 |
! |
|
1413 |
||
1414 |
definesOnly:aBool |
|
1415 |
aBool ifTrue:[ |
|
14484 | 1416 |
tagList hideDefines:false. |
9892 | 1417 |
]. |
1418 |
tagList definesOnly:aBool. |
|
1419 |
self updateTagList |
|
1420 |
! |
|
1421 |
||
9920 | 1422 |
documentationOnly |
1423 |
^ tagList documentationOnly |
|
1424 |
||
1425 |
"Created: / 08-05-2011 / 10:50:52 / cg" |
|
1426 |
! |
|
1427 |
||
1428 |
documentationOnly:aBool |
|
1429 |
aBool ifTrue:[ |
|
14484 | 1430 |
tagList hideDocumentation:false. |
9920 | 1431 |
]. |
1432 |
tagList documentationOnly:aBool. |
|
1433 |
self updateTagList |
|
1434 |
||
1435 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1436 |
! |
|
1437 |
||
9892 | 1438 |
functionsAndVariablesOnly |
1439 |
^ tagList functionsAndVariablesOnly |
|
1440 |
! |
|
1441 |
||
1442 |
functionsAndVariablesOnly:aBool |
|
1443 |
aBool ifTrue:[ |
|
14484 | 1444 |
tagList hideFunctions:false. |
1445 |
tagList hideVariables:false. |
|
9892 | 1446 |
]. |
1447 |
tagList functionsAndVariablesOnly:aBool. |
|
1448 |
self updateTagList |
|
1449 |
! |
|
1450 |
||
1451 |
functionsOnly |
|
1452 |
^ tagList functionsOnly |
|
1453 |
! |
|
1454 |
||
1455 |
functionsOnly:aBool |
|
10766 | 1456 |
self functionsOnlyHolder value:aBool. |
9892 | 1457 |
aBool ifTrue:[ |
14544 | 1458 |
self structsOnlyHolder value:false. |
1459 |
tagList hideFunctions:false. |
|
9892 | 1460 |
]. |
1461 |
tagList functionsOnly:aBool. |
|
1462 |
self updateTagList |
|
10766 | 1463 |
|
1464 |
"Modified: / 06-10-2011 / 14:03:45 / cg" |
|
9892 | 1465 |
! |
1466 |
||
1467 |
hideClasses |
|
1468 |
^ tagList hideClasses |
|
1469 |
! |
|
1470 |
||
1471 |
hideClasses:aBool |
|
1472 |
tagList hideClasses:aBool. |
|
1473 |
self updateTagList |
|
1474 |
! |
|
1475 |
||
11761 | 1476 |
hideDartClasses |
1477 |
^ tagList hideDartClasses |
|
1478 |
! |
|
1479 |
||
1480 |
hideDartClasses:aBool |
|
1481 |
tagList hideDartClasses:aBool. |
|
1482 |
self updateTagList |
|
1483 |
! |
|
1484 |
||
1485 |
hideDartFields |
|
1486 |
^ tagList hideDartFields |
|
1487 |
! |
|
1488 |
||
1489 |
hideDartFields:aBool |
|
1490 |
tagList hideDartFields:aBool. |
|
1491 |
self updateTagList |
|
1492 |
! |
|
1493 |
||
1494 |
hideDartInterfaces |
|
1495 |
^ tagList hideDartInterfaces |
|
1496 |
! |
|
1497 |
||
1498 |
hideDartInterfaces:aBool |
|
1499 |
tagList hideDartInterfaces:aBool. |
|
1500 |
self updateTagList |
|
1501 |
! |
|
1502 |
||
1503 |
hideDartMethods |
|
1504 |
^ tagList hideDartMethods |
|
1505 |
! |
|
1506 |
||
1507 |
hideDartMethods:aBool |
|
1508 |
tagList hideDartMethods:aBool. |
|
1509 |
self updateTagList |
|
1510 |
! |
|
1511 |
||
1512 |
hideDartPackages |
|
1513 |
^ tagList hideDartPackages |
|
1514 |
! |
|
1515 |
||
1516 |
hideDartPackages:aBool |
|
1517 |
tagList hideDartPackages:aBool. |
|
1518 |
self updateTagList |
|
1519 |
! |
|
1520 |
||
9892 | 1521 |
hideDataLabels |
1522 |
^ tagList hideDataLabels |
|
1523 |
! |
|
1524 |
||
1525 |
hideDataLabels:aBool |
|
1526 |
tagList hideDataLabels:aBool. |
|
1527 |
self updateTagList |
|
1528 |
! |
|
1529 |
||
1530 |
hideDefines |
|
1531 |
^ tagList hideDefines |
|
1532 |
! |
|
1533 |
||
1534 |
hideDefines:aBool |
|
1535 |
tagList hideDefines:aBool. |
|
1536 |
self updateTagList |
|
1537 |
! |
|
1538 |
||
9920 | 1539 |
hideDocumentation |
1540 |
^ tagList hideDocumentation |
|
1541 |
||
1542 |
"Created: / 08-05-2011 / 10:56:45 / cg" |
|
1543 |
! |
|
1544 |
||
1545 |
hideDocumentation:aBool |
|
1546 |
tagList hideDocumentation:aBool. |
|
1547 |
self updateTagList |
|
1548 |
||
1549 |
"Created: / 08-05-2011 / 10:56:49 / cg" |
|
1550 |
! |
|
1551 |
||
9892 | 1552 |
hideFunctionProtoTypes |
1553 |
^ tagList hideFunctionProtoTypes |
|
1554 |
! |
|
1555 |
||
1556 |
hideFunctionProtoTypes:aBool |
|
1557 |
tagList hideFunctionProtoTypes:aBool. |
|
1558 |
self updateTagList |
|
1559 |
! |
|
1560 |
||
1561 |
hideFunctions |
|
1562 |
^ tagList hideFunctions |
|
1563 |
! |
|
1564 |
||
1565 |
hideFunctions:aBool |
|
1566 |
tagList hideFunctions:aBool. |
|
1567 |
self updateTagList |
|
1568 |
! |
|
1569 |
||
1570 |
hideJavaClasses |
|
1571 |
^ tagList hideJavaClasses |
|
1572 |
! |
|
1573 |
||
1574 |
hideJavaClasses:aBool |
|
1575 |
tagList hideJavaClasses:aBool. |
|
1576 |
self updateTagList |
|
1577 |
! |
|
1578 |
||
1579 |
hideJavaFields |
|
1580 |
^ tagList hideJavaFields |
|
1581 |
! |
|
1582 |
||
1583 |
hideJavaFields:aBool |
|
1584 |
tagList hideJavaFields:aBool. |
|
1585 |
self updateTagList |
|
1586 |
! |
|
1587 |
||
1588 |
hideJavaInterfaces |
|
1589 |
^ tagList hideJavaInterfaces |
|
1590 |
! |
|
1591 |
||
1592 |
hideJavaInterfaces:aBool |
|
1593 |
tagList hideJavaInterfaces:aBool. |
|
1594 |
self updateTagList |
|
1595 |
! |
|
1596 |
||
1597 |
hideJavaMethods |
|
1598 |
^ tagList hideJavaMethods |
|
1599 |
! |
|
1600 |
||
1601 |
hideJavaMethods:aBool |
|
1602 |
tagList hideJavaMethods:aBool. |
|
1603 |
self updateTagList |
|
1604 |
! |
|
1605 |
||
1606 |
hideJavaPackages |
|
1607 |
^ tagList hideJavaPackages |
|
1608 |
! |
|
1609 |
||
1610 |
hideJavaPackages:aBool |
|
1611 |
tagList hideJavaPackages:aBool. |
|
1612 |
self updateTagList |
|
1613 |
! |
|
1614 |
||
14386 | 1615 |
hideLabels |
1616 |
^ tagList hideLabels |
|
1617 |
! |
|
1618 |
||
1619 |
hideLabels:aBool |
|
1620 |
tagList hideLabels:aBool. |
|
1621 |
self updateTagList |
|
1622 |
! |
|
1623 |
||
9892 | 1624 |
hideLispConstants |
1625 |
^ tagList hideLispConstants |
|
1626 |
! |
|
1627 |
||
1628 |
hideLispConstants:aBool |
|
1629 |
tagList hideLispConstants:aBool. |
|
1630 |
self updateTagList |
|
1631 |
! |
|
1632 |
||
1633 |
hideLispEvaluations |
|
1634 |
^ tagList hideLispEvaluations |
|
1635 |
! |
|
1636 |
||
1637 |
hideLispEvaluations:aBool |
|
1638 |
tagList hideLispEvaluations:aBool. |
|
1639 |
self updateTagList |
|
1640 |
! |
|
1641 |
||
1642 |
hideLispMacros |
|
1643 |
^ tagList hideLispMacros |
|
1644 |
! |
|
1645 |
||
1646 |
hideLispMacros:aBool |
|
1647 |
tagList hideLispMacros:aBool. |
|
1648 |
self updateTagList |
|
1649 |
! |
|
1650 |
||
1651 |
hideLispMethods |
|
1652 |
^ tagList hideLispMethods |
|
1653 |
! |
|
1654 |
||
1655 |
hideLispMethods:aBool |
|
1656 |
tagList hideLispMethods:aBool. |
|
1657 |
self updateTagList |
|
1658 |
! |
|
1659 |
||
1660 |
hideLocalLabels |
|
1661 |
^ tagList hideLocalLabels |
|
1662 |
! |
|
1663 |
||
11465 | 1664 |
hideLocalLabels2 |
1665 |
^ tagList hideLocalLabels2 |
|
1666 |
||
1667 |
"Created: / 24-03-2012 / 23:23:43 / cg" |
|
1668 |
! |
|
1669 |
||
1670 |
hideLocalLabels2:aBool |
|
1671 |
tagList hideLocalLabels2:aBool. |
|
1672 |
self updateTagList |
|
1673 |
||
1674 |
"Created: / 24-03-2012 / 23:23:26 / cg" |
|
1675 |
! |
|
1676 |
||
11503 | 1677 |
hideLocalLabels3 |
1678 |
^ tagList hideLocalLabels3 |
|
1679 |
||
1680 |
"Created: / 13-05-2012 / 11:09:54 / cg" |
|
1681 |
! |
|
1682 |
||
1683 |
hideLocalLabels3:aBool |
|
1684 |
tagList hideLocalLabels3:aBool. |
|
1685 |
self updateTagList |
|
1686 |
||
1687 |
"Created: / 13-05-2012 / 11:10:01 / cg" |
|
1688 |
! |
|
1689 |
||
9892 | 1690 |
hideLocalLabels:aBool |
1691 |
tagList hideLocalLabels:aBool. |
|
1692 |
self updateTagList |
|
1693 |
! |
|
1694 |
||
14348 | 1695 |
hideLuaFunctions |
1696 |
^ tagList hideLuaFunctions |
|
1697 |
! |
|
1698 |
||
1699 |
hideLuaFunctions:aBool |
|
1700 |
tagList hideLuaFunctions:aBool. |
|
1701 |
self updateTagList |
|
1702 |
! |
|
1703 |
||
1704 |
hideLuaVariables |
|
1705 |
^ tagList hideLuaVariables |
|
1706 |
! |
|
1707 |
||
1708 |
hideLuaVariables:aBool |
|
1709 |
tagList hideLuaVariables:aBool. |
|
1710 |
self updateTagList |
|
1711 |
! |
|
1712 |
||
11761 | 1713 |
hideMethods |
1714 |
^ tagList hideMethods |
|
1715 |
||
1716 |
"Created: / 21-08-2012 / 21:02:54 / cg" |
|
1717 |
! |
|
1718 |
||
1719 |
hideMethods:aBool |
|
1720 |
tagList hideMethods:aBool. |
|
1721 |
self updateTagList |
|
1722 |
||
1723 |
"Created: / 21-08-2012 / 21:01:45 / cg" |
|
1724 |
! |
|
1725 |
||
9892 | 1726 |
hideOzClasses |
1727 |
^ tagList hideOzClasses |
|
1728 |
! |
|
1729 |
||
1730 |
hideOzClasses:aBool |
|
1731 |
tagList hideOzClasses:aBool. |
|
1732 |
self updateTagList |
|
1733 |
! |
|
1734 |
||
1735 |
hideOzFunctions |
|
1736 |
^ tagList hideOzFunctions |
|
1737 |
! |
|
1738 |
||
1739 |
hideOzFunctions:aBool |
|
1740 |
tagList hideOzFunctions:aBool. |
|
1741 |
self updateTagList |
|
1742 |
! |
|
1743 |
||
1744 |
hideOzMethods |
|
1745 |
^ tagList hideOzMethods |
|
1746 |
! |
|
1747 |
||
1748 |
hideOzMethods:aBool |
|
1749 |
tagList hideOzMethods:aBool. |
|
1750 |
self updateTagList |
|
1751 |
! |
|
1752 |
||
1753 |
hidePythonClasses |
|
1754 |
^ tagList hidePythonClasses |
|
1755 |
! |
|
1756 |
||
1757 |
hidePythonClasses:aBool |
|
1758 |
tagList hidePythonClasses:aBool. |
|
1759 |
self updateTagList |
|
1760 |
! |
|
1761 |
||
1762 |
hidePythonFunctions |
|
1763 |
^ tagList hidePythonFunctions |
|
1764 |
! |
|
1765 |
||
1766 |
hidePythonFunctions:aBool |
|
1767 |
tagList hidePythonFunctions:aBool. |
|
1768 |
self updateTagList |
|
1769 |
! |
|
1770 |
||
1771 |
hidePythonMethods |
|
1772 |
^ tagList hidePythonMethods |
|
1773 |
! |
|
1774 |
||
1775 |
hidePythonMethods:aBool |
|
1776 |
tagList hidePythonMethods:aBool. |
|
1777 |
self updateTagList |
|
1778 |
! |
|
1779 |
||
1780 |
hideStatic |
|
1781 |
^ tagList hideStatic |
|
1782 |
! |
|
1783 |
||
1784 |
hideStatic:aBool |
|
1785 |
tagList hideStatic:aBool. |
|
1786 |
self updateTagList |
|
1787 |
! |
|
1788 |
||
1789 |
hideStructMembers |
|
1790 |
^ tagList hideStructMembers |
|
1791 |
! |
|
1792 |
||
1793 |
hideStructMembers:aBool |
|
1794 |
tagList hideStructMembers:aBool. |
|
1795 |
self updateTagList |
|
1796 |
! |
|
1797 |
||
1798 |
hideStructures |
|
1799 |
^ tagList hideStructures |
|
1800 |
! |
|
1801 |
||
1802 |
hideStructures:aBool |
|
1803 |
tagList hideStructures:aBool. |
|
1804 |
self updateTagList |
|
1805 |
! |
|
1806 |
||
1807 |
hideTextLabels |
|
1808 |
^ tagList hideTextLabels |
|
1809 |
! |
|
1810 |
||
1811 |
hideTextLabels:aBool |
|
1812 |
tagList hideTextLabels:aBool. |
|
1813 |
self updateTagList |
|
1814 |
! |
|
1815 |
||
1816 |
hideTypedefs |
|
1817 |
^ tagList hideTypedefs |
|
1818 |
! |
|
1819 |
||
1820 |
hideTypedefs:aBool |
|
1821 |
tagList hideTypedefs:aBool. |
|
1822 |
self updateTagList |
|
1823 |
! |
|
1824 |
||
1825 |
hideVariables |
|
1826 |
^ tagList hideVariables |
|
1827 |
! |
|
1828 |
||
1829 |
hideVariables:aBool |
|
1830 |
tagList hideVariables:aBool. |
|
1831 |
self updateTagList |
|
1832 |
! |
|
1833 |
||
1834 |
javaClassesAndMethodsOnly |
|
1835 |
^ tagList javaClassesAndMethodsOnly |
|
1836 |
! |
|
1837 |
||
1838 |
javaClassesAndMethodsOnly:aBool |
|
1839 |
aBool ifTrue:[ |
|
14484 | 1840 |
tagList hideJavaClasses:false. |
1841 |
tagList hideJavaMethods:false. |
|
9892 | 1842 |
]. |
1843 |
tagList javaClassesAndMethodsOnly:aBool. |
|
1844 |
self updateTagList |
|
1845 |
! |
|
1846 |
||
1847 |
javaClassesOnly |
|
1848 |
^ tagList javaClassesOnly |
|
1849 |
! |
|
1850 |
||
1851 |
javaClassesOnly:aBool |
|
1852 |
aBool ifTrue:[ |
|
14484 | 1853 |
tagList hideJavaClasses:false. |
9892 | 1854 |
]. |
1855 |
tagList javaClassesOnly:aBool. |
|
1856 |
self updateTagList |
|
1857 |
! |
|
1858 |
||
1859 |
javaMethodsOnly |
|
1860 |
^ tagList javaMethodsOnly |
|
1861 |
! |
|
1862 |
||
1863 |
javaMethodsOnly:aBool |
|
1864 |
aBool ifTrue:[ |
|
14484 | 1865 |
tagList hideJavaMethods:false. |
9892 | 1866 |
]. |
1867 |
tagList javaMethodsOnly:aBool. |
|
1868 |
self updateTagList |
|
1869 |
! |
|
1870 |
||
14348 | 1871 |
luaFunctionsOnly |
1872 |
^ tagList luaFunctionsOnly |
|
1873 |
! |
|
1874 |
||
1875 |
luaFunctionsOnly:aBool |
|
1876 |
aBool ifTrue:[ |
|
14484 | 1877 |
tagList hideLuaFunctions:false. |
14348 | 1878 |
]. |
1879 |
tagList luaFunctionsOnly:aBool. |
|
1880 |
self updateTagList |
|
1881 |
! |
|
1882 |
||
9892 | 1883 |
macrosOnly |
1884 |
^ tagList macrosOnly |
|
1885 |
||
1886 |
"Created: / 07-06-2010 / 12:08:42 / cg" |
|
1887 |
! |
|
1888 |
||
1889 |
macrosOnly:aBool |
|
1890 |
aBool ifTrue:[ |
|
14484 | 1891 |
tagList hideLispMacros:false. |
9892 | 1892 |
]. |
1893 |
tagList macrosOnly:aBool. |
|
1894 |
self updateTagList |
|
1895 |
||
1896 |
"Created: / 07-06-2010 / 12:09:08 / cg" |
|
1897 |
! |
|
1898 |
||
1899 |
methodsOnly |
|
1900 |
^ tagList methodsOnly |
|
1901 |
||
1902 |
"Created: / 07-06-2010 / 12:11:55 / cg" |
|
1903 |
! |
|
1904 |
||
1905 |
methodsOnly:aBool |
|
1906 |
aBool ifTrue:[ |
|
14484 | 1907 |
tagList hideLispMethods:false. |
9892 | 1908 |
]. |
1909 |
tagList methodsOnly:aBool. |
|
1910 |
self updateTagList |
|
1911 |
||
1912 |
"Created: / 07-06-2010 / 12:12:03 / cg" |
|
1913 |
! |
|
1914 |
||
1915 |
pythonClassesOnly |
|
1916 |
^ tagList pythonClassesOnly |
|
1917 |
! |
|
1918 |
||
1919 |
pythonClassesOnly:aBool |
|
1920 |
aBool ifTrue:[ |
|
14484 | 1921 |
tagList hidePythonClasses:false. |
9892 | 1922 |
]. |
1923 |
tagList pythonClassesOnly:aBool. |
|
1924 |
self updateTagList |
|
1925 |
! |
|
1926 |
||
1927 |
pythonFunctionsOnly |
|
1928 |
^ tagList pythonFunctionsOnly |
|
1929 |
! |
|
1930 |
||
1931 |
pythonFunctionsOnly:aBool |
|
1932 |
aBool ifTrue:[ |
|
14484 | 1933 |
tagList hidePythonFunctions:false. |
9892 | 1934 |
]. |
1935 |
tagList pythonFunctionsOnly:aBool. |
|
1936 |
self updateTagList |
|
1937 |
! |
|
1938 |
||
1939 |
pythonMethodsOnly |
|
1940 |
^ tagList pythonMethodsOnly |
|
1941 |
! |
|
1942 |
||
1943 |
pythonMethodsOnly:aBool |
|
1944 |
aBool ifTrue:[ |
|
14484 | 1945 |
tagList hidePythonMethods:false. |
9892 | 1946 |
]. |
1947 |
tagList pythonMethodsOnly:aBool. |
|
1948 |
self updateTagList |
|
1949 |
! |
|
1950 |
||
1951 |
structsOnly |
|
1952 |
^ tagList structsOnly |
|
1953 |
||
1954 |
"Created: / 25-06-2010 / 10:54:46 / cg" |
|
1955 |
! |
|
1956 |
||
1957 |
structsOnly:aBool |
|
14544 | 1958 |
self structsOnlyHolder value:aBool. |
1959 |
aBool ifTrue:[ |
|
1960 |
self functionsOnlyHolder value:false. |
|
1961 |
tagList hideStructures:false. |
|
1962 |
]. |
|
9892 | 1963 |
tagList structsOnly:aBool. |
1964 |
self updateTagList |
|
1965 |
! |
|
1966 |
||
1967 |
tagTypesPresent |
|
1968 |
^ tagList tagTypesPresent |
|
1969 |
! |
|
1970 |
||
1971 |
tagTypesPresentHolder |
|
1972 |
^ [ self tagTypesPresent ] |
|
1973 |
! |
|
1974 |
||
1975 |
targetsOnly |
|
1976 |
^ tagList targetsOnly |
|
1977 |
! |
|
1978 |
||
1979 |
targetsOnly:aBool |
|
1980 |
tagList targetsOnly:aBool. |
|
1981 |
self updateTagList |
|
1982 |
! |
|
1983 |
||
1984 |
typesOnly |
|
1985 |
^ tagList typesOnly |
|
1986 |
! |
|
1987 |
||
1988 |
typesOnly:aBool |
|
1989 |
aBool ifTrue:[ |
|
14484 | 1990 |
tagList hideTypedefs:false. |
9892 | 1991 |
]. |
1992 |
tagList typesOnly:aBool. |
|
1993 |
self updateTagList |
|
1994 |
! |
|
1995 |
||
1996 |
variablesOnly |
|
1997 |
^ tagList variablesOnly |
|
1998 |
! |
|
1999 |
||
2000 |
variablesOnly:aBool |
|
2001 |
aBool ifTrue:[ |
|
14484 | 2002 |
tagList hideVariables:false. |
9892 | 2003 |
]. |
2004 |
tagList variablesOnly:aBool. |
|
2005 |
self updateTagList |
|
2006 |
||
2007 |
"Modified: / 05-05-2011 / 15:33:18 / cg" |
|
2008 |
! ! |
|
2009 |
||
2010 |
!TagsBrowser methodsFor:'accessing presentation aspects'! |
|
2011 |
||
2012 |
groupedByType |
|
2013 |
^ tagList groupedByType |
|
2014 |
||
2015 |
"Created: / 05-05-2011 / 14:51:29 / cg" |
|
2016 |
! |
|
2017 |
||
2018 |
groupedByType:aBool |
|
2019 |
tagList groupedByType:aBool |
|
2020 |
||
2021 |
"Created: / 05-05-2011 / 14:51:33 / cg" |
|
2022 |
! |
|
2023 |
||
2024 |
sorted |
|
2025 |
^ tagList sorted |
|
2026 |
! |
|
2027 |
||
2028 |
sorted:aBool |
|
2029 |
tagList sorted:aBool |
|
2030 |
! |
|
2031 |
||
2032 |
sortedByLineNumber |
|
2033 |
^ tagList sortedByLineNumber |
|
2034 |
! |
|
2035 |
||
2036 |
sortedByLineNumber:aBool |
|
2037 |
tagList sortedByLineNumber:aBool |
|
2038 |
! |
|
2039 |
||
2040 |
sortedByName |
|
2041 |
^ tagList sortedByName |
|
2042 |
! |
|
2043 |
||
2044 |
sortedByName:aBool |
|
2045 |
tagList sortedByName:aBool |
|
2046 |
! |
|
2047 |
||
2048 |
sortedByNameIgnoringCase |
|
2049 |
^ tagList sortedByNameIgnoringCase |
|
2050 |
! |
|
2051 |
||
2052 |
sortedByNameIgnoringCase:aBool |
|
2053 |
tagList sortedByNameIgnoringCase:aBool |
|
2054 |
! |
|
2055 |
||
2056 |
sortedByNameIgnoringLeadingUnderscores |
|
2057 |
^ tagList sortedByNameIgnoringLeadingUnderscores |
|
2058 |
! |
|
2059 |
||
2060 |
sortedByNameIgnoringLeadingUnderscores:aBool |
|
2061 |
tagList sortedByNameIgnoringLeadingUnderscores:aBool |
|
2062 |
! |
|
2063 |
||
2064 |
sortedByNameIgnoringLeadingUnderscoresAndCase |
|
2065 |
^ tagList sortedByNameIgnoringLeadingUnderscoresAndCase |
|
2066 |
! |
|
2067 |
||
2068 |
sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
2069 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
2070 |
! |
|
2071 |
||
2072 |
sortedByType |
|
2073 |
^ tagList sortedByType |
|
2074 |
! |
|
2075 |
||
2076 |
sortedByType:aBool |
|
2077 |
tagList sortedByType:aBool |
|
2078 |
! ! |
|
2079 |
||
2080 |
!TagsBrowser methodsFor:'aspects'! |
|
2081 |
||
2082 |
editedFileHasAssemblerSuffix |
|
2083 |
^builder booleanValueAspectFor: #editedFileHasAssemblerSuffix |
|
2084 |
||
2085 |
||
2086 |
! |
|
2087 |
||
2088 |
editedFileHasCSuffix |
|
2089 |
^builder booleanValueAspectFor: #editedFileHasCSuffix |
|
2090 |
||
2091 |
||
2092 |
! |
|
2093 |
||
11761 | 2094 |
editedFileHasDartSuffix |
2095 |
^builder booleanValueAspectFor: #editedFileHasDartSuffix |
|
2096 |
! |
|
2097 |
||
9892 | 2098 |
editedFileHasEiffelSuffix |
2099 |
^builder booleanValueAspectFor: #editedFileHasEiffelSuffix |
|
2100 |
||
2101 |
||
2102 |
! |
|
2103 |
||
2104 |
editedFileHasFortranSuffix |
|
2105 |
^builder booleanValueAspectFor: #editedFileHasFortranSuffix |
|
2106 |
||
2107 |
||
2108 |
! |
|
2109 |
||
2110 |
editedFileHasJavaScriptSuffix |
|
2111 |
^builder booleanValueAspectFor: #editedFileHasJavaScriptSuffix |
|
2112 |
||
2113 |
"Created: / 28-06-2010 / 13:09:15 / cg" |
|
2114 |
! |
|
2115 |
||
2116 |
editedFileHasJavaSuffix |
|
2117 |
^builder booleanValueAspectFor: #editedFileHasJavaSuffix |
|
2118 |
||
2119 |
||
2120 |
! |
|
2121 |
||
2122 |
editedFileHasLispSuffix |
|
2123 |
^builder booleanValueAspectFor: #editedFileHasLispSuffix |
|
2124 |
||
2125 |
||
2126 |
! |
|
2127 |
||
14348 | 2128 |
editedFileHasLuaSuffix |
2129 |
^builder booleanValueAspectFor: #editedFileHasLuaSuffix |
|
2130 |
! |
|
2131 |
||
9892 | 2132 |
editedFileHasOzSuffix |
2133 |
^builder booleanValueAspectFor: #editedFileHasOzSuffix |
|
2134 |
! |
|
2135 |
||
2136 |
editedFileHasPythonSuffix |
|
2137 |
^builder booleanValueAspectFor: #editedFileHasPythonSuffix |
|
2138 |
||
2139 |
||
2140 |
! |
|
2141 |
||
2142 |
editedFileHasRubySuffix |
|
2143 |
^builder booleanValueAspectFor: #editedFileHasRubySuffix |
|
2144 |
! |
|
2145 |
||
2146 |
editedFileHasSmalltalkSuffix |
|
2147 |
^builder booleanValueAspectFor: #editedFileHasSmalltalkSuffix |
|
2148 |
||
2149 |
||
2150 |
! |
|
2151 |
||
2152 |
editedFileHasTCLSuffix |
|
2153 |
^builder booleanValueAspectFor: #editedFileHasTCLSuffix |
|
2154 |
||
2155 |
||
2156 |
! |
|
2157 |
||
2158 |
editedFileIsMakefile |
|
2159 |
^builder booleanValueAspectFor: #editedFileIsMakefile |
|
2160 |
! |
|
2161 |
||
10763 | 2162 |
functionsOnlyHolder |
2163 |
^ builder booleanValueAspectFor: #functionsOnly |
|
2164 |
||
2165 |
"Created: / 06-10-2011 / 12:19:23 / cg" |
|
2166 |
! |
|
2167 |
||
9892 | 2168 |
remoteCtagsModel |
2169 |
||
2170 |
|holder| |
|
2171 |
||
2172 |
(holder := builder bindingAt:#remoteCtagsModel) isNil ifTrue:[ |
|
14484 | 2173 |
holder := false asValue. |
2174 |
builder aspectAt:#remoteCtagsModel put:holder. |
|
9892 | 2175 |
]. |
2176 |
^ holder. |
|
2177 |
! |
|
2178 |
||
10435 | 2179 |
sortIsByLineNumber |
2180 |
^ builder booleanValueAspectFor: #sortIsByLineNumber |
|
2181 |
||
2182 |
"Created: / 03-08-2011 / 11:17:48 / cg" |
|
2183 |
! |
|
2184 |
||
2185 |
sortIsByName |
|
2186 |
^ builder booleanValueAspectFor: #sortIsByName |
|
2187 |
||
2188 |
"Created: / 03-08-2011 / 11:17:52 / cg" |
|
2189 |
! |
|
2190 |
||
14544 | 2191 |
structsOnlyHolder |
2192 |
^ builder booleanValueAspectFor: #structsOnly |
|
2193 |
! |
|
2194 |
||
2195 |
structsOnlyVisibleHolder |
|
2196 |
^ builder booleanValueAspectFor: #structsOnlyVisible |
|
2197 |
! |
|
2198 |
||
11721 | 2199 |
tagFilterFieldVisibleHolder |
2200 |
|holder| |
|
2201 |
||
2202 |
(holder := builder bindingAt:#tagFilterFieldVisibleHolder) isNil ifTrue:[ |
|
14484 | 2203 |
holder := false asValue. |
2204 |
builder aspectAt:#tagFilterFieldVisibleHolder put:holder. |
|
2205 |
holder onChangeSend:#tagFilterVisibilityChanged to:self. |
|
11721 | 2206 |
]. |
2207 |
^ holder. |
|
2208 |
||
2209 |
"Created: / 01-08-2012 / 10:52:48 / cg" |
|
2210 |
! |
|
2211 |
||
2212 |
tagFilterPatternHolder |
|
2213 |
|holder| |
|
2214 |
||
2215 |
(holder := builder bindingAt:#tagFilterPatternHolder) isNil ifTrue:[ |
|
14484 | 2216 |
holder := '' asValue. |
2217 |
builder aspectAt:#tagFilterPatternHolder put:holder. |
|
2218 |
holder onChangeSend:#tagFilterChanged to:self. |
|
11721 | 2219 |
]. |
2220 |
^ holder. |
|
2221 |
||
2222 |
"Created: / 01-08-2012 / 16:43:26 / cg" |
|
2223 |
! |
|
2224 |
||
9892 | 2225 |
tagList |
2226 |
"returns the tagList |
|
2227 |
" |
|
2228 |
^ tagList |
|
2229 |
! |
|
2230 |
||
2231 |
tagView |
|
2232 |
"returns the widget which shows the tags |
|
2233 |
" |
|
2234 |
^ tagView |
|
2235 |
! ! |
|
2236 |
||
2237 |
!TagsBrowser methodsFor:'change & update'! |
|
2238 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2239 |
delayedEditedFileChanged |
9892 | 2240 |
"called when the current editing file has changed. |
2241 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2242 |
" |
|
2243 |
||
2244 |
self updateFileTypeHolders. |
|
14480 | 2245 |
tagsValid ifFalse:[ |
14484 | 2246 |
self updateTagList. |
13341 | 2247 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2248 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2249 |
"Created: / 07-05-2011 / 15:36:52 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2250 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2251 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2252 |
editedFileChanged |
13341 | 2253 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2254 |
self enqueueDelayedAction:[self delayedEditedFileChanged]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2255 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2256 |
"Modified: / 07-05-2011 / 15:37:00 / cg" |
9892 | 2257 |
! |
2258 |
||
11721 | 2259 |
tagFilterChanged |
2260 |
tagList filter:(self tagFilterPatternHolder value) |
|
2261 |
||
2262 |
"Created: / 01-08-2012 / 16:44:54 / cg" |
|
2263 |
! |
|
2264 |
||
2265 |
tagFilterVisibilityChanged |
|
2266 |
self tagFilterFieldVisibleHolder value ifTrue:[ |
|
14484 | 2267 |
"/ self windowGroup |
2268 |
"/ focusView:(self builder componentAt:#TagFilterInputField) |
|
11721 | 2269 |
"/ byTab:true. |
14484 | 2270 |
self enqueueMessage:#assignFocusToTagFilterInputField for:self arguments:#(). |
11721 | 2271 |
]. |
2272 |
||
2273 |
"Created: / 01-08-2012 / 17:00:27 / cg" |
|
2274 |
! |
|
2275 |
||
9892 | 2276 |
update:something with:aparameter from:changedObject |
2277 |
changedObject == self editedFileHolder ifTrue:[ |
|
14484 | 2278 |
tagList removeAll. |
2279 |
self editedFileChanged. |
|
2280 |
^ self |
|
9892 | 2281 |
]. |
2282 |
super update:something with:aparameter from:changedObject |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2283 |
|
11721 | 2284 |
"Modified: / 01-08-2012 / 16:58:30 / cg" |
9892 | 2285 |
! |
2286 |
||
2287 |
updateFileTypeHolders |
|
2288 |
"called when the current editing file has changed. |
|
2289 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2290 |
" |
|
2291 |
||
2292 |
|edFile suffix mime| |
|
2293 |
||
14386 | 2294 |
edFile := self editedFile. |
2295 |
"/ edFile notNil ifTrue:[ |
|
14364 | 2296 |
"/ suffix := edFile suffix. |
2297 |
"/ ]. |
|
9892 | 2298 |
|
2299 |
mime := TagList tagMimeTypeForFile:edFile. |
|
2300 |
||
14544 | 2301 |
"/ valueHolder mime(s) |
9892 | 2302 |
#( |
14544 | 2303 |
(editedFileHasJavaSuffix ('text/java' 'application/x-java-source')) |
2304 |
(editedFileHasJavaScriptSuffix ('text/javaScript' 'text/javascript' 'application/x-javascript' 'application/x-javascript-source') ) |
|
2305 |
(editedFileHasDartSuffix ('text/dart' 'application/x-dart' 'application/x-dart-source') ) |
|
2306 |
(editedFileHasCSuffix ('text/c' 'application/x-c-source')) |
|
2307 |
(editedFileHasEiffelSuffix ('text/eiffel' 'application/x-eiffel-source')) |
|
2308 |
(editedFileHasFortranSuffix ('text/fortran' 'application/x-fortran-source')) |
|
2309 |
(editedFileHasPythonSuffix ('text/python' 'application/x-python-source')) |
|
2310 |
(editedFileHasOzSuffix ('text/oz' 'application/x-oz-source')) |
|
2311 |
(editedFileHasLuaSuffix ('text/lua' 'application/x-lua-source')) |
|
2312 |
(editedFileHasLispSuffix ('text/lisp' 'text/lisp-arc' 'text/scheme' 'application/x-lisp-source' 'application/x-scheme-source') ) |
|
2313 |
(editedFileHasSmalltalkSuffix ('text/smalltalk' 'application/x-smalltalk-source')) |
|
2314 |
(editedFileHasTCLSuffix ('text/tcl' 'application/x-tcl-source') ) |
|
2315 |
(editedFileHasAssemblerSuffix ('text/asm' 'application/x-assembler-source')) |
|
2316 |
(editedFileIsMakefile 'text/make') |
|
2317 |
(editedFileHasRubySuffix ('text/ruby' 'application/x-ruby-source')) |
|
9892 | 2318 |
) pairsDo:[:holderName :mimeTypeOrTypes | |
14544 | 2319 |
|holder| |
2320 |
||
2321 |
holder := self perform:holderName. |
|
2322 |
mimeTypeOrTypes isString ifTrue:[ |
|
2323 |
holder value:(mime = mimeTypeOrTypes) |
|
2324 |
] ifFalse:[ |
|
2325 |
holder value:(mimeTypeOrTypes includes:mime) |
|
2326 |
]. |
|
9892 | 2327 |
]. |
14544 | 2328 |
self structsOnlyVisibleHolder value:(self editedFileHasCSuffix value). |
9892 | 2329 |
|
11761 | 2330 |
"Modified: / 21-08-2012 / 20:54:08 / cg" |
9943 | 2331 |
! |
2332 |
||
2333 |
updateForLine:lineNr |
|
2334 |
"/ highlight the tag for a particular line in the edittext |
|
2335 |
"/ called via a hook via the masterapp from the editView... |
|
2336 |
||
14480 | 2337 |
self updateForLine:lineNr filtering:nil |
2338 |
! |
|
2339 |
||
2340 |
updateForLine:lineNr filtering:tagFilterOrNil |
|
2341 |
"highlight the tag for a particular line in the edittext |
|
2342 |
called via a hook via the masterapp from the editView... |
|
2343 |
The filter can be used eg. to find only function tags |
|
2344 |
(i.e. to ignore case and goto labels in C)" |
|
2345 |
||
9943 | 2346 |
|bestTag| |
2347 |
||
14480 | 2348 |
bestTag := tagList bestTagForLine:lineNr filtering:tagFilterOrNil. |
9943 | 2349 |
bestTag notNil ifTrue:[ |
14484 | 2350 |
tagView setSelection:(tagList identityIndexOf:bestTag). |
9943 | 2351 |
] ifFalse:[ |
14484 | 2352 |
"/ remember line in case the tag-list is being generated |
2353 |
tagView tagLineNr:lineNr |
|
9943 | 2354 |
]. |
2355 |
||
2356 |
"Modified: / 23-06-2011 / 17:28:26 / cg" |
|
9892 | 2357 |
! ! |
2358 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2359 |
!TagsBrowser methodsFor:'hooks for ccbrowser'! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2360 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2361 |
buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2362 |
commonAspects notNil ifTrue:[ |
14484 | 2363 |
^ commonAspects buildTarget |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2364 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2365 |
^ nil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2366 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2367 |
"Created: / 07-05-2011 / 15:38:20 / cg" |
13341 | 2368 |
! |
2369 |
||
2370 |
tagForFunction:functionName |
|
2371 |
^ tagList tagForFunction:functionName |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2372 |
! ! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2373 |
|
13632 | 2374 |
!TagsBrowser methodsFor:'hooks for embedding'! |
2375 |
||
2376 |
tagListGenerator:aBlockOrValueHolder |
|
2377 |
"to use a tagsBrowser as a component in another application, |
|
2378 |
this hook allows for the tag list to be provided by that application. |
|
2379 |
If non-nil, it will be evaluated to generate the tagList instead of |
|
2380 |
reading the tags from the editedFile" |
|
2381 |
||
2382 |
tagListGenerator := aBlockOrValueHolder. |
|
2383 |
! ! |
|
2384 |
||
9892 | 2385 |
!TagsBrowser methodsFor:'menu actions'! |
2386 |
||
10766 | 2387 |
keepingSelectionDo:aBlock |
2388 |
|oldSelection oldLabel| |
|
2389 |
||
2390 |
oldSelection := tagView selectionValue. |
|
2391 |
aBlock value. |
|
2392 |
||
14484 | 2393 |
oldSelection notNil ifTrue:[ |
2394 |
oldLabel := oldSelection label. |
|
2395 |
tagView |
|
2396 |
selectElementForWhich:[:el | el label = oldLabel] |
|
2397 |
ifAbsent:[self halt:'ouch - no such label']. |
|
10766 | 2398 |
]. |
2399 |
||
2400 |
"Created: / 06-10-2011 / 13:41:57 / cg" |
|
2401 |
! |
|
2402 |
||
9892 | 2403 |
middleButtonMenu |
14484 | 2404 |
^ [ |
2405 |
|menu suffix file item| |
|
2406 |
||
2407 |
tagsMenu notNil ifTrue:[ |
|
2408 |
tagsMenu |
|
2409 |
] ifFalse:[ |
|
2410 |
menus isNil ifTrue:[ |
|
2411 |
menus := IdentityDictionary new. |
|
2412 |
]. |
|
2413 |
||
2414 |
menu := nil. |
|
2415 |
||
2416 |
(file := self editedFile) notNil ifTrue:[ |
|
2417 |
(tagList supportsFile:file) ifTrue:[ |
|
2418 |
menu := menus at:#exists ifAbsentPut:[ |
|
2419 |
menu := self class middleButtonMenu decodeAsLiteralArray. |
|
2420 |
menu receiver:self. |
|
2421 |
menu findGuiResourcesIn:self. |
|
2422 |
menu |
|
2423 |
]. |
|
2424 |
menu := MenuPanel menu:menu receiver:self. |
|
2425 |
] ifFalse:[ |
|
2426 |
suffix := file suffix. |
|
2427 |
||
2428 |
suffix size ~~ 0 ifTrue:[ |
|
2429 |
menu := menus at:#new ifAbsentPut:[ |
|
2430 |
menu := Menu new. |
|
2431 |
item := MenuItem label:('assign ', (Text string:suffix emphasis:#underline), ' to:'). |
|
2432 |
item enabled:false. |
|
2433 |
menu addItem:item. |
|
2434 |
menu addItem:(MenuItem separator). |
|
2435 |
||
2436 |
tagList class tagsSuffixes keysAndValuesDo:[:aKey :aValue| |
|
2437 |
item := MenuItem label:(' - ', aKey ) |
|
2438 |
itemValue:[ |list| |
|
2439 |
list := aValue asOrderedCollection. |
|
2440 |
list add:(suffix asLowercase). |
|
2441 |
tagList class tagsSuffixes at:aKey put:list. |
|
2442 |
self editedFileChanged. |
|
2443 |
]. |
|
2444 |
menu addItem:item. |
|
2445 |
]. |
|
2446 |
menu |
|
2447 |
]. |
|
2448 |
||
2449 |
] |
|
2450 |
]. |
|
2451 |
]. |
|
2452 |
menu |
|
2453 |
] |
|
9892 | 2454 |
] |
11780 | 2455 |
|
2456 |
"Modified: / 08-09-2012 / 19:51:03 / cg" |
|
9892 | 2457 |
! |
2458 |
||
10435 | 2459 |
sortByLineNumber |
10766 | 2460 |
self keepingSelectionDo:[ |
14484 | 2461 |
tagList sortedByLineNumber:true. |
2462 |
self sortIsByName value:false. |
|
2463 |
self sortIsByLineNumber value:true. |
|
10766 | 2464 |
] |
10435 | 2465 |
|
2466 |
"Created: / 03-08-2011 / 11:04:51 / cg" |
|
2467 |
! |
|
2468 |
||
2469 |
sortByName |
|
10766 | 2470 |
self keepingSelectionDo:[ |
14484 | 2471 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase: "sortedByName:" true. |
2472 |
self sortIsByLineNumber value:false. |
|
2473 |
self sortIsByName value:true. |
|
10766 | 2474 |
]. |
10435 | 2475 |
|
2476 |
"Created: / 03-08-2011 / 11:04:37 / cg" |
|
2477 |
! |
|
2478 |
||
9892 | 2479 |
updateTagList |
13341 | 2480 |
"regenerate tags |
9892 | 2481 |
" |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2482 |
|
10766 | 2483 |
|file target oldSelection| |
9892 | 2484 |
|
13632 | 2485 |
tagListGenerator notNil ifTrue:[ |
14484 | 2486 |
tagList setRawList:(tagListGenerator value). |
2487 |
"/ tagView list:(tagListGenerator value). |
|
2488 |
tagsValid := true. |
|
2489 |
^ self. |
|
13632 | 2490 |
]. |
2491 |
||
13341 | 2492 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2493 |
(true "(self tagsVisibilityHolder value == true)" |
14484 | 2494 |
and:[(file := self editedFile) notNil |
2495 |
and:[tagList supportsFile:file]] |
|
9892 | 2496 |
) ifTrue:[ |
14484 | 2497 |
(target := self buildTarget) notNil ifTrue:[ |
2498 |
(target isRemote and:[self tagsRemoteHolder value]) ifFalse:[ |
|
2499 |
target := nil |
|
2500 |
] |
|
2501 |
]. |
|
2502 |
oldSelection := tagView selectionValue. |
|
2503 |
(tagView generateTagsFor:file onTarget:target |
|
2504 |
finally:[ |
|
2505 |
|oldLabel| |
|
2506 |
||
2507 |
oldSelection notNil ifTrue:[ |
|
2508 |
oldLabel := oldSelection label. |
|
2509 |
tagView selectElementForWhich:[:el | el label = oldLabel] ifAbsent:["ok, if previous tag is filtered away" "self halt"]. |
|
2510 |
]. |
|
2511 |
tagsValid := true. |
|
2512 |
] |
|
2513 |
) ifFalse:[ |
|
2514 |
"/ did not start a background tag job |
|
2515 |
tagsValid := true. "/ to avoid waiting forever |
|
2516 |
]. |
|
9892 | 2517 |
] ifFalse:[ |
14484 | 2518 |
tagView stopGeneratingTags. |
2519 |
tagView clearList. |
|
2520 |
tagsValid := true. |
|
9892 | 2521 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2522 |
|
10969 | 2523 |
"Modified: / 07-12-2011 / 11:13:18 / cg" |
9892 | 2524 |
! ! |
2525 |
||
2526 |
!TagsBrowser methodsFor:'startup & release'! |
|
2527 |
||
14484 | 2528 |
assignFocusToTagFilterInputField |
13076 | 2529 |
(self builder componentAt:#TagFilterInputField) requestFocus. |
2530 |
"/ (self builder componentAt:#TagFilterInputField) takeFocus |
|
2531 |
||
2532 |
"Created: / 02-08-2012 / 22:00:45 / cg" |
|
2533 |
! |
|
2534 |
||
9892 | 2535 |
cloneWith:anApplication |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2536 |
"/ |browser| |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2537 |
"/ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2538 |
"/ (browser := anApplication tagsBrowser) notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2539 |
"/ self tagsVisibilityHolder value:(browser tagsVisibilityHolder value) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2540 |
"/ ] |
9892 | 2541 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2542 |
"Modified: / 07-05-2011 / 11:54:48 / cg" |
9892 | 2543 |
! |
2544 |
||
2545 |
initialize |
|
2546 |
super initialize. |
|
2547 |
||
2548 |
tagList := TagList new. |
|
2549 |
tagView := TagView new. |
|
14480 | 2550 |
tagsValid := false. |
9892 | 2551 |
|
2552 |
tagView application:self. |
|
2553 |
tagView list:tagList. |
|
2554 |
||
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2555 |
tagView action:[:i| self tagListSelectionChangedTo:i]. |
10435 | 2556 |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2557 |
"Modified: / 06-12-2011 / 14:57:06 / cg" |
10435 | 2558 |
! |
2559 |
||
2560 |
postBuildWith:aBuilder |
|
2561 |
super postBuildWith:aBuilder. |
|
2562 |
||
2563 |
self sortIsByName value:true. |
|
2564 |
||
2565 |
"Created: / 03-08-2011 / 11:19:44 / cg" |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2566 |
! |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2567 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2568 |
tagListSelectionChangedTo:idx |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2569 |
|tag| |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2570 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2571 |
action notNil ifTrue:[ |
14484 | 2572 |
tagList isEmpty ifTrue:[ |
2573 |
tagList := tagView list |
|
2574 |
]. |
|
2575 |
tag := tagList at:idx ifAbsent:nil. |
|
2576 |
tag notNil ifTrue:[ action value:tag ]. |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2577 |
] |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2578 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2579 |
"Modified: / 03-08-2011 / 11:19:49 / cg" |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2580 |
"Created: / 06-12-2011 / 14:57:26 / cg" |
9892 | 2581 |
! ! |
2582 |
||
2583 |
!TagsBrowser::TagView methodsFor:'accessing'! |
|
2584 |
||
2585 |
application |
|
2586 |
"returns my application, the TagsBrowser |
|
2587 |
" |
|
2588 |
^ application |
|
2589 |
! |
|
2590 |
||
2591 |
application:theTagsBrowser |
|
2592 |
"set my application, the TagsBrowser |
|
2593 |
" |
|
2594 |
application := theTagsBrowser. |
|
2595 |
! |
|
2596 |
||
12068 | 2597 |
clearList |
2598 |
self list:nil |
|
2599 |
! |
|
2600 |
||
9892 | 2601 |
filter:aString |
2602 |
list filter:aString. |
|
2603 |
! |
|
2604 |
||
13354 | 2605 |
list:aList |
13664 | 2606 |
(aList isNil or:[aList isKindOf:Tools::TagList]) ifFalse:[self halt]. |
13354 | 2607 |
super list:aList. |
2608 |
! |
|
2609 |
||
13664 | 2610 |
newDefaultList |
2611 |
^ TagList new |
|
2612 |
! |
|
2613 |
||
9892 | 2614 |
tagLineNr:lineNr |
2615 |
"remember line nr for which a tag should be highlighted. |
|
2616 |
(will set my selection late, when the taglist is available" |
|
2617 |
||
2618 |
tagLineNr := lineNr |
|
2619 |
! ! |
|
2620 |
||
2621 |
!TagsBrowser::TagView methodsFor:'drawing'! |
|
2622 |
||
2623 |
drawLabelAt:anIndex x:x y:y h:h |
|
2624 |
"draw the label at position x/y without clearing the background |
|
2625 |
" |
|
14526 | 2626 |
|item label typeIdentifier font |
13302 | 2627 |
y0 widthOfTypeIdentifier inset inSelection lineNrString| |
2628 |
||
9892 | 2629 |
item := list at:anIndex ifAbsent:nil. |
2630 |
item isNil ifTrue:[^ self]. |
|
2631 |
||
14526 | 2632 |
font := gc font. |
2633 |
||
14353 | 2634 |
label := item printString ? ''. |
13302 | 2635 |
(inSelection := self isInSelection:anIndex) ifTrue:[ |
14526 | 2636 |
self paint:hilightFgColor on:hilightBgColor. |
2637 |
label := label string. "/ to avoid printing blue on blue |
|
13302 | 2638 |
] ifFalse:[ |
14526 | 2639 |
self paint:fgColor on:bgColor. |
13302 | 2640 |
]. |
2641 |
||
2642 |
lineNrString := ' [ %1 ]' bindWith:item lineNumber. |
|
2643 |
inSelection ifFalse:[ |
|
14526 | 2644 |
lineNrString := lineNrString colorizeAllWith:Color darkGrey. |
13302 | 2645 |
]. |
2646 |
label := label asText , lineNrString. |
|
2647 |
||
14526 | 2648 |
y0 := y - (((font height) + 1 - h) // 2) + font ascent. |
13302 | 2649 |
|
2650 |
typeIdentifier := item typeIdentifierInList. |
|
2651 |
typeIdentifier isNil ifTrue:[ |
|
14526 | 2652 |
widthOfTypeIdentifier := 0 |
13302 | 2653 |
] ifFalse:[ |
14526 | 2654 |
typeIdentifier := Text string:typeIdentifier emphasis:#bold. |
2655 |
typeIdentifier displayOn:self x:x y:y0. |
|
14546 | 2656 |
widthOfTypeIdentifier := (font widthOf:typeIdentifier)+(font widthOf:' '). |
9892 | 2657 |
]. |
13302 | 2658 |
inset := TypeInset max:widthOfTypeIdentifier. |
2659 |
||
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2660 |
label displayOn:self x:(x + inset) y:y0 |
10759 | 2661 |
|
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2662 |
"Modified: / 17-03-2012 / 11:15:27 / cg" |
14546 | 2663 |
"Modified: / 23-06-2014 / 21:23:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9892 | 2664 |
! |
2665 |
||
2666 |
drawSelectionFrameAt:lnNr x:x w:w |
|
2667 |
"draw the background and foreground of the selection frame |
|
2668 |
at a lineNr. |
|
2669 |
" |
|
2670 |
|item |
|
2671 |
x0 "{ Class:SmallInteger }" |
|
2672 |
x1 "{ Class: SmallInteger }" |
|
2673 |
y0 "{ Class:SmallInteger }" |
|
2674 |
y1 "{ Class:SmallInteger }" |
|
2675 |
hL "{ Class:SmallInteger }" |
|
2676 |
wL "{ Class:SmallInteger }" |
|
2677 |
| |
|
2678 |
(item := list at:lnNr ifAbsent:nil) isNil ifTrue:[ |
|
14484 | 2679 |
"/ list might change during drawing; item no longer visible |
2680 |
^ self |
|
9892 | 2681 |
]. |
2682 |
||
2683 |
"/ CLEAR THE BACKGROUND |
|
2684 |
||
2685 |
y0 := self yVisibleOfLine:lnNr. |
|
2686 |
y1 := self yVisibleOfLine:(lnNr + 1). |
|
2687 |
hL := y1 - y0. |
|
2688 |
||
13302 | 2689 |
x0 := textStartLeft - viewOrigin x "+ TypeInset - 4". |
9892 | 2690 |
x1 := (self widthOfContents - viewOrigin x) max:(width - margin). |
2691 |
wL := x1 - x0. |
|
2692 |
||
2693 |
wL > 0 ifFalse:[^ self]. |
|
2694 |
||
2695 |
self paint:hilightBgColor. |
|
2696 |
self fillRectangleX:x0 y:y0 width:wL height:hL. |
|
2697 |
||
2698 |
"/ DRAW THE FRAME |
|
2699 |
||
2700 |
hilightFrameColor notNil ifTrue:[ |
|
14484 | 2701 |
hilightLevel == 0 ifTrue:[ |
2702 |
self paint:hilightFrameColor. |
|
2703 |
self displayRectangleX:x0 y:y0 width:wL height:hL. |
|
2704 |
^ self. |
|
2705 |
] |
|
9892 | 2706 |
] ifFalse:[ |
14484 | 2707 |
hilightStyle == #motif ifTrue:[ |
2708 |
self paint:bgColor. |
|
2709 |
y1 := y0 + 1. |
|
2710 |
self displayRectangleX:x0 + 1 y:y1 width:wL - 2 height:hL - 2. |
|
2711 |
] |
|
9892 | 2712 |
]. |
2713 |
||
2714 |
hilightLevel ~~ 0 ifTrue:[ |
|
14484 | 2715 |
"/ draw edge |
2716 |
self drawEdgesForX:x0 y:y0 width:wL height:hL level:hilightLevel. |
|
9892 | 2717 |
] |
2718 |
! ! |
|
2719 |
||
2720 |
!TagsBrowser::TagView methodsFor:'generating tags'! |
|
2721 |
||
10766 | 2722 |
generateTagsFor:aFile onTarget:aTarget finally:aBlock |
9892 | 2723 |
"generate tags for a file (optionally on a remote target) |
13632 | 2724 |
return true, if a background job for generation has been started" |
2725 |
||
9892 | 2726 |
|tagFile| |
2727 |
||
13632 | 2728 |
"/ ugly hack to suppress generation if the taglist is externally provided |
13664 | 2729 |
(list isKindOf:Tools::TagList) ifFalse:[ |
14484 | 2730 |
^ false |
13664 | 2731 |
]. |
12741 | 2732 |
|
9892 | 2733 |
Tag autoload. |
2734 |
||
2735 |
self stopGeneratingTags. |
|
2736 |
||
2737 |
aFile isNil ifTrue:[ |
|
14484 | 2738 |
^ false |
9892 | 2739 |
]. |
2740 |
fileName := aFile asFilename. |
|
2741 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2742 |
"/ (tagFile := application changes backupFor:fileName) isNil ifTrue:[ |
14484 | 2743 |
tagFile := fileName. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2744 |
"/ ]. |
9892 | 2745 |
|
2746 |
process := [ |
|
14484 | 2747 |
[ |
2748 |
Error handle:[:ex| |
|
2749 |
Transcript show:'TagGenerator error caught:'; showCR:ex errorString. |
|
2750 |
ex suspendedContext fullPrintAllOn:Transcript. |
|
2751 |
(Dialog |
|
2752 |
confirm:(resources stringWithCRs:'Error encountered while generating tags:\\ %1\\Debug ?' with:ex description) |
|
2753 |
yesLabel:'Debug' |
|
2754 |
) ifTrue:[ |
|
2755 |
ex reject |
|
2756 |
]. |
|
2757 |
] do:[ |
|
2758 |
|bestTag| |
|
2759 |
||
2760 |
self enabled:false. |
|
2761 |
list add:nil. |
|
2762 |
list add:(Tag label:('Generating Tags ...' allBold) pattern:nil). |
|
2763 |
"/ list filter:filter. |
|
2764 |
list sortedByName:(application sortIsByName value). |
|
2765 |
||
2766 |
list |
|
2767 |
fromFile:tagFile |
|
2768 |
in:(application tempDirectory) |
|
2769 |
onTarget:aTarget. |
|
2770 |
||
2771 |
tagLineNr notNil ifTrue:[ |
|
2772 |
bestTag := list bestTagForLine:tagLineNr. |
|
2773 |
bestTag notNil ifTrue:[ |
|
2774 |
self setSelection:(list identityIndexOf:bestTag). |
|
2775 |
]. |
|
2776 |
tagLineNr := nil |
|
2777 |
]. |
|
2778 |
aBlock value. |
|
2779 |
] |
|
2780 |
] ensure:[ |
|
2781 |
process := nil. |
|
2782 |
self enabled:true. |
|
2783 |
]. |
|
9892 | 2784 |
] forkAt:4. |
2785 |
||
2786 |
process priorityRange:(4 to:8). |
|
13354 | 2787 |
^ true. |
9892 | 2788 |
|
10766 | 2789 |
"Created: / 06-10-2011 / 13:56:18 / cg" |
9892 | 2790 |
! |
2791 |
||
2792 |
stopGeneratingTags |
|
2793 |
"stop the process which generates the tags |
|
2794 |
" |
|
2795 |
|task| |
|
2796 |
||
2797 |
(task := process) notNil ifTrue:[ |
|
14484 | 2798 |
process := nil. |
2799 |
||
2800 |
Exception handle:[:ex| |
|
2801 |
Transcript showCR:('caught exception during tag-process termination: ',ex description). |
|
2802 |
] do:[ |
|
2803 |
task terminateWithAllSubprocessesInGroup. |
|
2804 |
task waitUntilTerminated. |
|
2805 |
] |
|
9892 | 2806 |
]. |
2807 |
fileName := nil. |
|
10766 | 2808 |
"/ list removeAll. |
2809 |
||
2810 |
"Modified (comment): / 06-10-2011 / 14:01:30 / cg" |
|
9892 | 2811 |
! ! |
2812 |
||
2813 |
!TagsBrowser::TagView methodsFor:'initialize & release'! |
|
2814 |
||
2815 |
destroy |
|
2816 |
self stopGeneratingTags. |
|
2817 |
super destroy. |
|
2818 |
! |
|
2819 |
||
2820 |
initialize |
|
2821 |
||
2822 |
TypeInset := 16. |
|
2823 |
||
2824 |
super initialize. |
|
2825 |
highlightMode := #line. |
|
14561 | 2826 |
itemHeight := gc font height. |
9892 | 2827 |
! ! |
2828 |
||
2829 |
!TagsBrowser::TagView methodsFor:'protocol'! |
|
2830 |
||
14484 | 2831 |
heightOfLineAt:aLineNr |
13302 | 2832 |
"returns the total height for a line at an index (including lineSpacing)" |
14484 | 2833 |
|
14563 | 2834 |
^ lineSpacing + itemHeight |
9892 | 2835 |
! |
2836 |
||
14484 | 2837 |
widthOfWidestLineBetween:firstLine and:lastLine |
13302 | 2838 |
"return the width in pixels of the widest line in a range" |
14484 | 2839 |
|
13302 | 2840 |
^ TypeInset + (super widthOfWidestLineBetween:firstLine and:lastLine) |
9892 | 2841 |
! ! |
2842 |
||
2843 |
!TagsBrowser class methodsFor:'documentation'! |
|
2844 |
||
10763 | 2845 |
version |
14563 | 2846 |
^ '$Header: /cvs/stx/stx/libtool/Tools__TagsBrowser.st,v 1.57 2014-07-02 12:54:07 cg Exp $' |
10763 | 2847 |
! |
2848 |
||
9892 | 2849 |
version_CVS |
14563 | 2850 |
^ '$Header: /cvs/stx/stx/libtool/Tools__TagsBrowser.st,v 1.57 2014-07-02 12:54:07 cg Exp $' |
10055 | 2851 |
! |
2852 |
||
2853 |
version_SVN |
|
14563 | 2854 |
^ '$Id: Tools__TagsBrowser.st,v 1.57 2014-07-02 12:54:07 cg Exp $' |
9892 | 2855 |
! ! |
14526 | 2856 |