diff options
| author | Xusheng <xusheng@vector35.com> | 2020-11-16 17:51:46 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-02-17 12:05:47 +0800 |
| commit | d9b1df165f9daad6a5229718ecd0ee50a5ef6bf1 (patch) | |
| tree | 6307b8c16c80f8203bdb96ebc3d54a8d9f10b3bf /ui/typeview.h | |
| parent | b651141704a555cf0b6c53152ab0f70d011ec8af (diff) | |
add support for type xref and variable xref
Diffstat (limited to 'ui/typeview.h')
| -rw-r--r-- | ui/typeview.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/typeview.h b/ui/typeview.h index bc2fcc10..23985c59 100644 --- a/ui/typeview.h +++ b/ui/typeview.h @@ -157,6 +157,7 @@ public: virtual BinaryViewRef getData() override { return m_data; } virtual uint64_t getCurrentOffset() override; virtual BNAddressRange getSelectionOffsets() override; + virtual SelectionInfoForXref getSelectionForXref() override; virtual void setSelectionOffsets(BNAddressRange range) override; virtual bool navigate(uint64_t) override; @@ -164,7 +165,8 @@ public: virtual void setNavigationMode(std::string mode) override; virtual std::vector<std::string> getNavigationModes() override; - bool navigateToType(const std::string& name); + uint64_t findMatchingLine(const BinaryNinja::QualifiedName& name, uint64_t offset); + bool navigateToType(const std::string& name, uint64_t offset = 0); virtual void OnTypeDefined(BinaryNinja::BinaryView* view, const BinaryNinja::QualifiedName& name, BinaryNinja::Type* type) override; @@ -196,6 +198,8 @@ public: static void registerActions(); + virtual ArchitectureRef getOrAskForArchitecture(); + protected: virtual void resizeEvent(QResizeEvent* event) override; virtual void paintEvent(QPaintEvent* event) override; @@ -222,6 +226,7 @@ private Q_SLOTS: void createStructure(); void createUnion(); void setStructureSize(); + void addUserXref(); void updateLineNumberAreaWidth(size_t lineCount); }; |
