MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / __init__

Method __init__

python/examples/triage/exports.py:108–132  ·  view source on GitHub ↗
(self, parent, view, data)

Source from the content-addressed store, hash-verified

106
107class ExportsTreeView(QTreeView, FilterTarget):
108 def __init__(self, parent, view, data):
109 QTreeView.__init__(self, parent)
110 FilterTarget.__init__(self)
111 self.data = data
112 self.parent = parent
113 self.view = view
114
115 # Allow view-specific shortcuts when exports are focused
116 self.actionHandler = UIActionHandler()
117 self.actionHandler.setupActionHandler(self)
118 self.actionHandler.setActionContext(lambda: self.view.actionContext())
119
120 self.model = GenericExportsModel(self.data)
121 self.setModel(self.model)
122 self.setRootIsDecorated(False)
123 self.setUniformRowHeights(True)
124 self.setSortingEnabled(True)
125 self.sortByColumn(0, Qt.AscendingOrder)
126 if self.model.ordinal_col is not None:
127 self.setColumnWidth(self.model.ordinal_col, 55)
128
129 self.setFont(binaryninjaui.getMonospaceFont(self))
130
131 self.selectionModel().currentChanged.connect(self.exportSelected)
132 self.doubleClicked.connect(self.exportDoubleClicked)
133
134 def exportSelected(self, cur, prev):
135 sym = self.model.getSymbol(cur)

Callers

nothing calls this directly

Calls 4

GenericExportsModelClass · 0.70
UIActionHandlerClass · 0.50
__init__Method · 0.45
connectMethod · 0.45

Tested by

no test coverage detected