def __init__(self, action_function):
idaapi.action_handler_t.__init__(self)
self.action_function = action_function
python类action_handler_t()的实例源码
def ui_init(self):
"""Initializes the plugins interface extensions."""
# Register menu entry.
# @HR: I really preferred the pre-6.5 mechanic.
zelf = self
class MenuEntry(idaapi.action_handler_t):
def activate(self, ctx):
zelf.open_proj_creation_dialog()
return 1
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
action = idaapi.action_desc_t(
'continuum_new_project',
"New continuum project...",
MenuEntry(),
)
idaapi.register_action(action)
idaapi.attach_action_to_menu("File/Open...", 'continuum_new_project', 0)
# Alright, is an IDB loaded? Pretend IDB open event as we miss the callback
# when it was loaded before our plugin was staged.
if GetIdbPath():
self.core.handle_open_idb(None, None)
# Register hotkeys.
idaapi.add_hotkey('Shift+F', self.core.follow_extern)
# Sign up for events.
self.core.project_opened.connect(self.create_proj_explorer)
self.core.project_closing.connect(self.close_proj_explorer)
self.core.client_created.connect(self.subscribe_client_events)
# Project / client already open? Fake events.
if self.core.project:
self.create_proj_explorer(self.core.project)
if self.core.client:
self.subscribe_client_events(self.core.client)
def __init__(self):
self.funcs = {}
data = open('modules.txt', 'r').read()
data =data.split('\n')
for line in data:
if line != '':
temp = re.split('\s+', line)
self.funcs[int(temp[0],16)] = temp[-1]
idaapi.action_handler_t.__init__(self)
def __init__(self, action_function):
idaapi.action_handler_t.__init__(self)
self.action_function = action_function
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self, temporary_structure):
self.temporary_structure = temporary_structure
idaapi.action_handler_t.__init__(self)
def __init__(self, temporary_structure):
self.temporary_structure = temporary_structure
idaapi.action_handler_t.__init__(self)
def __init__(self, temporary_structure):
self.temporary_structure = temporary_structure
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
self.graph = None
self.graph_view = None
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self, potential_negatives):
idaapi.action_handler_t.__init__(self)
self.potential_negative = potential_negatives
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
# Say hello when invoked.
def __init__(self):
idaapi.action_handler_t.__init__(self)
# Say hello when invoked.
def __init__(self, state=False):
idaapi.action_handler_t.__init__(self)
self._state = state
def __init__(self, set_color):
idaapi.action_handler_t.__init__(self)
self._set_color = set_color
def __init__(self, id, name, tooltip, menuPath, callback, shortcut):
idaapi.action_handler_t.__init__(self)
self.id = id
self.name = name
self.tooltip = tooltip
self.menuPath = menuPath
self.callback = callback
self.shortcut = shortcut
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self):
idaapi.action_handler_t.__init__(self)
def __init__(self, items):
idaapi.action_handler_t.__init__(self)
self.items = items
def __init__(self, items):
idaapi.action_handler_t.__init__(self)
self.items = items