Ejemplo n.º 1
0
 def Show(self):
     if not GraphViewer.Show(self):
         return False
     self.cmd_test = self.AddCommand("Test", "F2")
     if self.cmd_test == 0:
         print "Failed to add popup menu item!"
     return True
Ejemplo n.º 2
0
    def Show(self):
        if not GraphViewer.Show(self):
            return False
        """
        if self.mynav is not None and False:
            cmd = self.AddCommand("Open graph", "Ctrl+O")
            self.commands[cmd] = "open"
            cmd = self.AddCommand("Save graph", "Ctrl+O")
            self.commands[cmd] = "save"
            cmd = self.AddCommand("-", "")
            self.commands[cmd] = "-"
        """
        cmd = self.AddCommand("Refresh", "")
        self.commands[cmd] = "refresh"
        cmd = self.AddCommand("Show/hide node", "Ctrl+H")
        self.commands[cmd] = "hide"
        cmd = self.AddCommand("Show/hide strings", "")
        self.commands[cmd] = "strings"
        cmd = self.AddCommand("Show/hide API calls", "")
        self.commands[cmd] = "apis"
        cmd = self.AddCommand("Show all nodes", "Ctrl+A")
        self.commands[cmd] = "unhide"
        cmd = self.AddCommand("Select recursion level", "")
        self.commands[cmd] = "recursion"
        cmd = self.AddCommand("- ", "")
        self.commands[cmd] = "-"

        return True
Ejemplo n.º 3
0
    def Show(self):
        if not GraphViewer.Show(self):
            return False

        self.cmd_close = self.AddCommand("Close", "ESC")
        if self.cmd_close == 0:
            print "Failed to add popup menu item!"

        return True
    def Show(self):
        print self.juice
        if not GraphViewer.Show(self):
            return False
        # self.cmd_close = self.AddCommand("Close", "F2")
        # if self.cmd_close == 0:
        #     print "Failed to add popup menu item!"
        return True


# g = MyGraph(GetFunctionName(f.startEA), result)
# g.Show()
Ejemplo n.º 5
0
    def Show(self):
        if not GraphViewer.Show(self):
            return False

        self.cmd_refresh = self.AddCommand("Refresh", "Ctrl+R")
        return True
Ejemplo n.º 6
0
 def Show(self):
     if not GraphViewer.Show(self):
         return False
     self.cmd_dot = self.AddCommand("Export DOT", "F2")
     return True