Beispiel #1
0
    def on_actCall_in_out_triggered(self):
        """
        Slot: show the call in/out methods
        """
        callInOutDialog = CallInOutDialog()
        callInOutDialog.exec_()

        callInContent = "************************Call In*************************\n"
        callOutContent = "***********************Call Out************************\n"
        callInList = []
        callOutList = []
        callMethod = callInOutDialog.callMethod

        if callInOutDialog.callInFlag == 1:
            callInList = self.callInOut.searchCallIn(callMethod)
        if callInOutDialog.callOutFlag == 1:
            callOutList = self.callInOut.searchCallOut(callMethod)

        for i in callInList:
            temp = i.split("^")
            callInContent += temp[0] + "  (" + temp[1] + ")" + "\n"

        for i in callOutList:
            temp = i.split("^")
            callOutContent += temp[0] + "  (" + temp[1] + ")" + "\n"

        self.textEdit_call.setText(callInContent + "\n\n\n" + callOutContent)
Beispiel #2
0
    def on_actCall_in_out_triggered(self):
        """
        Slot: show the call in/out methods
        """ 
        callInOutDialog = CallInOutDialog()
        callInOutDialog.exec_()
        
        callInContent = "************************Call In*************************\n"
        callOutContent = "***********************Call Out************************\n"
        callInList = []
        callOutList = []
        callMethod = callInOutDialog.callMethod

        if callInOutDialog.callInFlag == 1:
            callInList= self.callInOut.searchCallIn(callMethod)
        if callInOutDialog.callOutFlag == 1:
            callOutList = self.callInOut.searchCallOut(callMethod)
        
        for i in callInList:
            temp = i.split("^")
            callInContent += temp[0] + "  ("+ temp[1] + ")" + "\n"
        
        for i in callOutList:
            temp = i.split("^")
            callOutContent += temp[0] + "  (" + temp[1] + ")" + "\n"
        
        self.textEdit_call.setText(callInContent + "\n\n\n" + callOutContent)        
Beispiel #3
0
    def on_actCall_in_out_triggered(self):
        """
        Slot: show the call in/out methods
        """
        """
        import Global
        if method.get_code() == None:
#            self.Graph_call.scene.clear()
#            return
             print "why do not show? actuall"
  
        xdot = XDot(method, Global.VM, Global.VMX)
        xdot.method2xdot()
        [pagesize, nodeList, linkList] = xdot.parse()
        print nodeList
        print linkList
        print "why do not show actul show?"
        self.Graph_call.setPageSize(pagesize)
        self.Graph_call.show(nodeList, linkList, self.gridLayout_16)
        """


        callInOutDialog = CallInOutDialog()
        callInOutDialog.exec_()
        
        callInContent = "************************Call In*************************\n"
        callOutContent = "***********************Call Out************************\n"
        callInList = []
        callOutList = []
        callMethod = callInOutDialog.callMethod

        if callInOutDialog.callInFlag == 1:
            print "enter callin"
            callInList= self.callInOut.searchCallIn(callMethod)
        if callInOutDialog.callOutFlag == 1:
            print "enter callout"
            callOutList = self.callInOut.searchCallOut(callMethod)
        
        for i in callInList:
            temp = i.split("^")
            callInContent += temp[0] + "  ("+ temp[1] + ")" + "\n"
        
        for i in callOutList:
            temp = i.split("^")
            callOutContent += temp[0] + "  (" + temp[1] + ")" + "\n"
        
        self.textEdit_call.setText(callInContent + "\n\n\n" + callOutContent)        
Beispiel #4
0
    def on_actCall_in_out_triggered(self):
        """
        Slot: show the call in/out methods
        """
        """
        import Global
        if method.get_code() == None:
#            self.Graph_call.scene.clear()
#            return
             print "why do not show? actuall"
  
        xdot = XDot(method, Global.VM, Global.VMX)
        xdot.method2xdot()
        [pagesize, nodeList, linkList] = xdot.parse()
        print nodeList
        print linkList
        print "why do not show actul show?"
        self.Graph_call.setPageSize(pagesize)
        self.Graph_call.show(nodeList, linkList, self.gridLayout_16)
        """

        callInOutDialog = CallInOutDialog()
        callInOutDialog.exec_()

        callInContent = "************************Call In*************************\n"
        callOutContent = "***********************Call Out************************\n"
        callInList = []
        callOutList = []
        callMethod = callInOutDialog.callMethod

        if callInOutDialog.callInFlag == 1:
            print "enter callin"
            callInList = self.callInOut.searchCallIn(callMethod)
        if callInOutDialog.callOutFlag == 1:
            print "enter callout"
            callOutList = self.callInOut.searchCallOut(callMethod)

        for i in callInList:
            temp = i.split("^")
            callInContent += temp[0] + "  (" + temp[1] + ")" + "\n"

        for i in callOutList:
            temp = i.split("^")
            callOutContent += temp[0] + "  (" + temp[1] + ")" + "\n"

        self.textEdit_call.setText(callInContent + "\n\n\n" + callOutContent)