def subscribe_stage_2(self): # newGraphPair subscribe(self.updateFromGraph, "newGraphPair.viz") subscribe(self.updateToGraph, "newGraphPair.viz") subscribe(self.updateAlignment, "newGraphPair.viz") # newRelation subscribe(self.updateAlignment, "newRelation.viz")
def subscribe_stage_3(self): GraphView.subscribe_stage_3(self) # newNodeSelect # ********* FIXME: following updates may be superfluous subscribe(self.updateImageFile, "newNodeSelect.gui") subscribe(self.updateHtmlPage, "newNodeSelect.gui") # foldNodeChanged subscribe(self.updateFromGraph, "foldNodeChanged") subscribe(self.updateToGraph, "foldNodeChanged") # hidden nodes may be focused or aligned, so we need to refresh # node focus, edge focus and aligment as well, which check themselves # if any nodes have now become hidden subscribe(self.updateNodeFocus, "foldNodeChanged") subscribe(self.updateEdgeFocus, "foldNodeChanged") subscribe(self.updateAlignment, "foldNodeChanged") subscribe(self.updateFolded, "foldNodeChanged") subscribe(self.updateImageFile, "foldNodeChanged") subscribe(self.updateImageMap, "foldNodeChanged") subscribe(self.updateHtmlPage, "foldNodeChanged") # unfoldAllNodes subscribe(self.unfoldAllNodes, "unfoldAllNodes") subscribe(self.updateFromGraph, "unfoldAllNodes") subscribe(self.updateToGraph, "unfoldAllNodes") subscribe(self.updateAlignment, "unfoldAllNodes") subscribe(self.updateImageFile, "unfoldAllNodes") subscribe(self.updateImageMap, "unfoldAllNodes") subscribe(self.updateHtmlPage, "unfoldAllNodes") # markSelectedNodesChanged subscribe(self.updateNodeFocus, "markSelectedNodesChanged") subscribe(self.updateFromGraph, "markSelectedNodesChanged") subscribe(self.updateToGraph, "markSelectedNodesChanged") subscribe(self.updateImageFile, "markSelectedNodesChanged") subscribe(self.updateHtmlPage, "markSelectedNodesChanged") # markAlignedNodesChanged subscribe(self.updateAlignment, "markAlignedNodesChanged") subscribe(self.updateImageFile, "markAlignedNodesChanged") subscribe(self.updateHtmlPage, "markAlignedNodesChanged") # labelEdgesChanged subscribe(self.updateFromGraph, "labelEdgesChanged") subscribe(self.updateToGraph, "labelEdgesChanged") subscribe(self.updateImageFile, "labelEdgesChanged") subscribe(self.updateImageMap, "labelEdgesChanged") subscribe(self.updateHtmlPage, "labelEdgesChanged") # markSelectedAlignmentsChanged subscribe(self.updateEdgeFocus, "markSelectedAlignmentsChanged") subscribe(self.updateAlignment, "markSelectedAlignmentsChanged") subscribe(self.updateImageFile, "markSelectedAlignmentsChanged") subscribe(self.updateHtmlPage, "markSelectedAlignmentsChanged") # hideAlignmentsChanged subscribe(self.updateAlignment, "hideAlignmentsChanged") subscribe(self.updateImageFile, "hideAlignmentsChanged") subscribe(self.updateImageMap, "hideAlignmentsChanged") subscribe(self.updateHtmlPage, "hideAlignmentsChanged") # coSelectAlignedNodeChanged subscribe(self.updateCoSelectedNode, "coSelectAlignedNodeChanged")
def subscribe_stage_1(self): GraphView.subscribe_stage_1(self) # newGraphPair subscribe(self.updateEdgeFocus, "newGraphPair.viz") subscribe(self.updateNodeFocus, "newGraphPair.viz") subscribe(self.unfoldAllNodes, "newGraphPair.viz") # newRelation subscribe(self.updateEdgeFocus, "newRelation.viz") # newNodeSelect subscribe(self.updateNodeFocus, "newNodeSelect.viz") subscribe(self.updateEdgeFocus, "newNodeSelect.viz") # newNodeSelect # ********* FIXME: following updates may be superfluous subscribe(self.updateAlignment, "newNodeSelect.viz")
def subscribe_stage_3(self): # newGraphPair subscribe(self.updateImageFile, "newGraphPair.gui") subscribe(self.updateImageMap, "newGraphPair.gui") subscribe(self.updateHtmlPage, "newGraphPair.gui") # newRelation subscribe(self.updateImageFile, "newRelation.gui") subscribe(self.updateImageMap, "newRelation.gui") subscribe(self.updateHtmlPage, "newRelation.gui")
def subscribe_stage_3(self): # NB order of subscripton is relevant BasicGraphView.subscribe_stage_3(self) # orderNodesChanged subscribe(self.updateFromGraph, "orderNodesChanged") subscribe(self.updateToGraph, "orderNodesChanged") subscribe(self.updateImageFile, "orderNodesChanged") subscribe(self.updateImageMap, "orderNodesChanged") subscribe(self.updateHtmlPage, "orderNodesChanged") # autoFoldEqualsChanged subscribe(self.updateFromGraph, "autoFoldEqualsChanged") subscribe(self.updateToGraph, "autoFoldEqualsChanged") subscribe(self.updateAlignment, "autoFoldEqualsChanged") subscribe(self.updateFolded, "autoFoldEqualsChanged") subscribe(self.updateImageFile, "autoFoldEqualsChanged") subscribe(self.updateImageMap, "autoFoldEqualsChanged") subscribe(self.updateHtmlPage, "autoFoldEqualsChanged")
def subscribe(self): subscribe(self.updateTokens, "newGraphPair.gui")
def subscribe(self): subscribe(self.initGraphView, "newCorpus")
def subscribe(self): subscribe(self.updateText, "newGraphPair.gui")
def subscribe(self): TokenView.subscribe(self) subscribe(self.updateTokens, "newNodeSelect.gui")
def subscribe_stage_1(self): BasicGraphView.subscribe_stage_1(self) subscribe(self.updateAutoFolded, "newGraphPair.viz") subscribe(self.updateFolded, "newGraphPair.viz") subscribe(self.updateAutoFolded, "autoFoldEqualsChanged")
def subscribe(self): subscribe(self.updateDisabledWidgets, "newCorpus")
def subscribe(self): subscribe(self.initRelationView, "newCorpus")
def subscribe_stage_3(self): GraphView.subscribe_stage_3(self) # newNodeSelect # ********* FIXME: following updates may be superfluous subscribe(self.updateImageFile, "newNodeSelect.gui") subscribe(self.updateHtmlPage, "newNodeSelect.gui") # foldNodeChanged subscribe(self.updateFromGraph, "foldNodeChanged") subscribe(self.updateToGraph, "foldNodeChanged") # hidden nodes may be focused or aligned, so we need to refresh # node focus, edge focus and aligment as well, which check themselves # if any nodes have now become hidden subscribe(self.updateNodeFocus, "foldNodeChanged") subscribe(self.updateEdgeFocus, "foldNodeChanged") subscribe(self.updateAlignment, "foldNodeChanged") subscribe(self.updateFolded, "foldNodeChanged") subscribe(self.updateImageFile, "foldNodeChanged") subscribe(self.updateImageMap, "foldNodeChanged") subscribe(self.updateHtmlPage, "foldNodeChanged") # unfoldAllNodes subscribe(self.unfoldAllNodes, "unfoldAllNodes") subscribe(self.updateFromGraph, "unfoldAllNodes") subscribe(self.updateToGraph, "unfoldAllNodes") subscribe(self.updateAlignment, "unfoldAllNodes") subscribe(self.updateImageFile, "unfoldAllNodes") subscribe(self.updateImageMap, "unfoldAllNodes") subscribe(self.updateHtmlPage, "unfoldAllNodes") # markSelectedNodesChanged subscribe(self.updateNodeFocus, "markSelectedNodesChanged") subscribe(self.updateFromGraph, "markSelectedNodesChanged") subscribe(self.updateToGraph, "markSelectedNodesChanged") subscribe(self.updateImageFile, "markSelectedNodesChanged") subscribe(self.updateHtmlPage, "markSelectedNodesChanged") # markAlignedNodesChanged subscribe(self.updateAlignment, "markAlignedNodesChanged") subscribe(self.updateImageFile, "markAlignedNodesChanged") subscribe(self.updateHtmlPage, "markAlignedNodesChanged") # labelEdgesChanged subscribe(self.updateFromGraph, "labelEdgesChanged") subscribe(self.updateToGraph, "labelEdgesChanged") subscribe(self.updateImageFile, "labelEdgesChanged") subscribe(self.updateImageMap, "labelEdgesChanged") subscribe(self.updateHtmlPage, "labelEdgesChanged") # markSelectedAlignmentsChanged subscribe(self.updateEdgeFocus ,"markSelectedAlignmentsChanged") subscribe(self.updateAlignment ,"markSelectedAlignmentsChanged") subscribe(self.updateImageFile ,"markSelectedAlignmentsChanged") subscribe(self.updateHtmlPage ,"markSelectedAlignmentsChanged") # hideAlignmentsChanged subscribe(self.updateAlignment, "hideAlignmentsChanged") subscribe(self.updateImageFile, "hideAlignmentsChanged") subscribe(self.updateImageMap, "hideAlignmentsChanged") subscribe(self.updateHtmlPage, "hideAlignmentsChanged") # coSelectAlignedNodeChanged subscribe(self.updateCoSelectedNode, "coSelectAlignedNodeChanged")
def subscribe(self): subscribe(self.updateStatusbar, "statusDescription") subscribe(self.updateStatusbarCounter, "newGraphPair.gui") subscribe(self.updateSplitterWindow, "newCorpus") subscribe(self.updateWindowTitle, "newCorpusName") subscribe(self.updateDisabledWidgets, "newCorpus")