108 |
fen.constgraph = fen.graph = ff.swamp.Graphs.toGraph(m); |
fen.constgraph = fen.graph = ff.swamp.Graphs.toGraph(m); |
109 |
else: fen.graph = fen.constgraph = ff.swamp.impl.HashGraph() |
else: fen.graph = fen.constgraph = ff.swamp.impl.HashGraph() |
110 |
|
|
111 |
structure_ff = ff.structure.Ff.create(fen.graph, myalph) |
ff_structure = ff.structure.Ff.create(fen.graph, myalph) |
112 |
|
|
113 |
fen.enfiladeOverlap = structure_ff.getTransclusionIndex() |
# why necessary? |
114 |
|
fen.enfiladeOverlap = ff_structure.getTransclusionIndex() |
115 |
fen.alph = myalph |
fen.alph = myalph |
116 |
|
# |
117 |
|
|
118 |
style = vob.GraphicsAPI.getInstance().getTextStyle("sansserif", 0, 24) |
style = vob.GraphicsAPI.getInstance().getTextStyle("sansserif", 0, 24) |
119 |
|
|
201 |
self.c.setOffset(0) |
self.c.setOffset(0) |
202 |
self.components.append(self.c.getAccursed()) |
self.components.append(self.c.getAccursed()) |
203 |
offset = self.c.getOffset() |
offset = self.c.getOffset() |
|
print self.alphContent.getText(self.c.getAccursed()), offset, text, 1 |
|
204 |
self.alphContent.insertText(self.c.getAccursed(), offset, text, 1) |
self.alphContent.insertText(self.c.getAccursed(), offset, text, 1) |
205 |
self.c.setOffset(offset + len(text)) |
self.c.setOffset(offset + len(text)) |
206 |
|
|
210 |
if self.c.getAccursed() == None: return |
if self.c.getAccursed() == None: return |
211 |
offset = self.c.getOffset() |
offset = self.c.getOffset() |
212 |
|
|
|
print accursed, offset-1, offset |
|
213 |
self.alphContent.deleteText(accursed, offset-1, offset) |
self.alphContent.deleteText(accursed, offset-1, offset) |
214 |
self.c.setOffset(offset-1) |
self.c.setOffset(offset-1) |
215 |
l = len(self.alphContent.getText(accursed)) |
l = len(self.alphContent.getText(accursed)) |
640 |
"""Enter a character into the cursor position.""" |
"""Enter a character into the cursor position.""" |
641 |
self.context.insertText(key) |
self.context.insertText(key) |
642 |
|
|
643 |
if 1: #dbg: |
if dbg: |
644 |
text = self.context.alphContent.getText(self.context.c.getAccursed()) |
text = self.context.alphContent.getText(self.context.c.getAccursed()) |
645 |
print text[0:self.context.c.getOffset()], '[cursor]' |
print text[0:self.context.c.getOffset()], '[cursor]' |
646 |
|
|