5591
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2000 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
5592
|
12 |
"{ Package: 'stx:libtool' }"
|
5591
|
13 |
|
|
14 |
"{ NameSpace: Tools }"
|
|
15 |
|
|
16 |
ApplicationModel subclass:#NavigatorModel
|
|
17 |
instanceVariableNames:''
|
8695
|
18 |
classVariableNames:'AllEntry SuperSendEntry UncommentedEntry'
|
5591
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-Browsers-New'
|
|
21 |
!
|
|
22 |
|
|
23 |
!NavigatorModel class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2000 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!NavigatorModel class methodsFor:'initialization'!
|
|
40 |
|
|
41 |
initialize
|
8695
|
42 |
AllEntry := '* all *'.
|
5591
|
43 |
|
|
44 |
"Created: / 24.2.2000 / 13:41:29 / cg"
|
|
45 |
! !
|
|
46 |
|
|
47 |
!NavigatorModel class methodsFor:'defaults'!
|
|
48 |
|
8754
|
49 |
isPseudoCategory:cat
|
|
50 |
^ cat = self nameListEntryForChanged
|
|
51 |
or:[ cat = self nameListEntryForUndocumented
|
|
52 |
or:[ cat = self nameListEntryForUnloaded
|
|
53 |
or:[ cat = self nameListEntryForALL ]]]
|
|
54 |
!
|
|
55 |
|
|
56 |
isPseudoProtocol:protocol
|
|
57 |
^ protocol = self nameListEntryForObsolete
|
|
58 |
or:[ protocol = self nameListEntryForSuperSend
|
|
59 |
or:[ protocol = self nameListEntryForUncommented ]]
|
|
60 |
!
|
|
61 |
|
7058
|
62 |
markForBeingInChangeList
|
|
63 |
^ ' *'
|
|
64 |
|
|
65 |
"Created: / 29-08-2006 / 10:26:05 / cg"
|
|
66 |
!
|
|
67 |
|
5591
|
68 |
nameListEntryForALL
|
|
69 |
^ AllEntry ? '* all *'
|
|
70 |
|
|
71 |
"Created: / 24.2.2000 / 13:39:10 / cg"
|
|
72 |
"Modified: / 25.2.2000 / 21:18:30 / cg"
|
|
73 |
!
|
|
74 |
|
8737
|
75 |
nameListEntryForALLWithCount
|
|
76 |
^ '* all (%1) *'
|
|
77 |
!
|
|
78 |
|
|
79 |
nameListEntryForBookmarked
|
|
80 |
^ '* bookmarked (%1) *'
|
|
81 |
!
|
|
82 |
|
|
83 |
nameListEntryForChanged
|
|
84 |
^ '* changed *'
|
|
85 |
!
|
|
86 |
|
|
87 |
nameListEntryForChangedWithCount
|
|
88 |
^ '* changed (%1) *'
|
|
89 |
!
|
|
90 |
|
8732
|
91 |
nameListEntryForDocumentation
|
|
92 |
^ '* documentation (%1) *'
|
|
93 |
!
|
|
94 |
|
5591
|
95 |
nameListEntryForNILCategory
|
|
96 |
^ '* no category *'
|
|
97 |
!
|
|
98 |
|
|
99 |
nameListEntryForNonStatic
|
|
100 |
^ '* instance *'
|
|
101 |
!
|
|
102 |
|
8719
|
103 |
nameListEntryForObsolete
|
8722
|
104 |
^ '* obsolete (%1) *'
|
8719
|
105 |
!
|
|
106 |
|
5591
|
107 |
nameListEntryForStatic
|
|
108 |
^ '* static *'
|
8695
|
109 |
!
|
|
110 |
|
|
111 |
nameListEntryForSuperSend
|
8722
|
112 |
^ '* super (%1) *'
|
8695
|
113 |
!
|
|
114 |
|
|
115 |
nameListEntryForUncommented
|
8722
|
116 |
^ '* uncommented (%1) *'
|
8737
|
117 |
!
|
|
118 |
|
8754
|
119 |
nameListEntryForUndocumented
|
|
120 |
^ '* undocumented *'
|
|
121 |
!
|
|
122 |
|
|
123 |
nameListEntryForUndocumentedWithCount
|
|
124 |
^ '* undocumented (%1) *'
|
|
125 |
!
|
|
126 |
|
|
127 |
nameListEntryForUnloaded
|
|
128 |
^ '* unloaded *'
|
|
129 |
!
|
|
130 |
|
|
131 |
nameListEntryForUnloadedWithCount
|
|
132 |
^ '* unloaded (%1) *'
|
|
133 |
!
|
|
134 |
|
8737
|
135 |
nameListEntryForVisited
|
|
136 |
^ '* visited (%1) *'
|
5591
|
137 |
! !
|
|
138 |
|
|
139 |
!NavigatorModel class methodsFor:'interface specs'!
|
|
140 |
|
|
141 |
metaSpec
|
|
142 |
"This resource specification was automatically generated
|
|
143 |
by the UIPainter of ST/X."
|
|
144 |
|
|
145 |
"Do not manually edit this!! If it is corrupted,
|
|
146 |
the UIPainter may not be able to read the specification."
|
|
147 |
|
|
148 |
"
|
7488
|
149 |
UIPainter new openOnClass:Tools::NavigatorModel andSelector:#metaSpec
|
|
150 |
Tools::NavigatorModel new openInterface:#metaSpec
|
5591
|
151 |
"
|
|
152 |
|
|
153 |
<resource: #canvas>
|
|
154 |
|
|
155 |
^
|
7488
|
156 |
#(FullSpec
|
|
157 |
name: metaSpec
|
|
158 |
window:
|
|
159 |
(WindowSpec
|
|
160 |
label: 'MetaToggles'
|
|
161 |
name: 'MetaToggles'
|
|
162 |
min: (Point 0 0)
|
|
163 |
max: (Point 1024 721)
|
|
164 |
bounds: (Rectangle 0 0 300 28)
|
|
165 |
)
|
|
166 |
component:
|
|
167 |
(SpecCollection
|
|
168 |
collection: (
|
|
169 |
(RadioButtonSpec
|
|
170 |
label: 'Instance'
|
|
171 |
name: 'InstanceToggle'
|
|
172 |
layout: (LayoutFrame 0 0.0 0 0.0 0 0.5 25 0)
|
|
173 |
translateLabel: true
|
|
174 |
tabable: true
|
|
175 |
model: notMetaToggle
|
|
176 |
isTriggerOnDown: true
|
|
177 |
select: true
|
|
178 |
isToggle: true
|
|
179 |
)
|
|
180 |
(RadioButtonSpec
|
|
181 |
label: 'Class'
|
|
182 |
name: 'ClassToggle'
|
|
183 |
layout: (LayoutFrame 0 0.5 0 0 0 1.0 25 0)
|
|
184 |
translateLabel: true
|
|
185 |
labelChannel: metaToggleLabelHolder
|
|
186 |
tabable: false
|
|
187 |
model: metaToggle
|
|
188 |
isTriggerOnDown: true
|
|
189 |
select: true
|
|
190 |
isToggle: true
|
|
191 |
)
|
|
192 |
)
|
5591
|
193 |
|
7488
|
194 |
)
|
5591
|
195 |
)
|
|
196 |
! !
|
|
197 |
|
|
198 |
!NavigatorModel class methodsFor:'misc'!
|
|
199 |
|
|
200 |
classResources
|
|
201 |
^ NewSystemBrowser classResources
|
|
202 |
! !
|
|
203 |
|
|
204 |
!NavigatorModel methodsFor:'misc'!
|
|
205 |
|
|
206 |
resources
|
8722
|
207 |
"answer the resources of my masterApp, if there is one"
|
|
208 |
|
5591
|
209 |
|m|
|
|
210 |
|
|
211 |
(m := self masterApplication) notNil ifTrue:[
|
8722
|
212 |
^ m resources
|
5591
|
213 |
].
|
|
214 |
^ super resources
|
|
215 |
! !
|
|
216 |
|
|
217 |
!NavigatorModel class methodsFor:'documentation'!
|
|
218 |
|
|
219 |
version
|
8754
|
220 |
^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.10 2009-09-22 11:24:44 cg Exp $'
|
5591
|
221 |
! !
|
|
222 |
|
|
223 |
NavigatorModel initialize!
|