#Rationale Version 130.55 can_be_loaded_by 120.53 uses_features_from 120.53 #-- Start of Prelude -- Node = None Views = [] Loading = True canSetScratchpadText = True if not CurrentFileFormat.IsLaterThan(130, 54): morphTarget = None if not CurrentFileFormat.IsLaterThan(130, 55): canSetScratchpadText = False def Create(type): global Node if morphTarget == None: Node = app.Create(type) else: Morph(morphTarget, type) Node = morphTarget return Node def CreateChild(parent, type): global Node Node = app.CreateChild(parent, type) return Node def CreateAnnotation(parent, type): global Node Node = app.CreateAnnotation(parent, type) return Node def SetText(text): app.SetText(Node, text) def SetEvaluation(evaluation): app.SetEvaluation(Node, evaluation) def SetTint(tint): app.SetTint(Node, tint) def StringToImage(guid, imageAsString): return app.StringToImage(guid, imageAsString) def Morph(node, flavor): global Node app.Morph(node, flavor) Node = node def GetFernViews(): global Views global View global Loading Views = [v for v in app.Views if v.TypeName == "FernView"] Loading = len(Views) == 0 if Loading: View = app.Gui.CreateView("FernView") Views = [ View ] def SetLocation(node, x, y): # if Loading: # View.SetLocation(node, x, y) # else: for v in Views: v.SetLocation(node, x, y) def SetOffset(offsetFrom, node, x, y): if Loading: View.SetOffset(offsetFrom, node, x, y) else: for v in Views: v.SetOffset(offsetFrom, node, x, y) def SetSize(node, width, height): if Loading: View.SetSize(node, width, height) else: for v in Views: v.SetSize(node, width, height) def ShowPrintPagePreview(show): if Loading: View.ShowPrintPagePreview(show, False) def SetBackgroundImage(image): if Loading: View.SetBackgroundImage(image, False) def SetOpacity(opacity): if Loading: View.SetOpacity(opacity) def SetSelection(node): if Loading: View.SetSelection(node) def SetScratchpadText(text): if canSetScratchpadText: app.Gui.SetScratchpadText(text) #-- End of Prelude -- map0_0 = Create("Claim") SetText("Macbeth was evil") SetEvaluation("TakeNoStand") map0_1 = CreateChild(map0_0, "CompoundObjection") SetEvaluation("MakesNoDifference") map0_2 = CreateChild(map0_1, "Claim") SetText("Macbeth was respected by others") SetEvaluation("Accept") map0_3 = CreateAnnotation(map0_2, "Note") SetText("If you've read Shakespeare's play 'Macbeth' then you would know this claim is true. If you haven't read the play it would be acceptable to withhold judgment on this (Hmmm).") SetTint(3) map0_4 = CreateChild(map0_1, "Claim") SetText("Evil people are not respected by others") SetEvaluation("Reject") map0_5 = CreateAnnotation(map0_4, "Note") SetText("This isn't true. We might respect somone on the basis of their reputation or position, without really knowing what they're like inside.") SetTint(3) map0_6 = CreateChild(map0_1, "Inference") map0_7 = CreateAnnotation(map0_1, "Note") SetText("Since one of the claims is bad, this objection doesn't undermine the position.") SetTint(3) map0_8 = CreateAnnotation(map0_0, "Note") SetText("We should suspend judgment. The objection doesn't undermine the position, but we've got no evidence for it either. Even if you've read 'Macbeth' it isn't really clear whether he's evil, or an ordinary man trapped in a bad situation.") SetTint(3) GetFernViews() SetLocation(map0_0, -100, -222) SetSize(map0_1, 393, 72) SetSize(map0_2, 166, 62) SetOffset(map0_2, map0_3, 73, -135) SetSize(map0_3, 242, 150) SetOffset(map0_4, map0_5, -44, -181) SetSize(map0_5, 197, 150) SetSize(map0_6, 41, 48) SetOffset(map0_1, map0_7, -468, 48) SetSize(map0_7, 223, 83) SetOffset(map0_0, map0_8, -229, 172) SetSize(map0_8, 282, 173) ShowPrintPagePreview(False)