71 |
fen.enfiladeOverlap = fen.txt.getTransclusionIndex() |
fen.enfiladeOverlap = fen.txt.getTransclusionIndex() |
72 |
|
|
73 |
ppAct = ff.modules.pp.PPActionsImpl(fen) |
ppAct = ff.modules.pp.PPActionsImpl(fen) |
|
rst = ff.modules.pp.lava.RSTActionsImpl(fen) |
|
74 |
|
|
75 |
# Now, before reading the xu stuff, render something |
# Now, before reading the xu stuff, render something |
76 |
# to try to prevent NV driver |
# to try to prevent NV driver |
94 |
noteB1 = Nodes.get(ppAct.newNote(paperB, 1000,500, 'This is an another test!')) |
noteB1 = Nodes.get(ppAct.newNote(paperB, 1000,500, 'This is an another test!')) |
95 |
|
|
96 |
ppAct.assocNotes(noteB1, 1, noteA1) |
ppAct.assocNotes(noteB1, 1, noteA1) |
|
|
|
|
canvas = rst.newRSTCanvas() |
|
|
parag = rst.newParagraph(canvas, 200, 10,10) |
|
|
senten = rst.newSentence(parag,0) |
|
|
note = ff.swamp.Nodes.N() |
|
|
ff.util.AlphContent(fen).setText(note, 'This is rst canvas test', 1) |
|
|
rst.insertNode(senten, note, 0) |
|
|
|
|
|
ppAct.assocNotes(noteA2, 1, Nodes.toString(note)) |
|
97 |
ppAct.assocNotes(noteB1, -1, noteA1) |
ppAct.assocNotes(noteB1, -1, noteA1) |
98 |
|
|
99 |
|
|
114 |
ff.view.buoy.NodeType2D.effigy = 0 |
ff.view.buoy.NodeType2D.effigy = 0 |
115 |
ff.view.buoy.NodeType2DFull.effigy = 0 |
ff.view.buoy.NodeType2DFull.effigy = 0 |
116 |
|
|
117 |
context = ff.view.lava.FenPDFContext(fen, rst, nodeview) |
context = ff.view.lava.FenPDFContext(fen, ppAct, nodeview) |
118 |
nodeview.setContext(context) |
nodeview.setContext(context) |
119 |
textnodeview.setContext(context) |
textnodeview.setContext(context) |
120 |
context.setAccursed(note) |
context.setAccursed(noteA1) |
121 |
context.setCursorOffset(5) |
context.setCursorOffset(3) |
|
context.setRSTNode(senten) |
|
122 |
ff.view.buoy.MainNode2D.fen = fen |
ff.view.buoy.MainNode2D.fen = fen |
123 |
ff.view.buoy.AbstractMainNode2D.context = context |
ff.view.buoy.AbstractMainNode2D.context = context |
124 |
rst.util.generateBasicSpatialCoords(canvas, nodeview) |
|
125 |
|
|
126 |
|
|
127 |
|
|