From 0328331722401185967591561440651065055658 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 17 Feb 2021 15:46:30 -0500 Subject: Command Palette enhancements --- ui/viewframe.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'ui/viewframe.h') diff --git a/ui/viewframe.h b/ui/viewframe.h index 055e27c0..08d4add6 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -85,6 +85,8 @@ class BINARYNINJAUIAPI HistoryEntry : public BinaryNinja::RefCountObject QString getViewType() const { return m_viewType; } void setViewType(const QString& type) { m_viewType = type; } + virtual QString getDescription() const; + /*! Serialize to json representation \return Json representation of history entry. In the Python api, this must be a dict. @@ -392,12 +394,6 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget bool gestureEvent(QGestureEvent* event); void setView(QWidget* view); - /*! - Load one history entry from json representation - \param json Json rep of history entry - \return Entry, if successful, else nullptr - */ - BinaryNinja::Ref deserializeHistoryEntry(const Json::Value& json); bool tryMainSymbolsNavigation(); @@ -464,6 +460,14 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget void updateFonts(); void updateTheme(); + std::vector> getBackHistory(); + std::vector> getForwardHistory(); + /*! + Load one history entry from json representation + \param json Json rep of history entry + \return Entry, if successful, else nullptr + */ + BinaryNinja::Ref deserializeHistoryEntry(const Json::Value& json); void addHistoryEntry(); /*! Parse history entries from the raw data associated with a BinaryView, loading them into the back/forward -- cgit v1.3.1