#include "core/BasicBlock.hxx"
#include "core/InformationManager.hxx"
#include "core/events/RenameFunctionEvent.hxx"
+
+#include "widgets/FridaDock.hxx"
+#include "widgets/LogDock.hxx"
#include "widgets/ScriptingDock.hxx"
#include "widgets/CFGScene.hxx"
#include "widgets/FunctionWidget.hxx"
QMenu* interpretermenu = menuBar()->addMenu(tr("&Interpreter"));
- interpreter["GUILE"] = new GuileInterpreter;
- scripting = new ScriptingDock(interpreter["GUILE"], tr("Scripting"), this);
- scripting->setAllowedAreas(Qt::BottomDockWidgetArea);
- addDockWidget(Qt::BottomDockWidgetArea, scripting);
+ QPluginLoader* loader = new QPluginLoader("libguilePlugin", this);
+ if (!loader->load())
+ LOG4CXX_ERROR(logger, "Loading plugin failed: " << loader->errorString().toStdString());
+ interpreter["GUILE"] = qobject_cast<Interpreter*>(loader->instance());
+ fdock = new FridaDock(tr("Frida Dock"), this);
+
+ fdock->addTab(new LogDock(fdock), "Log");
+
+ fdock->addTab(new ScriptingDock(interpreter["GUILE"], fdock), "guile");
+ fdock->setAllowedAreas(Qt::BottomDockWidgetArea);
+ addDockWidget(Qt::BottomDockWidgetArea, fdock);
QAction* guileLoad = new QAction(tr("&GUILE"), this);
interpretermenu->addAction(guileLoad);
connect(guileLoad, &QAction::triggered,