X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=src%2Fgui%2FMainwindow.hxx;h=ba0d8b4944529138ff78fbf2e9b995133c677dab;hb=ccde95277ce5e3929d09aef387c2f5956592d066;hp=40fa81d5f50de269927da297be9bbf6c37de8943;hpb=231dae075375e7d57982f5107b86294fbe726b33;p=frida%2Ffrida.git diff --git a/src/gui/Mainwindow.hxx b/src/gui/Mainwindow.hxx index 40fa81d..ba0d8b4 100644 --- a/src/gui/Mainwindow.hxx +++ b/src/gui/Mainwindow.hxx @@ -3,24 +3,34 @@ #include #include -#include + #include #include #include #include #include -#include "disassembler/Disassembler.hxx" -#include "widgets/BasicBlockWidget.hxx" -#include "widgets/ScriptingDock.hxx" -#include "core/InformationManager.hxx" +#include + +class Disassembler; +class Function; +class InformationManager; +class FunctionWidget; +class BasicBlockWidget; +class ScriptingDock; class Mainwindow : public QMainWindow { Q_OBJECT public: Mainwindow(InformationManager* mgr); + +public Q_SLOTS: + void switchMainPlaneToAddress(uint64_t); + void requestNewFunctionByAddress(uint64_t address); + private: void addFunction(Function* fun); + void setGlobalHotkeys(); QTextEdit *textEdit; QPushButton *quitButton; @@ -34,13 +44,24 @@ private: QAction *exitAction; QAction *openAction; + QAction *saveAction; std::map blocks; - std::set functions; + std::map functions; + std::map objects_list; + std::map objects_list_by_address; + InformationManager* manager; + log4cxx::LoggerPtr logger; + private Q_SLOTS: void quit(); void open(); + void save(); + void switchMainPlane(int); + void showListContextMenu(const QPoint&); + void requestNewFunction(); + void renameFunction(Function* function); }; #endif /* INCLUDE__Mainwindow_hxx_ */