コード例 #1
0
ファイル: stack.py プロジェクト: pres1er/deREferencing
 def set_window_position(self):
     stack_view = idaapi.find_widget("Stack view")
     if stack_view:
         idaapi.set_dock_pos(STACK_WIDGET_TITLE, "Stack view", idaapi.DP_INSIDE)
         idaapi.close_widget(stack_view, 0)
     else:
         idaapi.set_dock_pos(STACK_WIDGET_TITLE, REGS_WIDGET_TITLE, idaapi.DP_BOTTOM)
コード例 #2
0
    def set_window_position(self):
        ref_widgets = [("Modules", idaapi.DP_TOP), ("Threads", idaapi.DP_TOP),
                       ("IDA View-EIP", idaapi.DP_RIGHT),
                       ("Stack view", idaapi.DP_TOP)]
        plug_window_name = "Registers - %s" % PLUGIN_NAME
        regs_widget = idaapi.find_widget("General registers")

        if regs_widget:
            idaapi.set_dock_pos(REGS_WIDGET_TITLE, "General registers",
                                idaapi.DP_INSIDE)
            idaapi.close_widget(regs_widget, 0)
        else:
            found = False
            for wname, pos in ref_widgets:
                if idaapi.find_widget(wname):
                    idaapi.set_dock_pos(REGS_WIDGET_TITLE, wname, pos)
                    found = True
                    break
            if not found:
                idaapi.set_dock_pos(REGS_WIDGET_TITLE, None,
                                    idaapi.DP_FLOATING)