diff options
| author | Peter LaFosse <peter@vector35.com> | 2024-10-21 10:55:45 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2024-10-23 20:37:38 -0400 |
| commit | 9aa54ef6723ad06b019c02c22b574516dca6289b (patch) | |
| tree | e0b420a8a609f4644607cad7f6170cf36ee26771 /ui | |
| parent | c446e3acbcb0dc750a840551fa7cb54c184e7acb (diff) | |
Linear view function regions collapse
Update collapse code to support PseudoC
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/linearview.h | 1 | ||||
| -rw-r--r-- | ui/render.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ui/linearview.h b/ui/linearview.h index 1c470cb6..05700e70 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -202,6 +202,7 @@ class BINARYNINJAUIAPI LinearView : public QAbstractScrollArea, public View, pub bool m_cursorAscii; bool m_tokenSelection = false; HighlightTokenState m_highlight; + bool m_displayCollapseIndicators = false; uint64_t m_navByRefTarget; bool m_navByRef = false; bool m_doubleClickLatch = false; diff --git a/ui/render.h b/ui/render.h index 39393e4c..0137f8a5 100644 --- a/ui/render.h +++ b/ui/render.h @@ -122,7 +122,7 @@ class BINARYNINJAUIAPI RenderContext QPainter& p, BNLinearDisassemblyLineType type, const QRect& rect, const QRect& dirtyRect, int gutterWidth); int drawDisassemblyLine(QPainter& p, int left, int top, const std::vector<BinaryNinja::InstructionTextToken>& tokens, HighlightTokenState& highlight, - bool highlightOnly = false) const; + bool highlightOnly = false, bool renderCollapseIndicator = false) const; void drawHexEditorLine(QPainter& p, int left, int top, const HexEditorHighlightState& highlight, BinaryViewRef view, uint64_t lineStartAddr, size_t cols, size_t firstCol, size_t count, bool cursorVisible, bool cursorAscii, |
