22
|
1 |
"{ Package: 'cvut:fel/cface' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Cface }"
|
|
4 |
|
|
5 |
TypeMapping subclass:#Libgit2Mapping
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Cface-Mappings'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!Libgit2Mapping methodsFor:'accessing'!
|
|
14 |
|
|
15 |
smalltalkNameForEnumValue:cEnumFieldType
|
|
16 |
|cairoName|
|
|
17 |
|
|
18 |
cairoName := cEnumFieldType cName.
|
|
19 |
(cairoName startsWith:'GIT_') ifTrue:[
|
|
20 |
cairoName := cairoName copyFrom:5
|
|
21 |
].
|
|
22 |
^ cairoName asSymbol
|
|
23 |
|
|
24 |
"
|
|
25 |
Cface::CairoMapping new
|
|
26 |
smalltalkNameForEnumValue:(Cface::CEnumValueNode new cName:'CAIRO_FONT_TYPE_TOY')
|
|
27 |
|
|
28 |
"
|
|
29 |
|
|
30 |
"Created: / 04-07-2008 / 11:32:01 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
31 |
"Modified: / 04-09-2012 / 16:02:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
32 |
!
|
|
33 |
|
|
34 |
smalltalkPackage
|
|
35 |
|
|
36 |
^#'stx:libgit'
|
|
37 |
|
|
38 |
"Created: / 03-07-2008 / 21:14:47 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
39 |
"Modified: / 04-09-2012 / 16:01:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
40 |
! !
|
|
41 |
|
24
|
42 |
!Libgit2Mapping methodsFor:'mapping - categories'!
|
|
43 |
|
26
|
44 |
smalltalkCategoryForDerivedType:cType
|
|
45 |
| className class |
|
24
|
46 |
|
26
|
47 |
className := cType smalltalkName asSymbol.
|
|
48 |
(className notNil and:[(class := Smalltalk at: className) notNil]) ifTrue:[
|
|
49 |
^class category
|
|
50 |
].
|
|
51 |
^'Git-Support-libgit2'
|
24
|
52 |
|
|
53 |
"Created: / 05-09-2012 / 11:15:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
54 |
! !
|
|
55 |
|
26
|
56 |
!Libgit2Mapping methodsFor:'mapping - class names'!
|
|
57 |
|
|
58 |
smalltalkClassNameForFunction:cFunction
|
|
59 |
"Answers class which should contain function call"
|
|
60 |
|
|
61 |
^#GitPrimitives
|
|
62 |
|
|
63 |
"Created: / 07-09-2012 / 15:04:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
64 |
! !
|
|
65 |
|
22
|
66 |
!Libgit2Mapping class methodsFor:'documentation'!
|
|
67 |
|
|
68 |
version_SVN
|
|
69 |
^ '$Id:: $'
|
|
70 |
! !
|