X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FCFGScene.hxx;h=7cdc6d8fde2908f2911e7fd7b9bc97d81fa9ed94;hp=b343381f6e97fc99165af834badf04ff429af9af;hb=d7319bb99ab84eec0c3608356bada2e5334e3e87;hpb=9e283567ac56a6433e832d0fa38cf534a0cb8f9f diff --git a/src/gui/widgets/CFGScene.hxx b/src/gui/widgets/CFGScene.hxx index b343381..7cdc6d8 100644 --- a/src/gui/widgets/CFGScene.hxx +++ b/src/gui/widgets/CFGScene.hxx @@ -1,7 +1,7 @@ #ifndef INCLUDE__CFGScene_hxx #define INCLUDE__CFGScene_hxx -#include "gui/qt.hxx" +#include "qt.hxx" #include "BasicBlockWidget.hxx" #include @@ -9,7 +9,7 @@ class CFGScene : public QGraphicsScene { public: CFGScene(QWidget * parent = 0) - : QGraphicsScene(parent) {} + : QGraphicsScene(parent), highlightedBlock(NULL) {} // Take special care when adding a BasicBlock to the scene as we // need to draw arrows for it later on @@ -19,12 +19,16 @@ public: } virtual void drawBackground(QPainter* painter, const QRectF & rect); + void highlightBlock(BasicBlockWidget* block); private: std::vector widgets; - void drawLine(QPainter* painter, BasicBlockWidget * from, BasicBlockWidget * to, int8_t side = 0); + void drawLine(QPainter* painter, BasicBlockWidget * from, BasicBlockWidget * to, + int8_t side = 0); void spaceWidgets(); + + BasicBlockWidget* highlightedBlock; }; #endif