author | Claus Gittinger <cg@exept.de> |
Tue, 21 Apr 2020 13:26:33 +0200 | |
changeset 19578 | 088c98423554 |
parent 19472 | e9651404c92f |
permissions | -rw-r--r-- |
19472 | 1 |
"{ Encoding: utf8 }" |
2 |
||
9965 | 3 |
" |
10043 | 4 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
5 |
Copyright (c) 2009-2010 eXept Software AG |
|
9965 | 6 |
|
10043 | 7 |
Permission is hereby granted, free of charge, to any person |
8 |
obtaining a copy of this software and associated documentation |
|
9 |
files (the 'Software'), to deal in the Software without |
|
10 |
restriction, including without limitation the rights to use, |
|
11 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
12 |
copies of the Software, and to permit persons to whom the |
|
13 |
Software is furnished to do so, subject to the following |
|
14 |
conditions: |
|
15 |
||
16 |
The above copyright notice and this permission notice shall be |
|
17 |
included in all copies or substantial portions of the Software. |
|
18 |
||
19 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
20 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
21 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
22 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
23 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
24 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
25 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
26 |
OTHER DEALINGS IN THE SOFTWARE. |
|
9965 | 27 |
" |
28 |
"{ Package: 'stx:libtool' }" |
|
29 |
||
30 |
"{ NameSpace: Tools }" |
|
31 |
||
32 |
ApplicationModel subclass:#BrowsletCanvas |
|
33 |
instanceVariableNames:'browsletHolder' |
|
34 |
classVariableNames:'' |
|
35 |
poolDictionaries:'' |
|
36 |
category:'Interface-Browsers-Browslets' |
|
37 |
! |
|
38 |
||
39 |
!BrowsletCanvas class methodsFor:'documentation'! |
|
40 |
||
41 |
copyright |
|
42 |
" |
|
10043 | 43 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
44 |
Copyright (c) 2009-2010 eXept Software AG |
|
45 |
||
46 |
Permission is hereby granted, free of charge, to any person |
|
47 |
obtaining a copy of this software and associated documentation |
|
48 |
files (the 'Software'), to deal in the Software without |
|
49 |
restriction, including without limitation the rights to use, |
|
50 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
51 |
copies of the Software, and to permit persons to whom the |
|
52 |
Software is furnished to do so, subject to the following |
|
53 |
conditions: |
|
9965 | 54 |
|
10043 | 55 |
The above copyright notice and this permission notice shall be |
56 |
included in all copies or substantial portions of the Software. |
|
57 |
||
58 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
59 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
60 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
61 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
62 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
63 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
64 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
65 |
OTHER DEALINGS IN THE SOFTWARE. |
|
9965 | 66 |
" |
67 |
! ! |
|
68 |
||
69 |
!BrowsletCanvas class methodsFor:'image specs'! |
|
70 |
||
71 |
closeBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
72 |
<resource: #image> |
9965 | 73 |
"This resource specification was automatically generated |
74 |
by the ImageEditor of ST/X." |
|
75 |
"Do not manually edit this!! If it is corrupted, |
|
76 |
the ImageEditor may not be able to read the specification." |
|
77 |
" |
|
78 |
self closeBrowsletIcon inspect |
|
79 |
ImageEditor openOnClass:self andSelector:#closeBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
80 |
Icon flushCachedIcons" |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
81 |
|
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
82 |
^ Icon constantNamed:'Tools::NewSystemBrowser class closeBrowsletIcon' |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
83 |
ifAbsentPut:[ |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
84 |
(Depth1Image new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
85 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
86 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
87 |
photometric:(#palette); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
88 |
bitsPerSample:(#[ 1 ]); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
89 |
samplesPerPixel:(1); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
90 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
91 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
92 |
colorMapFromArray:#[ 0 0 0 ]; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
93 |
mask:((ImageMask new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
94 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
95 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
96 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
97 |
fromPackedString:' |
9965 | 98 |
O?1@A,@C @FLLX91!!>FC0XOA!!>FN\X01 @G@@6@FO?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
99 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
100 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
101 |
yourself); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
102 |
yourself |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
103 |
] |
9965 | 104 |
! |
105 |
||
106 |
hideBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
107 |
<resource: #image> |
9965 | 108 |
"This resource specification was automatically generated |
109 |
by the ImageEditor of ST/X." |
|
110 |
"Do not manually edit this!! If it is corrupted, |
|
111 |
the ImageEditor may not be able to read the specification." |
|
112 |
" |
|
113 |
self hideBrowsletIcon inspect |
|
114 |
ImageEditor openOnClass:self andSelector:#hideBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
115 |
Icon flushCachedIcons" |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
116 |
|
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
117 |
^ Icon constantNamed:'Tools::NewSystemBrowser class hideBrowsletIcon' |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
118 |
ifAbsentPut:[ |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
119 |
(Depth1Image new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
120 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
121 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
122 |
photometric:(#palette); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
123 |
bitsPerSample:(#[ 1 ]); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
124 |
samplesPerPixel:(1); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
125 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
126 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
127 |
colorMapFromArray:#[ 0 0 0 ]; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
128 |
mask:((ImageMask new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
129 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
130 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
131 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
132 |
fromPackedString:' |
9965 | 133 |
O?1@A,@C @FL@X<A#<FO<X?1#<FO@X0A @G@@6@FO?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
134 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
135 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
136 |
yourself); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
137 |
yourself |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
138 |
] |
9965 | 139 |
! |
140 |
||
141 |
popupBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
142 |
<resource: #image> |
9965 | 143 |
"This resource specification was automatically generated |
144 |
by the ImageEditor of ST/X." |
|
145 |
"Do not manually edit this!! If it is corrupted, |
|
146 |
the ImageEditor may not be able to read the specification." |
|
147 |
" |
|
148 |
self popupBrowsletIcon inspect |
|
149 |
ImageEditor openOnClass:self andSelector:#popupBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
150 |
Icon flushCachedIcons" |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
151 |
|
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
152 |
^ Icon constantNamed:'BrowsletCanvas class popupBrowsletIcon' |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
153 |
ifAbsentPut:[ |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
154 |
(Depth1Image new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
155 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
156 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
157 |
photometric:(#palette); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
158 |
bitsPerSample:(#[ 1 ]); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
159 |
samplesPerPixel:(1); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
160 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
161 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
162 |
colorMapFromArray:#[ 0 0 0 ]; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
163 |
mask:((ImageMask new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
164 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
165 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
166 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
167 |
fromPackedString:' |
9965 | 168 |
O?1@A,@C @F@@X?1#?FG8X_!! <FC0XFA XG@@6@FO?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
169 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
170 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
171 |
yourself); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
172 |
yourself |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
173 |
] |
9965 | 174 |
! |
175 |
||
176 |
showBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
177 |
<resource: #image> |
9965 | 178 |
"This resource specification was automatically generated |
179 |
by the ImageEditor of ST/X." |
|
180 |
"Do not manually edit this!! If it is corrupted, |
|
181 |
the ImageEditor may not be able to read the specification." |
|
182 |
" |
|
183 |
self showBrowsletIcon inspect |
|
184 |
ImageEditor openOnClass:self andSelector:#showBrowsletIcon |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
185 |
Icon flushCachedIcons" |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
186 |
|
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
187 |
^ Icon constantNamed:'Tools::NewSystemBrowser class showBrowsletIcon' |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
188 |
ifAbsentPut:[ |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
189 |
(Depth1Image new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
190 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
191 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
192 |
photometric:(#palette); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
193 |
bitsPerSample:(#[ 1 ]); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
194 |
samplesPerPixel:(1); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
195 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
196 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
197 |
colorMapFromArray:#[ 0 0 0 ]; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
198 |
mask:((ImageMask new) |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
199 |
width:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
200 |
height:16; |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
201 |
bits:(ByteArray |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
202 |
fromPackedString:' |
9965 | 203 |
O?1@A,@C @F@LXC1 ?FO<X?1 ?F@<X@1 @G@@6@FO?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
204 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
14399
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
205 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
206 |
yourself); |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
207 |
yourself |
301a7030840d
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
12964
diff
changeset
|
208 |
] |
9965 | 209 |
! ! |
210 |
||
211 |
!BrowsletCanvas class methodsFor:'interface specs'! |
|
212 |
||
213 |
windowSpec |
|
214 |
"This resource specification was automatically generated |
|
215 |
by the UIPainter of ST/X." |
|
216 |
||
217 |
"Do not manually edit this!! If it is corrupted, |
|
218 |
the UIPainter may not be able to read the specification." |
|
219 |
||
220 |
" |
|
221 |
UIPainter new openOnClass:BrowsletCanvas andSelector:#windowSpec |
|
222 |
BrowsletCanvas new openInterface:#windowSpec |
|
223 |
BrowsletCanvas open |
|
224 |
" |
|
225 |
||
226 |
<resource: #canvas> |
|
227 |
||
228 |
^ |
|
229 |
#(FullSpec |
|
230 |
name: windowSpec |
|
231 |
window: |
|
232 |
(WindowSpec |
|
233 |
label: 'Browslet Canvas' |
|
234 |
name: 'Browslet Canvas' |
|
235 |
bounds: (Rectangle 0 0 300 300) |
|
236 |
) |
|
237 |
component: |
|
238 |
(SpecCollection |
|
239 |
collection: ( |
|
240 |
(TransparentBoxSpec |
|
241 |
name: 'Box' |
|
242 |
layout: (LayoutFrame 0 0 0 0 0 1 20 0) |
|
243 |
component: |
|
244 |
(SpecCollection |
|
245 |
collection: ( |
|
246 |
(ActionButtonSpec |
|
247 |
label: 'popupBrowsletIcon' |
|
248 |
name: 'Button1' |
|
249 |
layout: (LayoutFrame 0 0 0 0 20 0 0 1) |
|
250 |
level: 0 |
|
251 |
hasCharacterOrientedLabel: false |
|
252 |
translateLabel: true |
|
253 |
model: popupAction |
|
254 |
) |
|
255 |
(ActionButtonSpec |
|
256 |
label: 'closeBrowsletIcon' |
|
257 |
name: 'CloseButton' |
|
258 |
layout: (LayoutFrame -20 1 0 0 0 1 0 1) |
|
259 |
level: 0 |
|
260 |
hasCharacterOrientedLabel: false |
|
261 |
translateLabel: true |
|
262 |
model: closeAction |
|
263 |
) |
|
264 |
(LinkButtonSpec |
|
265 |
label: '...' |
|
266 |
name: 'Browslet' |
|
267 |
layout: (LayoutFrame 25 0 0 0 -25 1 0 1) |
|
268 |
translateLabel: true |
|
269 |
adjust: left |
|
270 |
model: popupAction |
|
271 |
) |
|
272 |
) |
|
273 |
||
274 |
) |
|
275 |
) |
|
276 |
(SubCanvasSpec |
|
277 |
name: 'Browslet' |
|
278 |
layout: (LayoutFrame 0 0 20 0 0 1 0 1) |
|
279 |
hasHorizontalScrollBar: false |
|
280 |
hasVerticalScrollBar: false |
|
281 |
clientHolder: browsletHolder |
|
282 |
createNewBuilder: false |
|
283 |
) |
|
284 |
) |
|
285 |
||
286 |
) |
|
287 |
) |
|
288 |
||
289 |
"Modified: / 04-10-2010 / 23:36:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
290 |
! ! |
|
291 |
||
292 |
!BrowsletCanvas methodsFor:'actions'! |
|
293 |
||
294 |
closeAction |
|
295 |
<resource: #uiCallback> |
|
296 |
||
297 |
| topApp | |
|
298 |
topApp := self masterApplication. |
|
299 |
topApp |
|
300 |
ifNil:[self closeRequest] |
|
301 |
ifNotNil:[topApp showPlugin: false] |
|
302 |
||
303 |
"Modified: / 04-10-2010 / 18:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
304 |
! |
|
305 |
||
306 |
popupAction |
|
307 |
<resource: #uiCallback> |
|
308 |
||
309 |
| menu | |
|
19472 | 310 |
|
9965 | 311 |
menu := Menu new. |
19472 | 312 |
(Browslet all asSortedCollection:[:a :b|a label < b label]) |
313 |
do: [ :browslet | | item | |
|
314 |
menu addItemLabel: browslet label value: [ self show: browslet ] |
|
315 |
]. |
|
9965 | 316 |
menu showAtPointer. |
317 |
||
318 |
"Modified: / 04-10-2010 / 23:02:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
319 |
! ! |
|
320 |
||
321 |
!BrowsletCanvas methodsFor:'aspects'! |
|
322 |
||
323 |
browsletHolder |
|
324 |
"return/create the 'browsletHolder' value holder (automatically generated)" |
|
325 |
||
326 |
browsletHolder isNil ifTrue:[ |
|
327 |
browsletHolder := ValueHolder new. |
|
328 |
]. |
|
329 |
^ browsletHolder |
|
330 |
! ! |
|
331 |
||
332 |
!BrowsletCanvas methodsFor:'private'! |
|
333 |
||
334 |
show: browsletClass |
|
335 |
||
336 |
self browsletHolder value: browsletClass new |
|
337 |
||
338 |
"Created: / 04-10-2010 / 23:03:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
339 |
! ! |
|
340 |
||
341 |
!BrowsletCanvas class methodsFor:'documentation'! |
|
342 |
||
343 |
version_CVS |
|
19472 | 344 |
^ '$Header$' |
9965 | 345 |
! |
346 |
||
347 |
version_SVN |
|
19472 | 348 |
^ '$Id$' |
9965 | 349 |
! ! |
12964
82993d214316
class: Tools::BrowsletCanvas
Claus Gittinger <cg@exept.de>
parents:
10043
diff
changeset
|
350 |