Package IDAscope :: Package idascope :: Package widgets :: Module WinApiWidget :: Class WinApiWidget
[hide private]
[frames] | no frames]

Class WinApiWidget

source code

PySide.QtGui.QWidget --+
                       |
                      WinApiWidget

A widget for allowing easy access to Windows API information. Front-end to the idascope.core.WinApiProvider.

Instance Methods [hide private]
 
__init__(self, parent) source code
 
set_availability(self)
Adjust the availability of this widget by checking if the keyword database has been loaded.
source code
 
register_hotkeys(self)
Register hotkeys with IDAscope in order to ease the use of this widget.
source code
 
createGui(self)
Create the GUI for this widget and all of its components.
source code
 
create_back_button(self)
Create a back button to allow easier browsing
source code
 
create_next_button(self)
Create a next button to allow easier browsing
source code
 
create_api_chooser_lineedit(self)
Create the QLineEdit used for selecting API names.
source code
 
create_search_button(self)
Create a search button besides the QLineEdit.
source code
 
create_browser_window(self)
Create the browser window with a QTextBrowser.
source code
 
update_completer_model(self)
Update the completer model used to make suggestions.
source code
 
populate_browser_window(self)
Populate the browser window based upon the entered term in the search line.
source code
 
onSearchButtonClicked(self)
Action that is performed when the search button is clicked.
source code
 
onBackButtonClicked(self)
Action that is performed when the search button is clicked.
source code
 
onNextButtonClicked(self)
Action that is performed when the search button is clicked.
source code
 
browserAnchorClicked(self, url)
Callback for the case an anchor (or any link) within the browser window is clicked.
source code
 
navigate(self, api_name)
A function exposed in order to allow the widget to be navigated to an arbitrary API name.
source code
 
navigate_to_highlighted_identifier(self)
A function exposed to allow navigating the widget to the currently highlighted identifier from the IDA view.
source code
 
update_history_button_state(self)
Update the button state (enabled/disabled) according to availability of history information from the WinApiProvider
source code
Method Details [hide private]

set_availability(self)

source code 

Adjust the availability of this widget by checking if the keyword database has been loaded. If the database has not been loaded, deactivate the search functionality.

create_api_chooser_lineedit(self)

source code 

Create the QLineEdit used for selecting API names. This includes a QCompleter to make suggestions based on the keyword database.

create_browser_window(self)

source code 

Create the browser window with a QTextBrowser. This display component is chosen over QWebView because WebKit is not included in the standard PySide installation as distributed with IDA Pro.

update_completer_model(self)

source code 

Update the completer model used to make suggestions. The model is only updated if anything is entered into the search line and the initial character differs from the previous initial character.

onSearchButtonClicked(self)

source code 

Action that is performed when the search button is clicked. This will populate the browser window.

onBackButtonClicked(self)

source code 

Action that is performed when the search button is clicked. This will populate the browser window.

onNextButtonClicked(self)

source code 

Action that is performed when the search button is clicked. This will populate the browser window.

browserAnchorClicked(self, url)

source code 

Callback for the case an anchor (or any link) within the browser window is clicked. This will fetch document content and anchor based on the URL of the link and update the browser window.

Parameters:
  • url (QUrl) - a URL as triggered by the callback

navigate(self, api_name)

source code 

A function exposed in order to allow the widget to be navigated to an arbitrary API name.

Parameters:
  • api_name (str) - the API name to navigate the widget to.