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