diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-03-27 22:56:07 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-03-27 23:01:29 -0400 |
| commit | 962efd7abd475c1c40ae2892a89ac5b2c56e24a7 (patch) | |
| tree | bcc6c26d54e29b18ca93590ed990d3888a9f8b90 /ui/xreflist.h | |
| parent | 7cebd716bb4ceacda7fc7ba076c61893ad0e1dfb (diff) | |
Add prev/next cross reference functions
Diffstat (limited to 'ui/xreflist.h')
| -rw-r--r-- | ui/xreflist.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/xreflist.h b/ui/xreflist.h index 961e1238..63faf21a 100644 --- a/ui/xreflist.h +++ b/ui/xreflist.h @@ -63,6 +63,8 @@ class BINARYNINJAUIAPI CrossReferenceList: public QListView, public DockContextH QPoint m_hoverPos; uint64_t m_curRefTarget = 0; + bool m_navigating = false; + bool m_navToNextOrPrevStarted = false; protected: virtual void contextMenuEvent(QContextMenuEvent* event) override; @@ -72,16 +74,19 @@ protected: virtual bool shouldBeVisible(ViewFrame* frame) override; virtual void updateFonts() override; virtual void wheelEvent(QWheelEvent* e) override; + void goToReference(const QModelIndex& idx); private Q_SLOTS: - void goToReference(const QModelIndex& idx); void hoverTimerEvent(); + void referenceActivated(const QModelIndex& idx); public: CrossReferenceList(ViewFrame* view, BinaryViewRef data); virtual ~CrossReferenceList(); void setCurrentSelection(uint64_t begin, uint64_t end); + void navigateToNext(); + void navigateToPrev(); bool hasSelection(); }; |
