diff options
| author | Brian Potchik <brian@vector35.com> | 2022-11-03 16:52:25 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-11-10 16:19:13 -0500 |
| commit | f647755655df27af2e5b55af12e19d06acb76930 (patch) | |
| tree | 24c66b9c866e3dcfb1390fdba0996767523adced /ui/viewframe.h | |
| parent | d67d5b63f3a17d10b7b7ca722b7192220447209a (diff) | |
Add ability to quiesce views not active in a ViewFrame.
Diffstat (limited to 'ui/viewframe.h')
| -rw-r--r-- | ui/viewframe.h | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/ui/viewframe.h b/ui/viewframe.h index 341caf2e..7be57ed1 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -121,6 +121,8 @@ class BINARYNINJAUIAPI View bool m_binaryDataNavigable = false; QPointer<TransformParameterDialog> m_transformParamDialog; + QTimer* m_updateTimer = nullptr; + bool writeDataToClipboard(const BinaryNinja::DataBuffer& data, bool binary, TransformRef xform); BinaryNinja::DataBuffer readDataFromClipboard(TransformRef xform); @@ -137,6 +139,10 @@ class BINARYNINJAUIAPI View View(); virtual ~View() {} + void enableRefreshTimer(QWidget* owner, int interval); + void setRefreshQuiesce(bool enable); + virtual void notifyRefresh() {}; + void setupView(QWidget* widget); virtual bool canAssemble() { return false; } @@ -244,16 +250,8 @@ class BINARYNINJAUIAPI View void forceSyncFromView(ViewFrame* frame = nullptr); virtual void clearRelatedHighlights() {} - virtual void setRelatedIndexHighlights(FunctionRef func, const std::set<size_t>& related) - { - (void)func; - (void)related; - } - virtual void setRelatedInstructionHighlights(FunctionRef func, const std::set<uint64_t>& related) - { - (void)func; - (void)related; - } + virtual void setRelatedIndexHighlights(FunctionRef func, const std::set<size_t>& related) { (void)func; (void)related; } + virtual void setRelatedInstructionHighlights(FunctionRef func, const std::set<uint64_t>& related) { (void)func; (void)related; } static void registerActions(); static void registerLateActions(); @@ -441,14 +439,11 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget } bool navigate(const QString& type, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); - bool navigate(const QString& type, const std::function<bool(View*)>& handler, bool updateInfo = true, - bool addHistoryEntry = true); + bool navigate(const QString& type, const std::function<bool(View*)>& handler, bool updateInfo = true, bool addHistoryEntry = true); bool navigate(BinaryViewRef data, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); bool navigateToFunction(FunctionRef func, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); - bool goToReference( - BinaryViewRef data, FunctionRef func, uint64_t source, uint64_t target, bool addHistoryEntry = true); - bool navigateToViewLocation( - BinaryViewRef data, const ViewLocation& viewLocation, bool addHistoryEntry = true, bool center = false); + bool goToReference(BinaryViewRef data, FunctionRef func, uint64_t source, uint64_t target, bool addHistoryEntry = true); + bool navigateToViewLocation(BinaryViewRef data, const ViewLocation& viewLocation, bool addHistoryEntry = true, bool center = false); bool navigateToHistoryEntry(BinaryNinja::Ref<HistoryEntry> entry); QString getTypeForView(QWidget* view) const; QString getDataTypeForView(const QString& type) const; |
