26 |
|
|
27 |
import sys |
import sys |
28 |
import jarray |
import jarray |
29 |
|
import java |
30 |
|
|
31 |
del(sys.modules["org"]) |
del(sys.modules["org"]) |
32 |
|
|
67 |
fen.txtfunc = fen.txt.getNodeFunction() |
fen.txtfunc = fen.txt.getNodeFunction() |
68 |
fen.enfiladeOverlap = fen.txt.getTransclusionIndex() |
fen.enfiladeOverlap = fen.txt.getTransclusionIndex() |
69 |
|
|
|
# Create the buoy view elements |
|
|
scrollblockLinker = ff.view.buoy.ScrollBlockNodeLinker(fen) |
|
|
# scrollblockLinker.transclusionPageSpanNodeType = ( |
|
|
# ff.view.buoy.pagespanNodes.WholePageSpanNodeType(scrollblockLinker) |
|
|
# ) |
|
|
|
|
70 |
ppAct = ff.modules.pp.PPActionsImpl(fen) |
ppAct = ff.modules.pp.PPActionsImpl(fen) |
71 |
class PpContext(ff.view.NodeView.Context, ff.modules.pp.PpContext): |
class PpContext(ff.view.NodeView.Context, ff.modules.pp.PpContext): |
72 |
def __init__(self, ppAc): |
def __init__(self, ppAc): |
115 |
#linkid1 = addTrans(span, paper) |
#linkid1 = addTrans(span, paper) |
116 |
|
|
117 |
paperB = ppAct.newPaper() |
paperB = ppAct.newPaper() |
118 |
note2 = Nodes.get(ppAct.newNote(paperB, 10,30, 'This is an another test!')) |
note2 = Nodes.get(ppAct.newNote(paperB, 1000,500, 'This is an another test!')) |
119 |
|
|
120 |
ppAct.assocNotes(note1, 1, note2) |
ppAct.assocNotes(note1, 1, note2) |
121 |
|
|
|
#scrollblockLinker.xuIndex = xuindexer |
|
|
#scrollblockLinker.xulinkPageSpanNodeType = ff.view.buoy.pagespanNodes.AnchorPageSpanNodeType(scrollblockLinker) |
|
|
|
|
|
# For now, no transclusions there |
|
|
#scrollblockLinker.transclusionPageSpanNodeType = None |
|
|
|
|
122 |
textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24) |
textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24) |
123 |
textnodeview = ff.view.TextNodeView(fen.txtfunc, textstyle, 1) |
textnodeview = ff.view.TextNodeView(fen.txtfunc, textstyle, 1) |
124 |
pagenodeview = ff.view.PageNodeView(fen.txtfunc) |
pagenodeview = ff.view.PageNodeView(fen.txtfunc) |
127 |
pagenodeview) |
pagenodeview) |
128 |
nodeview = ff.swamp.CachedNodeFunction(50, fen.constgraph, dispnodeview); |
nodeview = ff.swamp.CachedNodeFunction(50, fen.constgraph, dispnodeview); |
129 |
view = ff.view.CanvasView2D(fen, nodeview) |
view = ff.view.CanvasView2D(fen, nodeview) |
130 |
|
view.cull = 1 |
131 |
paperview = ff.view.PaperView2D(vob.putil.demowindow.w, view) |
paperview = ff.view.PaperView2D(vob.putil.demowindow.w, view) |
132 |
|
|
133 |
irregu = ff.view.IrregularViewportView2D(paperview) |
irregu = ff.view.IrregularViewportView2D(paperview) |
134 |
|
# irregu = paperview |
135 |
|
|
136 |
# paperviewonly = ff.view.PaperView2D(vob.putil.demowindow.w, None) |
# paperviewonly = ff.view.PaperView2D(vob.putil.demowindow.w, None) |
137 |
|
|
138 |
ff.view.buoy.NodeType2D.effigy = 0 |
ff.view.buoy.NodeType2D.effigy = 0 |
139 |
|
ff.view.buoy.NodeType2DFull.effigy = 0 |
140 |
|
|
141 |
# irregu.debugFlags = irregu.DEBUG_CONTENT | irregu.DEBUG_CHILD |
# irregu.debugFlags = irregu.DEBUG_CONTENT | irregu.DEBUG_CHILD |
142 |
# irregu.border = 10 |
# irregu.border = 10 |
153 |
ppconnector = ff.view.buoy.PPConnector(fen, irregu) |
ppconnector = ff.view.buoy.PPConnector(fen, irregu) |
154 |
tconnector = ff.view.buoy.TransclusionConnector(fen) |
tconnector = ff.view.buoy.TransclusionConnector(fen) |
155 |
|
|
156 |
pagescroll2d = ff.view.IrregularViewportView2D( |
#pagescroll2d = ff.view.IrregularViewportView2D( |
157 |
ff.view.PaperView2D(vob.putil.demowindow.w, |
# ff.view.PaperView2D(vob.putil.demowindow.w, |
158 |
ff.view.PageScrollView2D())) |
# ff.view.PageScrollView2D())) |
159 |
|
pagescroll2d = ff.view.PageScrollView2D() |
160 |
|
|
161 |
tconnector.normalNodeNodeType = ff.view.buoy.NodeType2D(irregu) |
tconnector.normalNodeNodeType = ff.view.buoy.NodeType2D(irregu) |
162 |
tconnector.pageImageScrollNodeType = ff.view.buoy.NodeType2D(pagescroll2d) |
tconnector.pageImageScrollNodeType = ff.view.buoy.NodeType2DFull(pagescroll2d) |
163 |
|
|
164 |
|
print "DUMPING ENFOVERLAP!" |
165 |
|
em = fen.enfiladeOverlap.getContents() |
166 |
|
for k in em.keySet(): |
167 |
|
print "\t",k,"\t",em[k] |
168 |
|
print "DUMPED!" |
169 |
|
|
170 |
|
|
171 |
class Scene(vob.buoy.buoymanager.RealBuoyManager): |
class Scene(vob.buoy.buoymanager.RealBuoyManager): |
172 |
def __init__(self): |
def __init__(self): |