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