#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("Vegetables are good for you") SetEvaluation("Accept") map0_1 = CreateChild(map0_0, "CompoundReason") SetEvaluation("Strong") map0_2 = CreateChild(map0_1, "Claim") SetText("Vegetables satisfy important dietary needs") SetEvaluation("Accept") map0_3 = CreateAnnotation(map0_2, "Note") SetText("We all know this claim is true.") SetTint(3) map0_4 = CreateChild(map0_1, "Claim") SetText("Things that satisfy important dietary needs are good for you") SetEvaluation("Accept") map0_5 = CreateAnnotation(map0_4, "Note") SetText("This claim is virtually true by definition.") SetTint(3) map0_6 = CreateChild(map0_1, "Inference") map0_7 = CreateAnnotation(map0_1, "Note") SetText("Both claims are good and the reason is highly relevant to the position, so we rate it as a strong one.") SetTint(3) map0_8 = CreateAnnotation(map0_0, "Note") SetText("Given strong support from the reason we should accept this position.") SetTint(3) GetFernViews() SetLocation(map0_0, -178, -157) SetSize(map0_1, 444, 82) SetSize(map0_2, 186, 62) SetOffset(map0_2, map0_3, -2, -152) SetSize(map0_4, 183, 72) SetOffset(map0_4, map0_5, -48, -151) SetSize(map0_5, 174, 62) SetSize(map0_6, 45, 48) SetOffset(map0_1, map0_7, -527, -43) SetSize(map0_7, 176, 128) SetOffset(map0_0, map0_8, -220, 60) SetSize(map0_8, 211, 83) ShowPrintPagePreview(False)