TWidget *
|
TWidget__from_ptrval__(ptrval) |
|
|
|
activate_widget(widget,
take_focus)
Activate widget (only gui version) ( 'ui_activate_widget' ). |
|
|
PyObject *
|
add_hotkey(hotkey,
pyfunc)
Associates a function call with a hotkey. |
|
|
int
|
add_idc_hotkey(hotkey,
idcfunc)
Add hotkey for IDC function ( 'ui_add_idckey' ). |
|
|
PyObject *
|
add_spaces(s,
len)
Add space characters to the colored string so that its length will be
at least 'len' characters. |
|
|
int
|
addon_count()
Get number of installed addons. |
|
|
|
|
|
|
int
|
ask_buttons(Yes,
No,
Cancel,
deflt,
format)
Display a dialog box and get choice from maximum three possibilities
( 'ui_ask_buttons' ).for all buttons:use "" or NULL to take
the default name for the button.use 'format' to hide the cancel
button |
|
|
char *
|
ask_file(for_saving,
defval,
format) |
|
|
|
|
|
ask_ident(defval,
format) |
|
|
|
|
|
|
PyObject *
|
ask_str(defval,
hist,
prompt)
Asks for a long text |
|
|
PyObject *
|
ask_text(max_size,
defval,
prompt)
Asks for a long text |
|
|
int
|
ask_yn(deflt,
format)
Display a dialog box and get choice from "Yes",
"No", "Cancel". |
|
|
bool
|
attach_action_to_menu(menupath,
name,
flags)
Attach a previously-registered action to the menu (
'ui_attach_action_to_menu' ).You should not change top level menu, or
the Edit,Plugins submenus If you want to modify the debugger menu, do
it at the ui_debugger_menu_change event (ida might destroy your menu
item if you do it elsewhere). |
|
|
bool
|
attach_action_to_popup(widget,
popup_handle,
name,
popuppath=None,
flags=0)
Insert a previously-registered action into the widget's popup menu (
'ui_attach_action_to_popup' ). |
|
|
bool
|
|
bool
|
attach_dynamic_action_to_popup(widget,
popup_handle,
desc,
popuppath=None,
flags=0)
Create & insert an action into the widget's popup menu (
'ui_attach_dynamic_action_to_popup' ). |
|
|
bool
|
banner(wait)
Show a banner dialog box ( 'ui_banner' ). |
|
|
|
beep(beep_type=beep_default)
Issue a beeping sound ( 'ui_beep' ). |
|
|
uint32
|
call_nav_colorizer(dict,
ea,
nbytes)
To be used with the IDA-provided colorizer, that is returned as
result of the first call to set_nav_colorizer(). |
|
|
bool
|
cancel_exec_request(req_id)
Try to cancel an asynchronous exec request ( 'ui_cancel_exec_request'
). |
|
|
|
|
PyObject *
|
|
|
|
PyObject *
|
choose_create_embedded_chobj(_self) |
|
|
ea_t
|
choose_entry(title)
Choose an entry point ( 'ui_choose' , 'chtype_entry' ). |
|
|
enum_t
|
choose_enum(title,
default_id)
Choose an enum ( 'ui_choose' , 'chtype_enum' ). |
|
|
enum_t
|
choose_enum_by_value(title,
default_id,
value,
nbytes)
Choose an enum, restricted by value & size ( 'ui_choose' ,
'chtype_enum_by_value_and_size' ). |
|
|
PyObject *
|
|
func_t *
|
choose_func(title,
default_ea)
Choose a function ( 'ui_choose' , 'chtype_func' ). |
|
|
TWidget *
|
|
PyObject *
|
|
ea_t
|
choose_name(title)
Choose a name ( 'ui_choose' , 'chtype_name' ). |
|
|
|
|
segment_t *
|
choose_segm(title,
default_ea)
Choose a segment ( 'ui_choose' , 'chtype_segm' ). |
|
|
sreg_range_t *
|
choose_srcp(title)
Choose a segment register change point ( 'ui_choose' , 'chtype_srcp'
). |
|
|
ea_t
|
choose_stkvar_xref(pfn,
mptr)
Choose an xref to a stack variable ( 'ui_choose' , 'chtype_name' ). |
|
|
struc_t *
|
choose_struc(title)
Choose a structure ( 'ui_choose' , 'chtype_segm' ). |
|
|
str
|
choose_til()
Choose a type library ( 'ui_choose' , 'chtype_idatil' ). |
|
|
ea_t
|
choose_xref(to)
Choose an xref to an address ( 'ui_choose' , 'chtype_xref' ). |
|
|
|
clear_refresh_request(mask) |
|
|
bool
|
close_chooser(title)
Close a non-modal chooser ( 'ui_close_chooser' ). |
|
|
|
close_widget(widget,
options)
Close widget ( 'ui_close_widget' , only gui version). |
|
|
|
clr_cancelled()
Clear "Cancelled" flag ( 'ui_clr_cancelled' ) |
|
|
TWidget *
|
create_code_viewer(custview,
flags=0,
parent=None)
Create a code viewer ( 'ui_create_code_viewer' ). |
|
|
TWidget *
|
create_empty_widget(title,
icon=-1)
Create an empty widget, serving as a container for custom user
widgets |
|
|
bool
|
create_menu(name,
label,
menupath=None)
Create a menu with the given name, label and optional position,
either in the menubar, or as a submenu. |
|
|
bool
|
create_toolbar(name,
label,
before=None,
flags=0)
Create a toolbar with the given name, label and optional position |
|
|
bool
|
custom_viewer_jump(v,
loc,
flags=0)
Append 'loc' to the viewer's history, and cause the viewer to display
it. |
|
|
bool
|
del_hotkey(pyctx)
Deletes a previously registered function hotkey |
|
|
bool
|
del_idc_hotkey(hotkey)
Delete IDC function hotkey ( 'ui_del_idckey' ). |
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
detach_action_from_popup(widget,
name)
Remove a previously-registered action, from the list of 'permanent'
context menu actions for this widget ( 'ui_detach_action_from_popup'
). |
|
|
bool
|
|
bool
|
|
|
display_widget(widget,
options,
dest_ctrl=None)
Display a widget, dock it if not done before |
|
|
str
|
ea2str(ea)
Convert linear address to UTF-8 string. |
|
|
bool
|
ea_viewer_history_push_and_jump(v,
ea,
x,
y,
lnnum)
Push current location in the history and jump to the given location (
'ui_ea_viewer_history_push_and_jump' ). |
|
|
bool
|
enable_chooser_item_attrs(chooser_caption,
enable)
Enable item-specific attributes for chooser items (
'ui_enable_chooser_item_attrs' ). |
|
|
|
error(format)
Display a fatal message in a message box and quit IDA |
|
|
int
|
execute_sync(py_callable,
reqf)
Executes a function in the context of the main thread. |
|
|
bool
|
|
TWidget *
|
find_widget(caption)
Find widget with the specified caption (only gui version) (
'ui_find_widget' ). |
|
|
|
formchgcbfa_close(p_fa,
close_normally) |
|
|
bool
|
formchgcbfa_enable_field(p_fa,
fid,
enable) |
|
|
PyObject *
|
formchgcbfa_get_field_value(p_fa,
fid,
ft,
sz) |
|
|
int
|
formchgcbfa_get_focused_field(p_fa) |
|
|
bool
|
formchgcbfa_move_field(p_fa,
fid,
x,
y,
w,
h) |
|
|
|
formchgcbfa_refresh_field(p_fa,
fid) |
|
|
bool
|
formchgcbfa_set_field_value(p_fa,
fid,
ft,
py_val) |
|
|
bool
|
formchgcbfa_set_focused_field(p_fa,
fid) |
|
|
bool
|
formchgcbfa_show_field(p_fa,
fid,
show) |
|
|
|
free_custom_icon(icon_id)
Frees an icon loaded with load_custom_icon() |
|
|
|
gen_disasm_text(text,
ea1,
ea2,
truncate_lines)
Generate disassembly text for a range. |
|
|
bool
|
|
bool
|
|
bool
|
|
str
|
|
str
|
|
bool
|
|
str
|
|
bool
|
|
TWidget *
|
|
bool
|
get_addon_info(id,
info)
Get info about a registered addon with a given product code. |
|
|
bool
|
|
PyObject *
|
get_chooser_data(chooser_caption,
n)
Get the text corresponding to the index N in the chooser data. |
|
|
void *
|
get_chooser_obj(chooser_caption)
Get the underlying object of the specified chooser (
'ui_get_chooser_obj' ).This is object is chooser-specific. |
|
|
char const *
|
get_curline()
Get current line from the disassemble window ( 'ui_get_curline' ). |
|
|
TWidget *
|
get_current_viewer()
Get current ida viewer (idaview or custom viewer) (
'ui_get_current_viewer' ) |
|
|
TWidget *
|
get_current_widget()
Get a pointer to the current widget ( 'ui_get_current_widget' ). |
|
|
bool
|
get_cursor()
Get the cursor position on the screen ( 'ui_get_cursor' ).coordinates
are 0-based |
|
|
char const *
|
|
bool
|
get_custom_viewer_location(out,
custom_viewer,
mouse=False)
Get the current location in a custom viewer (
'ui_get_custom_viewer_location' ). |
|
|
place_t
|
get_custom_viewer_place(custom_viewer,
mouse)
Get current place in a custom viewer ( 'ui_get_curplace' ).See also
the more complete 'get_custom_viewer_location()' |
|
|
bool
|
|
ea_t
|
|
PyObject *
|
get_highlight(v)
Returns the currently highlighted identifier and flags |
|
|
str
|
get_kernel_version()
Get IDA kernel version (in a string like "5.1"). |
|
|
ushort
|
get_key_code(keyname)
Get keyboard key code by its name ( 'ui_get_key_code' ) |
|
|
ea_t
|
get_navband_ea(pixel)
Translate the pixel position on the navigation band, into an address. |
|
|
int
|
|
int
|
get_opnum()
Get current operand number, -1 means no operand ( 'ui_get_opnum' ) |
|
|
str
|
|
bool
|
get_output_cursor()
Get coordinates of the output window's cursor (
'ui_get_output_cursor' ).coordinates are 0-basedthis function will
succeed even if the output window is not visible |
|
|
str
|
|
place_t
|
get_place_class(out_flags,
out_sdk_version,
id)
Get information about a previously-registered 'place_t' class. |
|
|
int
|
get_place_class_id(name)
Get the place class ID for the place that has been registered as
'name'. |
|
|
place_t
|
|
PyObject *
|
get_registered_actions()
Get a list of all currently-registered actions |
|
|
ea_t
|
get_screen_ea()
Get the address at the screen cursor ( 'ui_screenea' ) |
|
|
int
|
get_tab_size(path)
Get the size of a tab in spaces ( 'ui_get_tab_size' ). |
|
|
|
get_user_strlist_options(out) |
|
|
tcc_renderer_type_t
|
get_view_renderer_type(v)
Get the type of renderer currently in use in the given view (
'ui_get_renderer_type' ) |
|
|
tcc_place_type_t
|
get_viewer_place_type(viewer)
Get the type of 'place_t' instances a viewer uses & creates (
'ui_get_viewer_place_type' ). |
|
|
void *
|
|
str
|
|
twidget_type_t
|
get_widget_type(widget)
Get the type of the TWidget * ( 'ui_get_widget_type' ). |
|
|
void *
|
get_window_id(name=None)
Get the system-specific window ID (GUI version only) |
|
|
|
hide_wait_box()
Hide the "Please wait dialog box". |
|
|
|
|
int
|
install_command_interpreter(py_obj)
Install command line interpreter ( 'ui_install_cli' ) |
|
|
int
|
internal_register_place_class(tmplate,
flags,
owner,
sdk_version) |
|
|
bool
|
|
bool
|
|
bool
|
is_idaq()
Returns True or False depending if IDAPython is hosted by IDAQ |
|
|
bool
|
is_msg_inited()
Can we use msg() functions? |
|
|
bool
|
|
bool
|
|
bool
|
jumpto(ea,
opnum=-1,
uijmp_flags=0x0001)
jumpto(custom_viewer, place, x, y) -> bool |
|
|
|
load_custom_icon(file_name=None,
data=None,
format=None)
Loads a custom icon and returns an identifier that can be used with other APIs |
|
|
bool
|
load_dbg_dbginfo(path,
li=None,
base=BADADDR,
verbose=False)
Load debugging information from a file. |
|
|
ushort
|
lookup_key_code(key,
shift,
is_qt)
Get shortcut code previously created by 'ui_get_key_code' . |
|
|
PyObject *
|
msg(o)
Display an UTF-8 string in the message window |
|
|
|
msg_clear()
Clear the "Output window". |
|
|
PyObject *
|
msg_get_lines(count=-1)
Retrieve the last 'count' lines from the output window, in reverse
order (from most recent, to least recent) |
|
|
bool
|
msg_save(path)
Save the "Output window" contents into a file |
|
|
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
open_disasm_window(window_title,
ranges=None)
Open a disassembly view ( 'ui_open_builtin' ). |
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
open_frame_window(pfn,
offset)
Open the frame window for the given function ( 'ui_open_builtin' ). |
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
open_strings_window(ea,
selstart=BADADDR,
selend=BADADDR)
Open the strings window ( 'ui_open_builtin' ). |
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
TWidget *
|
|
|
open_url(url)
Open the given url ( 'ui_open_url' ) |
|
|
TWidget *
|
|
enumplace_t
|
place_t_as_enumplace_t(p) |
|
|
idaplace_t
|
|
simpleline_place_t
|
place_t_as_simpleline_place_t(p) |
|
|
structplace_t
|
place_t_as_structplace_t(p) |
|
|
|
plgform_close(py_link,
options) |
|
|
TWidget *
|
plgform_get_widget(py_link) |
|
|
PyObject *
|
|
bool
|
plgform_show(py_link,
py_obj,
caption,
options=WOPN_DP_TAB|WOPN_RESTORE) |
|
|
bool
|
|
size_t
|
|
size_t
|
|
int
|
py_load_custom_icon_data(data,
format) |
|
|
int
|
py_load_custom_icon_fn(filename) |
|
|
|
py_register_compiled_form(py_form) |
|
|
|
py_ss_restore_callback(err_msg,
userdata) |
|
|
|
py_unregister_compiled_form(py_form) |
|
|
bool
|
|
bool
|
|
bool
|
pyscv_add_line(py_this,
py_sl) |
|
|
PyObject *
|
pyscv_clear_lines(py_this) |
|
|
|
|
size_t
|
|
bool
|
pyscv_del_line(py_this,
nline) |
|
|
bool
|
pyscv_edit_line(py_this,
nline,
py_sl) |
|
|
PyObject *
|
pyscv_get_current_line(py_this,
mouse,
notags) |
|
|
PyObject *
|
pyscv_get_current_word(py_this,
mouse) |
|
|
PyObject *
|
pyscv_get_line(py_this,
nline) |
|
|
PyObject *
|
pyscv_get_pos(py_this,
mouse) |
|
|
PyObject *
|
pyscv_get_selection(py_this) |
|
|
TWidget *
|
pyscv_get_widget(py_this) |
|
|
PyObject *
|
pyscv_init(py_link,
title) |
|
|
bool
|
pyscv_insert_line(py_this,
nline,
py_sl) |
|
|
bool
|
pyscv_is_focused(py_this) |
|
|
bool
|
pyscv_jumpto(py_this,
ln,
x,
y) |
|
|
bool
|
pyscv_patch_line(py_this,
nline,
offs,
value) |
|
|
bool
|
|
bool
|
|
str
|
qcleanline(cmt_char='\0',
flags=((1 << 0)|(1 << 1))|(1 << 2))
Performs some cleanup operations to a line. |
|
|
bool
|
read_range_selection(v)
Get the address range for the selected range boundaries, this is the
convenient function for 'read_selection()' |
|
|
bool
|
read_selection(v,
p1,
p2)
Read the user selection, and store its information in p0 (from) and
p1 (to). |
|
|
bool
|
refresh_chooser(title)
Mark a non-modal custom chooser for a refresh ( 'ui_refresh_chooser'
). |
|
|
|
|
|
refresh_idaview()
Refresh marked windows ( 'ui_refreshmarked' ) |
|
|
|
|
|
refresh_navband(force)
Refresh navigation band if changed ( 'ui_refresh_navband' ). |
|
|
bool
|
|
int
|
|
bool
|
register_and_attach_to_menu(menupath,
name,
label,
shortcut,
flags,
handler,
owner)
Helper.You are not encouraged to use this, as it mixes flags for both
'register_action()' , and 'attach_action_to_menu()' .The only reason
for its existence is to make it simpler to port existing plugins to
the new actions API. |
|
|
PyObject *
|
|
|
remove_command_interpreter(cli_idx)
Remove command line interpreter ( 'ui_install_cli' ) |
|
|
|
|
|
|
|
|
PyObject *
|
|
|
set_cancelled()
Set "Cancelled" flag ( 'ui_set_cancelled' ) |
|
|
void *
|
set_code_viewer_handler(code_viewer,
handler_id,
handler_or_data)
Set a handler for a code viewer event (
'ui_set_custom_viewer_handler' ). |
|
|
bool
|
set_code_viewer_is_source(code_viewer)
Specify that the given code viewer is used to display source code (
'ui_set_custom_viewer_handler' ). |
|
|
|
set_code_viewer_line_handlers(code_viewer,
click_handler,
popup_handler,
dblclick_handler,
drawicon_handler,
linenum_handler)
Set handlers for code viewer line events. |
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
set_dock_pos(src_ctrl,
dest_ctrl,
orient,
left=0,
top=0,
right=0,
bottom=0)
Sets the dock orientation of a window relatively to another window. |
|
|
bool
|
set_highlight(viewer,
str,
flags)
Set the highlighted identifier in the viewer ( 'ui_set_highlight' ). |
|
|
PyObject *
|
|
|
|
|
show_wait_box(message)
Display a dialog box with "Please wait...". |
|
|
ea_t
|
str2ea(str,
screenEA=BADADDR)
Converts a string express to EA. |
|
|
char const *
|
strarray(array,
array_size,
code)
Find a line with the specified code in the 'strarray_t' array. |
|
|
bool
|
|
PyObject *
|
|
bool
|
textctrl_info_t_assign(_self,
other) |
|
|
PyObject *
|
|
bool
|
textctrl_info_t_destroy(py_obj) |
|
|
textctrl_info_t *
|
textctrl_info_t_get_clink(_self) |
|
|
PyObject *
|
textctrl_info_t_get_clink_ptr(_self) |
|
|
unsigned int
|
textctrl_info_t_get_flags(_self) |
|
|
unsigned int
|
textctrl_info_t_get_tabsize(_self) |
|
|
char const *
|
textctrl_info_t_get_text(_self) |
|
|
bool
|
textctrl_info_t_set_flags(_self,
flags) |
|
|
bool
|
textctrl_info_t_set_tabsize(_self,
tabsize) |
|
|
bool
|
textctrl_info_t_set_text(_self,
s) |
|
|
bool
|
ui_load_new_file(temp_file,
filename,
pli,
neflags,
ploaders)
Display a load file dialog and load file ( 'ui_load_file' ). |
|
|
bool
|
ui_run_debugger(dbgopts,
exename,
argc,
argv)
Load a debugger plugin and run the specified program ( 'ui_run_dbg'
). |
|
|
|
unmark_selection()
Unmark selection ( 'ui_unmarksel' ) |
|
|
bool
|
unregister_action(name)
Delete a previously-registered action ( 'ui_unregister_action' ). |
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
user_cancelled()
Test the ctrl-break flag ( 'ui_test_cancelled' ). |
|
|
|
warning(format)
Display a message in a message box |
|
|