Choose2 wrapper class. Some constants are defined in this class.
Please refer to kernwin.hpp for more information.
|
|
__init__(self,
title,
cols,
flags=0,
popup_names=None,
icon=-1,
x1=-1,
y1=-1,
x2=-1,
y2=-1,
deflt=-1,
embedded=False,
width=None,
height=None)
Constructs a chooser window. |
|
|
|
|
Embedded(self)
Creates an embedded chooser (as opposed to Show()) |
|
|
|
|
GetEmbSelection(self)
Returns the selection associated with an embedded chooser |
|
|
|
|
Show(self,
modal=False)
Activates or creates a chooser window |
|
|
|
|
Activate(self)
Activates a visible chooser |
|
|
|
|
Refresh(self)
Causes the refresh callback to trigger |
|
|
|
|
Close(self)
Closes the chooser |
|
|
|
|
AddCommand(self,
caption,
flags=_idaapi.CHOOSER_POPUP_MENU,
menu_index=-1,
icon=-1,
emb=None)
Adds a new chooser command Save the returned value and later use it
in the OnCommand handler |
|
|
|
|
OnClose(self)
Called when the window is being closed. |
|
|
|
|
OnGetLine(self,
n)
Called when the chooser window requires lines. |
|
|
|
|
|
|
|
OnEditLine(self,
n)
Called when an item is being edited. |
|
|
|
|
OnInsertLine(self)
Called when 'Insert' is selected either via the hotkey or popup menu. |
|
|
|
|
OnSelectLine(self,
n)
Called when a line is selected and then Ok or double click was
pressed |
|
|
|
|
|
|
|
OnDeleteLine(self,
n)
Called when a line is about to be deleted |
|
|
|
|
OnRefresh(self,
n)
Triggered when the 'Refresh' is called from the popup menu item. |
|
|
|
|
OnRefreshed(self)
Triggered when a refresh happens (for example due to column sorting) |
|
|
|
|
OnCommand(self,
n,
cmd_id)
Return int ; check add_chooser_command() |
|
|
|
|
OnGetIcon(self,
n)
Return icon number for a given item (or -1 if no icon is avail) |
|
|
|
|
OnGetLineAttr(self,
n)
Return list [bgcolor, flags=CHITEM_XXXX] or None; check
chooser_item_attrs_t |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|