Python idaapi.PluginForm() Examples

The following are 9 code examples of idaapi.PluginForm(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module idaapi , or try the search function .
Example #1
Source File: first.py    From FIRST-plugin-ida with GNU General Public License v2.0 6 votes vote down vote up
def accepted(fclass, dialog):
            '''Registered callback for accept dialog action.

            Args:
                fclass (:obj:`idaapi.PluginForm`): The plugin form part of
                dialog (:obj:`FIRSTUI.*`): A dialog box object.
            '''
            if (isinstance(dialog, FIRSTUI.Upload)
                    or isinstance(dialog, FIRSTUI.UploadAll)):
                FIRST.Callbacks.Upload(dialog)

            elif (isinstance(dialog, FIRSTUI.Check)
                    or isinstance(dialog, FIRSTUI.CheckAll)):
                FIRST.Callbacks.check(dialog)

            elif isinstance(dialog, FIRSTUI.Welcome):
                FIRST.Callbacks.welcome(dialog) 
Example #2
Source File: first.py    From FIRST-plugin-ida with GNU General Public License v2.0 5 votes vote down vote up
def tform_visible(self, form, hwnd):
                '''Shows the FIRST Welcome dialog box if required.'''
                if ((IDAW.BWN_DISASMS == IDAW.get_tform_type(form))
                    and FIRST.show_welcome):
                    parent = idaapi.PluginForm.FormToPyQtWidget(form)

                    welcome_dialog = FIRSTUI.Dialog(parent, FIRSTUI.Welcome)
                    welcome_dialog.registerSuccessCallback(FIRST.Callbacks.welcome)
                    welcome_dialog.show()
                    FIRST.show_welcome = False 
Example #3
Source File: plugin_gui.py    From heap-viewer with GNU General Public License v3.0 5 votes vote down vote up
def Show(self):
        return idaapi.PluginForm.Show(self, PLUGNAME, options = (
            idaapi.PluginForm.WOPN_TAB | idaapi.PluginForm.WCLS_CLOSE_LATER
        )) 
Example #4
Source File: ValueViewEx.py    From DIE with MIT License 5 votes vote down vote up
def Show(self):

        return idaapi.PluginForm.Show(self,
                               "Value View",
                               options=idaapi.PluginForm.FORM_PERSIST) 
Example #5
Source File: idataco.py    From idataco with GNU General Public License v3.0 5 votes vote down vote up
def Show(self):
        return idaapi.PluginForm.Show(self, "T.A.C.O.", options=idaapi.PluginForm.FORM_PERSIST) 
Example #6
Source File: watch.py    From WatchDBG-IDA with MIT License 5 votes vote down vote up
def __init__(self, watch):
        idaapi.PluginForm.__init__(self)
        self.watch = watch
        self.isclosed = False
        self.callbacks = {} 
Example #7
Source File: ui.py    From ida-minsc with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def form(cls, twidget):
            '''Return an IDA plugin form as a UI widget.'''
            ns = idaapi.PluginForm
            return ns.FormToPyQtWidget(twidget) 
Example #8
Source File: ui.py    From ida-minsc with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def form(cls, twidget):
            '''Return an IDA plugin form as a UI widget.'''
            ns = idaapi.PluginForm
            return ns.FormToPySideWidget(twidget) 
Example #9
Source File: gui.py    From hrdev with MIT License 5 votes vote down vote up
def __init__(self, config_main, config_theme, tools, lvars, window_name):
        idaapi.PluginForm.__init__(self)
        self.config_main = config_main
        self.config_theme = config_theme
        self.tools = tools
        self.lvars = lvars
        self.window_name = window_name
        self.hl = None

        self.interface = None
        self.parent = None
        return