9963
|
1 |
"
|
10044
|
2 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
|
|
3 |
Copyright (c) 2009-2010 eXept Software AG
|
9963
|
4 |
|
10044
|
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.
|
9963
|
25 |
"
|
|
26 |
"{ Package: 'stx:libtool' }"
|
|
27 |
|
|
28 |
"{ NameSpace: Tools }"
|
|
29 |
|
|
30 |
ApplicationModel subclass:#Browslet
|
|
31 |
instanceVariableNames:''
|
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
category:'Interface-Browsers-Browslets'
|
|
35 |
!
|
|
36 |
|
|
37 |
!Browslet class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
10044
|
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:
|
9963
|
52 |
|
10044
|
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.
|
9963
|
64 |
"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!Browslet class methodsFor:'accessing'!
|
|
68 |
|
|
69 |
all
|
|
70 |
|
|
71 |
^self allSubclasses reject:[:cls|cls isAbstract]
|
|
72 |
|
|
73 |
"
|
|
74 |
Browslet all
|
|
75 |
"
|
|
76 |
|
|
77 |
"Created: / 04-10-2010 / 22:58:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
78 |
!
|
|
79 |
|
|
80 |
description
|
|
81 |
|
|
82 |
"Returns a description of given browslet"
|
|
83 |
|
|
84 |
self subclassResponsibility
|
|
85 |
|
|
86 |
"Created: / 04-10-2010 / 21:05:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
87 |
!
|
|
88 |
|
|
89 |
label
|
|
90 |
|
|
91 |
"Answers a human readable label of an browslet such as
|
|
92 |
'Test runner' or 'Senders'"
|
|
93 |
|
|
94 |
self subclassResponsibility
|
|
95 |
|
|
96 |
"Created: / 04-10-2010 / 21:03:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
97 |
! !
|
|
98 |
|
|
99 |
!Browslet class methodsFor:'interface specs'!
|
|
100 |
|
|
101 |
windowSpec
|
|
102 |
"This resource specification was automatically generated
|
|
103 |
by the UIPainter of ST/X."
|
|
104 |
|
|
105 |
"Do not manually edit this!! If it is corrupted,
|
|
106 |
the UIPainter may not be able to read the specification."
|
|
107 |
|
|
108 |
"
|
|
109 |
UIPainter new openOnClass:Browslet andSelector:#windowSpec
|
|
110 |
Browslet new openInterface:#windowSpec
|
|
111 |
Browslet open
|
|
112 |
"
|
|
113 |
|
|
114 |
<resource: #canvas>
|
|
115 |
|
|
116 |
^
|
|
117 |
#(FullSpec
|
|
118 |
name: windowSpec
|
|
119 |
window:
|
|
120 |
(WindowSpec
|
|
121 |
label: 'Browslet'
|
|
122 |
name: 'Browslet'
|
|
123 |
min: (Point 10 10)
|
|
124 |
bounds: (Rectangle 0 0 300 300)
|
|
125 |
)
|
|
126 |
component:
|
|
127 |
(SpecCollection
|
|
128 |
collection: (
|
|
129 |
(LabelSpec
|
|
130 |
label: 'No content specified...'
|
|
131 |
name: 'Label'
|
|
132 |
layout: (LayoutFrame 0 0 -25 0.5 0 1 0 0.5)
|
|
133 |
translateLabel: true
|
|
134 |
)
|
|
135 |
)
|
|
136 |
|
|
137 |
)
|
|
138 |
)
|
|
139 |
! !
|
|
140 |
|
16193
|
141 |
!Browslet class methodsFor:'queries'!
|
9963
|
142 |
|
|
143 |
isAbstract
|
|
144 |
|
|
145 |
^self == Browslet
|
|
146 |
|
|
147 |
"Created: / 04-10-2010 / 22:22:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
148 |
! !
|
|
149 |
|
|
150 |
!Browslet class methodsFor:'documentation'!
|
|
151 |
|
|
152 |
version_CVS
|
16193
|
153 |
^ '$Header$'
|
9963
|
154 |
!
|
|
155 |
|
|
156 |
version_SVN
|
16193
|
157 |
^ '$Id$'
|
9963
|
158 |
! !
|
16193
|
159 |
|