Пример #1
0
    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")
Пример #2
0
 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")
Пример #3
0
    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")
Пример #4
0
    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")
Пример #5
0
    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")
Пример #6
0
    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")
Пример #7
0
 def subscribe(self):
     subscribe(self.updateTokens, "newGraphPair.gui")
Пример #8
0
 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")
Пример #9
0
 def subscribe(self):
     subscribe(self.initGraphView, "newCorpus")
Пример #10
0
 def subscribe(self):
     subscribe(self.updateText, "newGraphPair.gui")
Пример #11
0
 def subscribe(self):
     TokenView.subscribe(self)
     subscribe(self.updateTokens, "newNodeSelect.gui")
Пример #12
0
 def subscribe(self):
     subscribe(self.updateTokens, "newGraphPair.gui")
Пример #13
0
 def subscribe(self):
     subscribe(self.updateText, "newGraphPair.gui")
Пример #14
0
 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")
Пример #15
0
 def subscribe_stage_1(self):
     BasicGraphView.subscribe_stage_1(self) 
     subscribe(self.updateAutoFolded, "newGraphPair.viz") 
     subscribe(self.updateFolded, "newGraphPair.viz")  
     subscribe(self.updateAutoFolded, "autoFoldEqualsChanged")
Пример #16
0
 def subscribe(self):
     subscribe(self.updateDisabledWidgets, "newCorpus")           
Пример #17
0
 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")
Пример #18
0
 def subscribe(self):
     subscribe(self.initRelationView, "newCorpus")
Пример #19
0
 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")
Пример #20
0
 def subscribe(self):
     subscribe(self.updateStatusbar, "statusDescription") 
     subscribe(self.updateStatusbarCounter, "newGraphPair.gui") 
     subscribe(self.updateSplitterWindow, "newCorpus")
     subscribe(self.updateWindowTitle, "newCorpusName")   
     subscribe(self.updateDisabledWidgets, "newCorpus")        
Пример #21
0
 def subscribe(self):
     TokenView.subscribe(self)
     subscribe(self.updateTokens, "newNodeSelect.gui")
Пример #22
0
 def subscribe_stage_1(self):
     BasicGraphView.subscribe_stage_1(self)
     subscribe(self.updateAutoFolded, "newGraphPair.viz")
     subscribe(self.updateFolded, "newGraphPair.viz")
     subscribe(self.updateAutoFolded, "autoFoldEqualsChanged")