X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.hxx;h=7f6d63e5c04d2d7e80f596eed4a26ca62d3aa025;hp=34abc3a16a72e2f97da83a77871380f2fef7bd78;hb=9254f26b4470c13bed9f6c18c86bde98d809b64c;hpb=0454d885d5994f4d6b765864b77998137dad7204 diff --git a/src/gui/Mainwindow.hxx b/src/gui/Mainwindow.hxx index 34abc3a..7f6d63e 100644 --- a/src/gui/Mainwindow.hxx +++ b/src/gui/Mainwindow.hxx @@ -1,17 +1,26 @@ +#ifndef INCLUDE__Mainwindow_hxx_ +#define INCLUDE__Mainwindow_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; @@ -21,12 +30,16 @@ 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(); }; + +#endif /* INCLUDE__Mainwindow_hxx_ */