author | Jan Vrany <jan.vrany@labware.com> |
Tue, 09 Jun 2020 11:02:53 +0100 | |
branch | jv |
changeset 19589 | 8f1c638e83cf |
parent 18532 | cccb41254edf |
child 19607 | f9108fde4972 |
permissions | -rw-r--r-- |
18532
cccb41254edf
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
15950
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
cccb41254edf
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
15950
diff
changeset
|
2 |
|
2236
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
3 |
" |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
4 |
COPYRIGHT (c) 1994 by Claus Gittinger |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
5 |
All Rights Reserved |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
6 |
|
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
7 |
This software is furnished under a license and may be used |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
8 |
only in accordance with the terms of that license and with the |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
9 |
inclusion of the above copyright notice. This software may not |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
10 |
be provided or otherwise made available to, or used by, any |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
11 |
other person. No title to or ownership of the software is |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
12 |
hereby transferred. |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
13 |
" |
3199 | 14 |
"{ Package: 'stx:libtool' }" |
15 |
||
15950 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
44 | 18 |
InspectorView subclass:#ColorInspectorView |
2236
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
19 |
instanceVariableNames:'colorView' |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
20 |
classVariableNames:'' |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
21 |
poolDictionaries:'' |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
22 |
category:'Interface-Inspector' |
44 | 23 |
! |
24 |
||
87 | 25 |
!ColorInspectorView class methodsFor:'documentation'! |
26 |
||
27 |
copyright |
|
28 |
" |
|
29 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! ! |
|
40 |
||
8156 | 41 |
!ColorInspectorView class methodsFor:'menu specs'! |
42 |
||
43 |
colorMenu |
|
44 |
"This resource specification was automatically generated |
|
45 |
by the MenuEditor of ST/X." |
|
46 |
||
47 |
"Do not manually edit this!! If it is corrupted, |
|
48 |
the MenuEditor may not be able to read the specification." |
|
49 |
||
50 |
" |
|
51 |
MenuEditor new openOnClass:ColorInspectorView andSelector:#colorMenu |
|
52 |
(Menu new fromLiteralArrayEncoding:(ColorInspectorView colorMenu)) startUp |
|
53 |
" |
|
54 |
||
55 |
<resource: #menu> |
|
56 |
||
57 |
^ |
|
58 |
#(Menu |
|
59 |
( |
|
60 |
(MenuItem |
|
9704 | 61 |
label: 'Color Editor' |
8156 | 62 |
itemValue: openColorEditor |
63 |
translateLabel: true |
|
64 |
) |
|
65 |
) |
|
66 |
nil |
|
67 |
nil |
|
68 |
) |
|
9704 | 69 |
|
70 |
"Modified: / 27-01-2011 / 11:49:22 / cg" |
|
8156 | 71 |
! ! |
72 |
||
44 | 73 |
!ColorInspectorView methodsFor:'accessing'! |
74 |
||
75 |
inspect:anObject |
|
76 |
super inspect:anObject. |
|
2271
0cf238543cb1
fixed and improved fieldNameList generation & use.
Claus Gittinger <cg@exept.de>
parents:
2236
diff
changeset
|
77 |
|
44 | 78 |
colorView viewBackground:anObject. |
10163 | 79 |
realized ifFalse:[^ self]. |
44 | 80 |
colorView clear |
10163 | 81 |
|
82 |
"Modified: / 05-07-2011 / 14:03:48 / cg" |
|
44 | 83 |
! ! |
84 |
||
85 |
!ColorInspectorView methodsFor:'initialization'! |
|
86 |
||
87 |
initialize |
|
88 |
|newPanel sub| |
|
89 |
||
90 |
super initialize. |
|
91 |
||
92 |
newPanel := VariableVerticalPanel in:self. |
|
93 |
newPanel origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
94 |
||
95 |
sub := subViews first. |
|
96 |
self removeSubView:sub. |
|
97 |
sub origin:0.0@0.0 corner:1.0@0.8. |
|
98 |
newPanel addSubView:sub. |
|
99 |
||
100 |
colorView := View in:newPanel. |
|
101 |
colorView origin:(0.0 @ 0.8) corner:(1.0 @ 1.0). |
|
8156 | 102 |
colorView |
103 |
menuHolder:(self class colorMenu); |
|
104 |
menuPerformer:self |
|
44 | 105 |
|
106 |
" |
|
107 |
ColorInspectorView inspect:(Color yellow) |
|
108 |
ColorInspectorView inspect:(Color name:'brown') lightened) |
|
109 |
" |
|
110 |
! ! |
|
2236
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
111 |
|
9704 | 112 |
!ColorInspectorView methodsFor:'menu'! |
113 |
||
114 |
optionalToolItems |
|
115 |
"inserted after inspect/browse" |
|
116 |
||
117 |
^ #( |
|
118 |
('Color Editor' #openColorEditor) |
|
119 |
). |
|
120 |
||
121 |
"Modified: / 27-01-2011 / 11:51:53 / cg" |
|
122 |
! ! |
|
123 |
||
8156 | 124 |
!ColorInspectorView methodsFor:'user actions'! |
125 |
||
126 |
openColorEditor |
|
127 |
ColorEditDialog openOn:inspectedObject |
|
128 |
! ! |
|
129 |
||
2236
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
130 |
!ColorInspectorView class methodsFor:'documentation'! |
257f587ad7dc
migrate instvars 'inspectedObject' to 'object'
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
131 |
|
9704 | 132 |
version_CVS |
18532
cccb41254edf
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
15950
diff
changeset
|
133 |
^ '§Header: /cvs/stx/stx/libtool/ColorInspectorView.st,v 1.14 2011/07/05 12:04:32 cg Exp §' |
12166 | 134 |
! |
135 |
||
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12198
diff
changeset
|
136 |
version_HG |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12198
diff
changeset
|
137 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12198
diff
changeset
|
138 |
^ '$Changeset: <not expanded> $' |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12198
diff
changeset
|
139 |
! |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12198
diff
changeset
|
140 |
|
12166 | 141 |
version_SVN |
12198
414e7b69ecda
Text/ChangeSet diff improved
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12166
diff
changeset
|
142 |
^ '$Id: ColorInspectorView.st 7944 2012-03-19 15:32:45Z vranyj1 $' |
12166 | 143 |
! ! |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12198
diff
changeset
|
144 |