author | Claus Gittinger <cg@exept.de> |
Thu, 10 Feb 2011 16:58:13 +0100 | |
changeset 9756 | 5a1787bbf85e |
parent 9130 | e46e456da73a |
child 10248 | 3237dc7fbfb8 |
permissions | -rw-r--r-- |
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 |
||
8929 | 95 |
nameListEntryForExtensions |
96 |
^ '* extensions (%1) *' |
|
97 |
! |
|
98 |
||
8866
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
99 |
nameListEntryForLong |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
100 |
^ '* long (%1) *' |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
101 |
! |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
102 |
|
9087
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
103 |
nameListEntryForMustBeRedefinedInSubclass |
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
104 |
^ '* must be redefined (%1) *' |
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
105 |
! |
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
106 |
|
5591 | 107 |
nameListEntryForNILCategory |
108 |
^ '* no category *' |
|
109 |
! |
|
110 |
||
111 |
nameListEntryForNonStatic |
|
112 |
^ '* instance *' |
|
113 |
! |
|
114 |
||
8719 | 115 |
nameListEntryForObsolete |
8722 | 116 |
^ '* obsolete (%1) *' |
8719 | 117 |
! |
118 |
||
8929 | 119 |
nameListEntryForOverride |
120 |
^ '* override (%1) *' |
|
121 |
! |
|
122 |
||
123 |
nameListEntryForRedefined |
|
124 |
^ '* redefined (%1) *' |
|
125 |
! |
|
126 |
||
9026
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
127 |
nameListEntryForRequired |
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
128 |
^ '* required (%1) *' |
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
129 |
! |
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
130 |
|
5591 | 131 |
nameListEntryForStatic |
132 |
^ '* static *' |
|
8695 | 133 |
! |
134 |
||
135 |
nameListEntryForSuperSend |
|
8722 | 136 |
^ '* super (%1) *' |
8695 | 137 |
! |
138 |
||
139 |
nameListEntryForUncommented |
|
8722 | 140 |
^ '* uncommented (%1) *' |
8737 | 141 |
! |
142 |
||
8754 | 143 |
nameListEntryForUndocumented |
144 |
^ '* undocumented *' |
|
145 |
! |
|
146 |
||
147 |
nameListEntryForUndocumentedWithCount |
|
148 |
^ '* undocumented (%1) *' |
|
149 |
! |
|
150 |
||
151 |
nameListEntryForUnloaded |
|
152 |
^ '* unloaded *' |
|
153 |
! |
|
154 |
||
155 |
nameListEntryForUnloadedWithCount |
|
156 |
^ '* unloaded (%1) *' |
|
157 |
! |
|
158 |
||
8737 | 159 |
nameListEntryForVisited |
160 |
^ '* visited (%1) *' |
|
9129
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
161 |
! |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
162 |
|
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
163 |
pseudoEntryForegroundColor |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
164 |
|bg| |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
165 |
|
9130
e46e456da73a
changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9129
diff
changeset
|
166 |
bg := SelectionInListView defaultBackgroundColor ? View defaultBackgroundColor. |
e46e456da73a
changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9129
diff
changeset
|
167 |
bg isNil ifTrue:[ bg := View defaultBackgroundColor ]. |
9129
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
168 |
(Color grey brightness - (bg brightness)) abs < 0.3 ifTrue:[ |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
169 |
(bg brightness) > 0.7 ifTrue:[ |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
170 |
^ Color grey:20. |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
171 |
]. |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
172 |
^ Color grey:80. |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
173 |
]. |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
174 |
^ Color grey |
5591 | 175 |
! ! |
176 |
||
177 |
!NavigatorModel class methodsFor:'interface specs'! |
|
178 |
||
179 |
metaSpec |
|
180 |
"This resource specification was automatically generated |
|
181 |
by the UIPainter of ST/X." |
|
182 |
||
183 |
"Do not manually edit this!! If it is corrupted, |
|
184 |
the UIPainter may not be able to read the specification." |
|
185 |
||
186 |
" |
|
7488 | 187 |
UIPainter new openOnClass:Tools::NavigatorModel andSelector:#metaSpec |
188 |
Tools::NavigatorModel new openInterface:#metaSpec |
|
5591 | 189 |
" |
190 |
||
191 |
<resource: #canvas> |
|
192 |
||
193 |
^ |
|
7488 | 194 |
#(FullSpec |
195 |
name: metaSpec |
|
196 |
window: |
|
197 |
(WindowSpec |
|
198 |
label: 'MetaToggles' |
|
199 |
name: 'MetaToggles' |
|
200 |
min: (Point 0 0) |
|
201 |
max: (Point 1024 721) |
|
202 |
bounds: (Rectangle 0 0 300 28) |
|
203 |
) |
|
204 |
component: |
|
205 |
(SpecCollection |
|
206 |
collection: ( |
|
207 |
(RadioButtonSpec |
|
208 |
label: 'Instance' |
|
209 |
name: 'InstanceToggle' |
|
210 |
layout: (LayoutFrame 0 0.0 0 0.0 0 0.5 25 0) |
|
211 |
translateLabel: true |
|
212 |
tabable: true |
|
213 |
model: notMetaToggle |
|
214 |
isTriggerOnDown: true |
|
215 |
select: true |
|
216 |
isToggle: true |
|
217 |
) |
|
218 |
(RadioButtonSpec |
|
219 |
label: 'Class' |
|
220 |
name: 'ClassToggle' |
|
221 |
layout: (LayoutFrame 0 0.5 0 0 0 1.0 25 0) |
|
222 |
translateLabel: true |
|
223 |
labelChannel: metaToggleLabelHolder |
|
224 |
tabable: false |
|
225 |
model: metaToggle |
|
226 |
isTriggerOnDown: true |
|
227 |
select: true |
|
228 |
isToggle: true |
|
229 |
) |
|
230 |
) |
|
5591 | 231 |
|
7488 | 232 |
) |
5591 | 233 |
) |
234 |
! ! |
|
235 |
||
236 |
!NavigatorModel class methodsFor:'misc'! |
|
237 |
||
238 |
classResources |
|
239 |
^ NewSystemBrowser classResources |
|
240 |
! ! |
|
241 |
||
242 |
!NavigatorModel methodsFor:'misc'! |
|
243 |
||
244 |
resources |
|
8722 | 245 |
"answer the resources of my masterApp, if there is one" |
246 |
||
5591 | 247 |
|m| |
248 |
||
249 |
(m := self masterApplication) notNil ifTrue:[ |
|
8722 | 250 |
^ m resources |
5591 | 251 |
]. |
252 |
^ super resources |
|
253 |
! ! |
|
254 |
||
255 |
!NavigatorModel class methodsFor:'documentation'! |
|
256 |
||
257 |
version |
|
9130
e46e456da73a
changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9129
diff
changeset
|
258 |
^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.16 2009-10-29 18:10:38 cg Exp $' |
8866
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
259 |
! |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
260 |
|
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
261 |
version_CVS |
9130
e46e456da73a
changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9129
diff
changeset
|
262 |
^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.16 2009-10-29 18:10:38 cg Exp $' |
5591 | 263 |
! ! |
264 |
||
265 |
NavigatorModel initialize! |