From 307fe4be9208636e54f90a24f6d0deb56512069d Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 8 Oct 2020 04:15:52 -0400 Subject: Per-character text selection --- ui/flowgraphwidget.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui/flowgraphwidget.h') diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h index 7a26f5a8..7407e00c 100644 --- a/ui/flowgraphwidget.h +++ b/ui/flowgraphwidget.h @@ -60,6 +60,9 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View, size_t instrIndex; size_t lineIndexForAddress; size_t tokenIndex; + size_t characterIndex; + + bool operator<(const CursorPosition& other) const; }; BinaryViewRef m_data; @@ -246,6 +249,11 @@ public: void paintMiniGraphAndViewport(QWidget* owner); bool paintMiniGraph(QWidget* owner, QPainter& p); + void paintNode(QPainter& p, FlowGraphNodeRef& node, int minY, int maxY); + void paintHighlight(QPainter& p, const std::vector& lines, + int nodeX, int nodeWidth, int x, int y, size_t line, int tagIndent); + void paintEdge(QPainter& p, const FlowGraphNodeRef& node, const BinaryNinja::FlowGraphEdge& edge); + void showAddress(uint64_t addr, bool select = false); void showTopNode(); void showNode(FlowGraphNodeRef node); -- cgit v1.3.1