X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.hxx;h=a0ba231884b485ab53319196d050eab385009451;hp=46a6676187261d68eac8ce38e4439d4149fc5223;hb=d51782798930575415d53300340ede3a004f1661;hpb=26c4bd3156495d5c6d18e51b06c19e8c6eea62d0 diff --git a/src/gui/Mainwindow.hxx b/src/gui/Mainwindow.hxx index 46a6676..a0ba231 100644 --- a/src/gui/Mainwindow.hxx +++ b/src/gui/Mainwindow.hxx @@ -1,19 +1,22 @@ -#include "include.hxx" - +#include +#include #include #include #include #include #include -#include "Binary.hxx" +#include "disassembler/Disassembler.hxx" +#include "widgets/BasicBlockWidget.hxx" class Mainwindow : public QMainWindow { Q_OBJECT public: - Mainwindow(); + Mainwindow(const std::string& filename = ""); private: - void populateSymbolInformation(const std::string& sym); + void openBinary(const std::string& filename); + + void populateSymbolInformation(Function * fun); QTextEdit *textEdit; QPushButton *quitButton; @@ -27,7 +30,8 @@ private: QAction *exitAction; QAction *openAction; - qtlldb::Binary * curBin; + std::shared_ptr disassembler; + std::map blocks; private slots: void quit(); void open();