X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FBasicBlockWidget.hxx;h=c351c3a69a28093762c600a079b7b7acca0de2ca;hp=8c86667f7c9a480e5a32d2eb8745dc50c49841aa;hb=8ba5b5b647e39ce4b337b6b56a246f293c511954;hpb=119d1aff7df9c3235177c3bf55bd618feb3c1519 diff --git a/src/gui/widgets/BasicBlockWidget.hxx b/src/gui/widgets/BasicBlockWidget.hxx index 8c86667..c351c3a 100644 --- a/src/gui/widgets/BasicBlockWidget.hxx +++ b/src/gui/widgets/BasicBlockWidget.hxx @@ -8,12 +8,14 @@ #include #include +class Mainwindow; + class BasicBlockWidget : public QGraphicsItem { public: - BasicBlockWidget(const QString& name, BasicBlock * block); + BasicBlockWidget(const QString& name, BasicBlock * block, Mainwindow * mainwindow); - void addItem(uint8_t* bytes, size_t num_bytes, const QString& line); + void addItem(uint8_t* bytes, size_t num_bytes, QString line, const QString& href); QRectF boundingRect() const { qreal penWidth = 1; @@ -58,12 +60,17 @@ public: return next; } + QString getName() const { + return name; + } private: uint32_t width, height; QGraphicsProxyWidget _proxy; + QGridLayout _layout; QLabel _widget; QString name; BasicBlock * block; + Mainwindow * mainwindow; std::vector previous; BasicBlockWidget* next[2]; };