X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.hxx;h=7f6d63e5c04d2d7e80f596eed4a26ca62d3aa025;hp=adfe71e47a3fc0803b23245bca3498e95dc8cc5b;hb=9254f26b4470c13bed9f6c18c86bde98d809b64c;hpb=0f91922e40640e00f1208aee5d8c968a698c5d31 diff --git a/src/gui/Mainwindow.hxx b/src/gui/Mainwindow.hxx index adfe71e..7f6d63e 100644 --- a/src/gui/Mainwindow.hxx +++ b/src/gui/Mainwindow.hxx @@ -1,4 +1,8 @@ +#ifndef INCLUDE__Mainwindow_hxx_ +#define INCLUDE__Mainwindow_hxx_ + #include +#include #include #include #include @@ -6,13 +10,17 @@ #include #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; @@ -22,12 +30,16 @@ private: QListWidget * listWidget; QStackedWidget * stackedWidget; QDockWidget * dockWidget; + ScriptingDock * scripting; QAction *exitAction; QAction *openAction; std::shared_ptr disassembler; -private slots: + std::map blocks; +private Q_SLOTS: void quit(); void open(); }; + +#endif /* INCLUDE__Mainwindow_hxx_ */