#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("I should keep my cat indoors at night") map0_1 = CreateChild(map0_0, "CompoundReason") map0_2 = CreateChild(map0_1, "Claim") SetText("Cats kill endangered wildlife") map0_3 = CreateChild(map0_1, "Claim") SetText("Cats usually hunt at night") map0_4 = CreateChild(map0_3, "Basis") SetText("*Expert Opinion*\nDr. Fluffhandler, Veterninary Surgeon") map0_5 = CreateChild(map0_1, "Inference") map0_6 = CreateChild(map0_0, "CompoundReason") map0_7 = CreateChild(map0_6, "Claim") SetText("Cats are safer if they're kept indoors at night") map0_8 = CreateChild(map0_7, "CompoundReason") map0_9 = CreateChild(map0_8, "Claim") SetText("Most vehicle accidents involving cats occur at night") map0_10 = CreateChild(map0_9, "Basis") SetText("*Expert Opinion*\nDr. Fluffhandler, Veterninary Surgeon") map0_11 = CreateChild(map0_8, "Inference") map0_12 = CreateChild(map0_7, "CompoundReason") map0_13 = CreateChild(map0_12, "Claim") SetText("Most catfights occur at night") map0_14 = CreateChild(map0_13, "Basis") SetText("*Expert Opinion*\nDr. Fluffhandler, Veterninary Surgeon") map0_15 = CreateChild(map0_12, "Inference") map0_16 = CreateChild(map0_6, "Inference") GetFernViews() SetLocation(map0_0, -83, -193) SetSize(map0_0, 156, 53) SetSize(map0_1, 296, 82) SetSize(map0_2, 106, 72) SetSize(map0_3, 117, 62) SetSize(map0_4, 132, 113) SetSize(map0_5, 43, 33) SetSize(map0_6, 208, 82) SetSize(map0_7, 140, 72) SetSize(map0_8, 189, 100) SetSize(map0_9, 121, 90) SetSize(map0_10, 131, 113) SetSize(map0_11, 48, 33) SetSize(map0_12, 186, 72) SetSize(map0_13, 118, 62) SetSize(map0_14, 129, 113) SetSize(map0_15, 48, 33) SetSize(map0_16, 48, 33) ShowPrintPagePreview(False)