From 962efd7abd475c1c40ae2892a89ac5b2c56e24a7 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Wed, 27 Mar 2019 22:56:07 -0400 Subject: Add prev/next cross reference functions --- ui/xreflist.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ui/xreflist.h') 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(); }; -- cgit v1.3.1