diff --git a/include/api/api_plugin.h b/include/api/api_plugin.h index 6f7281e8c1..36d14b9bb3 100644 --- a/include/api/api_plugin.h +++ b/include/api/api_plugin.h @@ -29,6 +29,7 @@ #include #include +#include #include @@ -52,17 +53,6 @@ enum class PLUGIN_RUNTIME_TYPE }; -enum class PLUGIN_ACTION_SCOPE -{ - INVALID, - PCB, - SCHEMATIC, - FOOTPRINT, - SYMBOL, - PROJECT_MANAGER -}; - - struct PLUGIN_RUNTIME { bool FromJson( const nlohmann::json& aJson ); diff --git a/include/api/plugin_action_scope.h b/include/api/plugin_action_scope.h new file mode 100644 index 0000000000..77b758ce64 --- /dev/null +++ b/include/api/plugin_action_scope.h @@ -0,0 +1,36 @@ +/* + * This program source code file is part of KiCad, a free EDA CAD application. + * + * Copyright (C) 2024 Jon Evans + * Copyright The KiCad Developers, see AUTHORS.txt for contributors. + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#ifndef KICAD_PLUGIN_ACTION_SCOPE_H +#define KICAD_PLUGIN_ACTION_SCOPE_H + + +enum class PLUGIN_ACTION_SCOPE +{ + INVALID, + PCB, + SCHEMATIC, + FOOTPRINT, + SYMBOL, + PROJECT_MANAGER +}; + + +#endif // KICAD_PLUGIN_ACTION_SCOPE_H diff --git a/include/eda_draw_frame.h b/include/eda_draw_frame.h index 8966a8fb0e..e49a199ab4 100644 --- a/include/eda_draw_frame.h +++ b/include/eda_draw_frame.h @@ -26,7 +26,7 @@ #ifndef DRAW_FRAME_H_ #define DRAW_FRAME_H_ -#include +#include #include #include #include @@ -38,6 +38,7 @@ #include struct EDA_SEARCH_DATA; +struct PLUGIN_ACTION; class LIB_TREE; class EDA_ITEM; class wxSingleInstanceChecker; diff --git a/include/pcb_base_frame.h b/include/pcb_base_frame.h index 918a29de4a..b68abcd816 100644 --- a/include/pcb_base_frame.h +++ b/include/pcb_base_frame.h @@ -37,6 +37,7 @@ #include #include +#include #include /* Forward declarations of classes. */