author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 06 Jul 2015 07:18:24 +0100 | |
changeset 36 | 4e586238a9f7 |
parent 32 | d7464405cbda |
child 43 | 9327987437ae |
permissions | -rw-r--r-- |
32
d7464405cbda
Package renamed from cvut:fel/cface to jv:cface
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
1 |
"{ Package: 'jv:cface' }" |
11 | 2 |
|
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
TypeMapping subclass:#GTKMapping |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-Mappings' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!GTKMapping methodsFor:'filtering'! |
|
14 |
||
15 |
shouldIgnoreStruct: cStructNode |
|
16 |
||
17 |
^cStructNode cName endsWith: 'Class'. |
|
18 |
||
19 |
"Created: / 22-02-2009 / 22:15:19 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
20 |
! ! |
|
21 |
||
22 |
!GTKMapping methodsFor:'mapping - class names'! |
|
23 |
||
24 |
smalltalkClassNameForDerivedType:cType |
|
25 |
||
26 |
((cType cName startsWith:'Gtk') or: [cType cName startsWith:'_Gtk']) |
|
27 |
ifTrue:[^cType cName copyFrom: 5]. |
|
28 |
((cType cName startsWith:'Gtk') or: [cType cName startsWith:'_Gtk']) |
|
29 |
ifTrue:[^cType cName copyFrom: 5]. |
|
30 |
^super smalltalkClassNameForDerivedType:cType |
|
31 |
||
32 |
"Created: / 22-02-2009 / 22:33:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
33 |
! ! |
|
34 |
||
35 |
!GTKMapping methodsFor:'mapping - namespaces'! |
|
36 |
||
37 |
smalltalkNamespaceForDerivedType: cType |
|
38 |
||
39 |
((cType cName startsWith:'Gtk') or: [cType cName startsWith:'_Gtk']) |
|
40 |
ifTrue:[^'GTK']. |
|
41 |
((cType cName startsWith:'Gdk') or: [cType cName startsWith:'_Gdk']) |
|
42 |
ifTrue:[^'GdK']. |
|
43 |
^super smalltalkNamespaceForDerivedType: cType |
|
44 |
||
45 |
"Created: / 22-02-2009 / 22:32:41 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
46 |
! ! |
|
47 |
||
48 |
!GTKMapping class methodsFor:'documentation'! |
|
49 |
||
50 |
version |
|
51 |
^'$Id$' |
|
14 | 52 |
! |
53 |
||
54 |
version_SVN |
|
55 |
^ '$Id$' |
|
11 | 56 |
! ! |