]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/widgets/BasicBlockWidget.hxx
Make GUI Widget move Comments through the backend properly
[frida/frida.git] / src / gui / widgets / BasicBlockWidget.hxx
index 22bc22021c43bd581a5bfa5af1b198451da24317..215086d760b2cc7a03fb692fd75b71dc34b7790e 100644 (file)
@@ -8,16 +8,14 @@
 #include <array>
 #include <memory>
 #include <log4cxx/logger.h>
-#include <list>
 
 #include "disassembler/Instruction.hxx"
 
 class Mainwindow;
 class CustomQGraphicsTextItem;
-
 class BasicBlock;
-
 class RenameFunctionEvent;
+class ChangeCommentEvent;
 
 class BasicBlockWidget : public QObject, public QGraphicsItem
 {
@@ -51,13 +49,15 @@ public:
 private:
        void updateFunctionName(RenameFunctionEvent* event);
        void populateWidget();
+       void changeCommentHandler(ChangeCommentEvent* event);
+       QString formatComments(Instruction* inst);
 
        uint32_t width, height;
        QString name;
        std::unique_ptr<QGraphicsTextItem> _widget;
        QTextTable* _table;
        BasicBlock* block;
-       std::list<Instruction> instructions;
+       std::vector<Instruction> instructions;
        Mainwindow* mainwindow;
        std::vector<BasicBlockWidget*> previous;
        BasicBlockWidget* next[2];