diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-02-17 15:46:30 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2026-01-13 14:53:21 -0500 |
| commit | 0328331722401185967591561440651065055658 (patch) | |
| tree | a4fed674fe645a42d1b5153ad2b00c2e42bd802e /ui/viewframe.h | |
| parent | c68f8d48afb9b3e6cdac363c8a578a051ad6e21d (diff) | |
Command Palette enhancements
Diffstat (limited to 'ui/viewframe.h')
| -rw-r--r-- | ui/viewframe.h | 16 |
1 files changed, 10 insertions, 6 deletions
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<HistoryEntry> deserializeHistoryEntry(const Json::Value& json); bool tryMainSymbolsNavigation(); @@ -464,6 +460,14 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget void updateFonts(); void updateTheme(); + std::vector<BinaryNinja::Ref<HistoryEntry>> getBackHistory(); + std::vector<BinaryNinja::Ref<HistoryEntry>> getForwardHistory(); + /*! + Load one history entry from json representation + \param json Json rep of history entry + \return Entry, if successful, else nullptr + */ + BinaryNinja::Ref<HistoryEntry> deserializeHistoryEntry(const Json::Value& json); void addHistoryEntry(); /*! Parse history entries from the raw data associated with a BinaryView, loading them into the back/forward |
