IDAPython 9.0
Loading...
Searching...
No Matches
PluginForm Class Reference
Inheritance diagram for PluginForm:

Public Member Functions

 __init__ (self)
 
 Show (self, caption, options=0)
 
 OnCreate (self, form)
 
 OnClose (self, form)
 
 Close (self, options)
 
 GetWidget (self)
 

Static Public Member Functions

 TWidgetToQtPythonWidget (tw, ctx=sys.modules['__main__'])
 
 QtWidgetToTWidget (w, ctx=sys.modules['__main__'])
 
 TWidgetToPySideWidget (tw, ctx=sys.modules['__main__'])
 

Static Public Attributes

int WOPN_MDI = 1
 
int WOPN_TAB = 2
 
 WOPN_RESTORE = _ida_kernwin.WOPN_RESTORE
 
int WOPN_ONTOP = 8
 
int WOPN_MENU = 16
 
int WOPN_CENTERED = 32
 
 WOPN_PERSIST = _ida_kernwin.WOPN_PERSIST
 
 WOPN_DP_LEFT = _ida_kernwin.WOPN_DP_LEFT
 
 WOPN_DP_TOP = _ida_kernwin.WOPN_DP_TOP
 
 WOPN_DP_RIGHT = _ida_kernwin.WOPN_DP_RIGHT
 
 WOPN_DP_BOTTOM = _ida_kernwin.WOPN_DP_BOTTOM
 
 WOPN_DP_INSIDE = _ida_kernwin.WOPN_DP_INSIDE
 
 WOPN_DP_TAB = _ida_kernwin.WOPN_DP_TAB
 
 WOPN_DP_BEFORE = _ida_kernwin.WOPN_DP_BEFORE
 
 WOPN_DP_FLOATING = _ida_kernwin.WOPN_DP_FLOATING
 
 WOPN_DP_SZHINT = _ida_kernwin.WOPN_DP_SZHINT
 
 WOPN_DP_INSIDE_BEFORE = _ida_kernwin.WOPN_DP_INSIDE_BEFORE
 
 WOPN_DP_TAB_BEFORE = _ida_kernwin.WOPN_DP_TAB_BEFORE
 
dict WOPN_CREATE_ONLY = {}
 
str VALID_CAPSULE_NAME = b'$valid$'
 
 TWidgetToPyQtWidget = TWidgetToQtPythonWidget
 
 FormToPyQtWidget = TWidgetToQtPythonWidget
 
 FormToPySideWidget = TWidgetToPySideWidget
 
 WCLS_SAVE = _ida_kernwin.WCLS_SAVE
 
 WCLS_NO_CONTEXT = _ida_kernwin.WCLS_NO_CONTEXT
 
 WCLS_DONT_SAVE_SIZE = _ida_kernwin.WCLS_DONT_SAVE_SIZE
 
 WCLS_DELETE_LATER = _ida_kernwin.WCLS_DELETE_LATER
 
 WCLS_CLOSE_LATER = WCLS_DELETE_LATER
 

Static Protected Member Functions

 _ensure_widget_deps (ctx)
 

Detailed Description

PluginForm class.

This form can be used to host additional controls. Please check the PyQt example.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)
 

Member Function Documentation

◆ _ensure_widget_deps()

_ensure_widget_deps ( ctx)
staticprotected

◆ Close()

Close ( self,
options )
Closes the form.

@param options: Close options (WCLS_SAVE, WCLS_NO_CONTEXT, ...)

@return: None

◆ GetWidget()

GetWidget ( self)
Return the TWidget underlying this view.

@return: The TWidget underlying this view, or None.

◆ OnClose()

OnClose ( self,
form )
Called when the plugin form is closed

@return: None

◆ OnCreate()

OnCreate ( self,
form )
This event is called when the plugin form is created.
The programmer should populate the form when this event is triggered.

@return: None

◆ QtWidgetToTWidget()

QtWidgetToTWidget ( w,
ctx = sys.modules['__main__'] )
static
Convert a QWidget to a TWidget* to be used by IDA

@param ctx: Context. Reference to a module that already imported SIP and QtWidgets modules

◆ Show()

Show ( self,
caption,
options = 0 )
Creates the form if not was not created or brings to front if it was already created

@param caption: The form caption
@param options: One of PluginForm.WOPN_ constants

◆ TWidgetToPySideWidget()

TWidgetToPySideWidget ( tw,
ctx = sys.modules['__main__'] )
static
Use this method to convert a TWidget* to a QWidget to be used by PySide

@param ctx: Context. Reference to a module that already imported QtWidgets module

◆ TWidgetToQtPythonWidget()

TWidgetToQtPythonWidget ( tw,
ctx = sys.modules['__main__'] )
static
Convert a TWidget* to a QWidget to be used by the Qt Python bindings

Member Data Documentation

◆ FormToPyQtWidget

FormToPyQtWidget = TWidgetToQtPythonWidget
static

◆ FormToPySideWidget

FormToPySideWidget = TWidgetToPySideWidget
static

◆ TWidgetToPyQtWidget

TWidgetToPyQtWidget = TWidgetToQtPythonWidget
static

◆ VALID_CAPSULE_NAME

str VALID_CAPSULE_NAME = b'$valid$'
static

◆ WCLS_CLOSE_LATER

WCLS_CLOSE_LATER = WCLS_DELETE_LATER
static

◆ WCLS_DELETE_LATER

WCLS_DELETE_LATER = _ida_kernwin.WCLS_DELETE_LATER
static

◆ WCLS_DONT_SAVE_SIZE

WCLS_DONT_SAVE_SIZE = _ida_kernwin.WCLS_DONT_SAVE_SIZE
static

◆ WCLS_NO_CONTEXT

WCLS_NO_CONTEXT = _ida_kernwin.WCLS_NO_CONTEXT
static

◆ WCLS_SAVE

WCLS_SAVE = _ida_kernwin.WCLS_SAVE
static

◆ WOPN_CENTERED

int WOPN_CENTERED = 32
static

◆ WOPN_CREATE_ONLY

dict WOPN_CREATE_ONLY = {}
static

◆ WOPN_DP_BEFORE

WOPN_DP_BEFORE = _ida_kernwin.WOPN_DP_BEFORE
static

◆ WOPN_DP_BOTTOM

WOPN_DP_BOTTOM = _ida_kernwin.WOPN_DP_BOTTOM
static

◆ WOPN_DP_FLOATING

WOPN_DP_FLOATING = _ida_kernwin.WOPN_DP_FLOATING
static

◆ WOPN_DP_INSIDE

WOPN_DP_INSIDE = _ida_kernwin.WOPN_DP_INSIDE
static

◆ WOPN_DP_INSIDE_BEFORE

WOPN_DP_INSIDE_BEFORE = _ida_kernwin.WOPN_DP_INSIDE_BEFORE
static

◆ WOPN_DP_LEFT

WOPN_DP_LEFT = _ida_kernwin.WOPN_DP_LEFT
static

◆ WOPN_DP_RIGHT

WOPN_DP_RIGHT = _ida_kernwin.WOPN_DP_RIGHT
static

◆ WOPN_DP_SZHINT

WOPN_DP_SZHINT = _ida_kernwin.WOPN_DP_SZHINT
static

◆ WOPN_DP_TAB

WOPN_DP_TAB = _ida_kernwin.WOPN_DP_TAB
static

◆ WOPN_DP_TAB_BEFORE

WOPN_DP_TAB_BEFORE = _ida_kernwin.WOPN_DP_TAB_BEFORE
static

◆ WOPN_DP_TOP

WOPN_DP_TOP = _ida_kernwin.WOPN_DP_TOP
static

◆ WOPN_MDI

int WOPN_MDI = 1
static

◆ WOPN_MENU

int WOPN_MENU = 16
static

◆ WOPN_ONTOP

int WOPN_ONTOP = 8
static

◆ WOPN_PERSIST

WOPN_PERSIST = _ida_kernwin.WOPN_PERSIST
static

◆ WOPN_RESTORE

WOPN_RESTORE = _ida_kernwin.WOPN_RESTORE
static

◆ WOPN_TAB

int WOPN_TAB = 2
static

The documentation for this class was generated from the following file: