/[fenfire]/fenfire/org/fenfire/demo/buoyoing.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/buoyoing.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.46 by tjl, Wed May 14 22:03:33 2003 UTC revision 1.47 by mudyc, Thu May 15 16:51:06 2003 UTC
# Line 71  fen.txtfunc = fen.txt.getNodeFunction() Line 71  fen.txtfunc = fen.txt.getNodeFunction()
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
# Line 95  if 1: Line 94  if 1:
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    
# Line 124  irregu = ff.view.IrregularViewportView2D Line 114  irregu = ff.view.IrregularViewportView2D
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    

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26