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:
12650
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:
12650
diff
changeset
|
2 |
|
9984 | 3 |
" |
10073 | 4 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague |
5 |
All Rights Reserved |
|
9984 | 6 |
|
10073 | 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. |
|
9984 | 27 |
" |
28 |
"{ Package: 'stx:libtool' }" |
|
29 |
||
30 |
"{ NameSpace: Tools }" |
|
31 |
||
32 |
ApplicationModel subclass:#CodeView2DemoApp |
|
33 |
instanceVariableNames:'modifiedChannel' |
|
34 |
classVariableNames:'' |
|
35 |
poolDictionaries:'' |
|
36 |
category:'Interface-CodeView' |
|
37 |
! |
|
38 |
||
39 |
!CodeView2DemoApp class methodsFor:'documentation'! |
|
40 |
||
41 |
copyright |
|
42 |
" |
|
10073 | 43 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague |
44 |
All Rights Reserved |
|
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: |
|
9984 | 54 |
|
10073 | 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. |
|
9984 | 66 |
" |
67 |
! |
|
68 |
||
69 |
examples |
|
70 |
" |
|
71 |
Starting the application: |
|
72 |
[exBegin] |
|
73 |
Tools::CodeView2DemoApp open |
|
74 |
||
75 |
[exEnd] |
|
76 |
||
77 |
more examples to be added: |
|
78 |
[exBegin] |
|
79 |
... add code fragment for |
|
80 |
... executable example here ... |
|
81 |
[exEnd] |
|
82 |
" |
|
83 |
! ! |
|
84 |
||
85 |
!CodeView2DemoApp class methodsFor:'interface specs'! |
|
86 |
||
87 |
windowSpec |
|
88 |
"This resource specification was automatically generated |
|
89 |
by the UIPainter of ST/X." |
|
90 |
||
91 |
"Do not manually edit this!! If it is corrupted, |
|
92 |
the UIPainter may not be able to read the specification." |
|
93 |
||
94 |
" |
|
95 |
UIPainter new openOnClass:Tools::CodeView2DemoApp andSelector:#windowSpec |
|
96 |
Tools::CodeView2DemoApp new openInterface:#windowSpec |
|
97 |
Tools::CodeView2DemoApp open |
|
98 |
" |
|
99 |
||
100 |
<resource: #canvas> |
|
101 |
||
102 |
^ |
|
103 |
#(FullSpec |
|
104 |
name: windowSpec |
|
105 |
window: |
|
106 |
(WindowSpec |
|
107 |
label: 'CodeView2 Demo App' |
|
108 |
name: 'CodeView2 Demo App' |
|
109 |
min: (Point 10 10) |
|
110 |
bounds: (Rectangle 0 0 509 392) |
|
111 |
) |
|
112 |
component: |
|
113 |
(SpecCollection |
|
114 |
collection: ( |
|
115 |
(TextEditorSpec |
|
116 |
name: 'CodeView2' |
|
117 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1) |
|
118 |
hasHorizontalScrollBar: true |
|
119 |
hasVerticalScrollBar: true |
|
120 |
hasKeyboardFocusInitially: false |
|
121 |
viewClassName: 'Tools::CodeView2' |
|
122 |
) |
|
123 |
) |
|
124 |
||
125 |
) |
|
126 |
) |
|
127 |
! ! |
|
128 |
||
129 |
!CodeView2DemoApp methodsFor:'aspects'! |
|
130 |
||
131 |
modifiedChannel |
|
132 |
<resource: #uiAspect> |
|
133 |
||
134 |
"automatically generated by UIPainter ..." |
|
135 |
||
136 |
"*** the code below creates a default model when invoked." |
|
137 |
"*** (which may not be the one you wanted)" |
|
138 |
"*** Please change as required and accept it in the browser." |
|
139 |
"*** (and replace this comment by something more useful ;-)" |
|
140 |
||
141 |
modifiedChannel isNil ifTrue:[ |
|
142 |
modifiedChannel := ValueHolder with: false |
|
143 |
]. |
|
144 |
^ modifiedChannel. |
|
145 |
||
146 |
"Modified: / 06-02-2010 / 20:03:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
147 |
! ! |
|
148 |
||
149 |
!CodeView2DemoApp class methodsFor:'documentation'! |
|
150 |
||
151 |
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:
12650
diff
changeset
|
152 |
^ '§Header: /cvs/stx/stx/libtool/Tools__CodeView2DemoApp.st,v 1.2 2011/07/03 17:50:09 cg Exp §' |
9984 | 153 |
! |
154 |
||
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
155 |
version_HG |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
156 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
157 |
^ '$Changeset: <not expanded> $' |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
158 |
! |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
159 |
|
9984 | 160 |
version_SVN |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10073
diff
changeset
|
161 |
^ '$Id: Tools__CodeView2DemoApp.st 7567 2010-04-17 10:59:53Z vranyj1 $' |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
162 |
! ! |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12123
diff
changeset
|
163 |