Add a new plugin system for the new API

This commit is contained in:
Jon Evans
2024-04-02 19:51:16 -04:00
parent f613cd1cb4
commit a3b6ab48a4
25 changed files with 1256 additions and 50 deletions
@@ -24,9 +24,11 @@
#include "pcb_scripting_tool.h"
#include <action_plugin.h>
#include <api/api_plugin_manager.h>
#include <kiface_ids.h>
#include <kiway.h>
#include <macros.h>
#include <pgm_base.h>
#include <python_scripting.h>
#include <tools/pcb_actions.h>
@@ -106,6 +108,9 @@ int SCRIPTING_TOOL::reloadPlugins( const TOOL_EVENT& aEvent )
return -1;
}
// TODO move this elsewhere when SWIG plugins are removed
Pgm().GetPluginManager().ReloadPlugins();
if( !m_isFootprintEditor )
{
// Action plugins can be modified, therefore the plugins menu must be updated: