def _del_action_bulk(self): """ Delete the bulk prefix action from IDA. """ idaapi.unregister_action(self.ACTION_BULK) idaapi.free_custom_icon(self._bulk_icon_id) self._bulk_icon_id = idaapi.BADADDR
def _del_action_clear(self): """ Delete the clear prefix action from IDA. """ idaapi.unregister_action(self.ACTION_CLEAR) idaapi.free_custom_icon(self._clear_icon_id) self._clear_icon_id = idaapi.BADADDR
def _del_action_recursive(self): """ Delete the recursive rename action from IDA. """ idaapi.unregister_action(self.ACTION_RECURSIVE) idaapi.free_custom_icon(self._recursive_icon_id) self._recursive_icon_id = idaapi.BADADDR
def Free(self): # Call the base Form.Free(self) # Free icon if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id) self.icon_id = 0
def Free(self): del self.EChMain.form del self.EChAux.form # Call base Form.Free(self) # Free icon if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id) self.icon_id = 0
def _uninstall_open_coverage_xref(self): """ Remove the right click 'Coverage Xref' context menu entry. """ self._ui_hooks.unhook() # unregister the action result = idaapi.unregister_action(self.ACTION_COVERAGE_XREF) if not result: return False # delete the entry's icon idaapi.free_custom_icon(self._icon_id_xref) self._icon_id_xref = idaapi.BADADDR logger.info("Uninstalled the 'Coverage Xref' menu entry")
def _uninstall_open_coverage_overview(self): """ Remove the 'View->Open subviews->Coverage Overview' menu entry. """ # remove the entry from the View-> menu result = idaapi.detach_action_from_menu("View/Open subviews/Hex dump", self.ACTION_COVERAGE_OVERVIEW) if not result: return False # unregister the action result = idaapi.unregister_action(self.ACTION_COVERAGE_OVERVIEW) if not result: return False # delete the entry's icon idaapi.free_custom_icon(self._icon_id_overview) self._icon_id_overview = idaapi.BADADDR logger.info("Uninstalled the 'Coverage Overview' menu entry")
def _uninstall_load_batch(self): """ Remove the 'File->Load file->Code coverage batch...' menu entry. """ # remove the entry from the File-> menu result = idaapi.detach_action_from_menu("File/Load file/", self.ACTION_LOAD_BATCH) if not result: return False # unregister the action result = idaapi.unregister_action(self.ACTION_LOAD_BATCH) if not result: return False # delete the entry's icon idaapi.free_custom_icon(self._icon_id_batch) self._icon_id_batch = idaapi.BADADDR logger.info("Uninstalled the 'Code coverage batch' menu entry")
def uninstall(self): """ Uninstall the action from the IDA UI. :return: did the uninstall succeed """ # Detach the action from the chosen menu result = idaapi.detach_action_from_menu(self._menu, self._ACTION_ID) if not result: return False # Un-register the action using its id result = idaapi.unregister_action(self._ACTION_ID) if not result: return False # Free the custom icon using its id idaapi.free_custom_icon(self._iconId) self._iconId = idaapi.BADADDR logger.debug("Uninstalled the action") return True
def _del_action_bulk(self): idaapi.unregister_action(self.ACTION_BULK) idaapi.free_custom_icon(self._bulk_icon_id) self._bulk_icon_id = idaapi.BADADDR
def term(self): ConfigStingray.destory() if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id)
def __del__(self): if self._icon: idaapi.free_custom_icon(self._icon)
def term(self): Config.destory() if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id)
def term(self): # Free the custom icon if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id)
def term(self): if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id)
def term( self ): if self.icon_id != 0: idaapi.free_custom_icon(self.icon_id)