X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.hxx;h=9ce1b6bdbb8350e426bc95ff0adaf2d09390464d;hp=46a6676187261d68eac8ce38e4439d4149fc5223;hb=0ce5b46ac41f3ac806ee1828eb121dd196bf1251;hpb=26c4bd3156495d5c6d18e51b06c19e8c6eea62d0 diff --git a/src/gui/Mainwindow.hxx b/src/gui/Mainwindow.hxx index 46a6676..9ce1b6b 100644 --- a/src/gui/Mainwindow.hxx +++ b/src/gui/Mainwindow.hxx @@ -1,19 +1,23 @@ -#include "include.hxx" - +#include +#include #include #include #include #include #include -#include "Binary.hxx" +#include "disassembler/Disassembler.hxx" +#include "widgets/BasicBlockWidget.hxx" +#include "widgets/ScriptingDock.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; @@ -23,12 +27,14 @@ private: QListWidget * listWidget; QStackedWidget * stackedWidget; QDockWidget * dockWidget; + ScriptingDock * scripting; QAction *exitAction; QAction *openAction; - qtlldb::Binary * curBin; -private slots: + std::shared_ptr disassembler; + std::map blocks; +private Q_SLOTS: void quit(); void open(); };