Cleanup some pgm_base.h includes

This commit is contained in:
Marek Roszko 2021-06-08 21:56:00 -04:00
parent 19faadf149
commit d946d6e68f
48 changed files with 14 additions and 41 deletions

View File

@ -36,7 +36,6 @@
#include <common.h> #include <common.h>
#include <paths.h> #include <paths.h>
#include <pgm_base.h>
#include "3d_plugin_manager.h" #include "3d_plugin_manager.h"
#include "plugins/3d/3d_plugin.h" #include "plugins/3d/3d_plugin.h"
#include "3d_cache/sg/scenegraph.h" #include "3d_cache/sg/scenegraph.h"

View File

@ -30,7 +30,6 @@
#include <kiface_i.h> #include <kiface_i.h>
#include <math/util.h> // for KiROUND #include <math/util.h> // for KiROUND
#include <kiway.h> #include <kiway.h>
#include <pgm_base.h>
#include <potracelib.h> #include <potracelib.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>
#include <wx/clipbrd.h> #include <wx/clipbrd.h>

View File

@ -21,6 +21,8 @@
*/ */
#include <env_paths.h> #include <env_paths.h>
#include <project.h>
#include <wx/filename.h>
static bool normalizeAbsolutePaths( const wxFileName& aPathA, const wxFileName& aPathB, static bool normalizeAbsolutePaths( const wxFileName& aPathA, const wxFileName& aPathB,
wxString* aResultPath ) wxString* aResultPath )

View File

@ -26,7 +26,6 @@
#include <core/optional.h> #include <core/optional.h>
#include <env_vars.h> #include <env_vars.h>
#include <pgm_base.h>
#include <settings/common_settings.h> #include <settings/common_settings.h>
#include <kiplatform/ui.h> #include <kiplatform/ui.h>

View File

@ -23,7 +23,6 @@
*/ */
#include <pgm_base.h>
#include <kiway_player.h> #include <kiway_player.h>
#include <kiway_express.h> #include <kiway_express.h>
#include <kiway.h> #include <kiway.h>

View File

@ -27,9 +27,9 @@
* @brief build the standard menu to show the list of available translations * @brief build the standard menu to show the list of available translations
*/ */
#include <pgm_base.h>
#include <id.h> #include <id.h>
#include <menus_helpers.h> #include <menus_helpers.h>
#include <pgm_base.h> // LanguagesList
#include <tool/tool_interactive.h> #include <tool/tool_interactive.h>
#include <tool/action_menu.h> #include <tool/action_menu.h>
#include <tool/conditional_menu.h> #include <tool/conditional_menu.h>

View File

@ -32,7 +32,6 @@
#include <kiface_ids.h> #include <kiface_ids.h>
#include <kiway.h> #include <kiway.h>
#include <macros.h> #include <macros.h>
#include <pgm_base.h>
#include <project.h> #include <project.h>
#include <project/project_file.h> #include <project/project_file.h>
#include <trace_helpers.h> #include <trace_helpers.h>

View File

@ -33,6 +33,7 @@
#include <dialog_shim.h> #include <dialog_shim.h>
#include <common.h> #include <common.h>
#include <env_paths.h> #include <env_paths.h>
#include <pgm_base.h>
#include <widgets/wx_grid.h> #include <widgets/wx_grid.h>
#include <widgets/grid_text_button_helpers.h> #include <widgets/grid_text_button_helpers.h>
#include <eda_doc.h> #include <eda_doc.h>

View File

@ -34,7 +34,6 @@
#include <sch_symbol.h> #include <sch_symbol.h>
#include <sch_reference_list.h> #include <sch_reference_list.h>
#include <schematic.h> #include <schematic.h>
#include <pgm_base.h>
#include <symbol_lib_table.h> #include <symbol_lib_table.h>
#include <trace_helpers.h> #include <trace_helpers.h>
#include <widgets/wx_grid.h> #include <widgets/wx_grid.h>

View File

@ -26,7 +26,6 @@
#include <sch_line.h> #include <sch_line.h>
#include <dialog_edit_line_style.h> #include <dialog_edit_line_style.h>
#include <dialogs/dialog_color_picker.h> #include <dialogs/dialog_color_picker.h>
#include <pgm_base.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <widgets/color_swatch.h> #include <widgets/color_swatch.h>

View File

@ -24,7 +24,6 @@
*/ */
#include <gestfich.h> #include <gestfich.h>
#include <pgm_base.h>
#include <sch_screen.h> #include <sch_screen.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <schematic.h> #include <schematic.h>

View File

@ -20,7 +20,6 @@
#include <sch_junction.h> #include <sch_junction.h>
#include <dialog_junction_props.h> #include <dialog_junction_props.h>
#include <pgm_base.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <widgets/color_swatch.h> #include <widgets/color_swatch.h>

View File

@ -27,7 +27,6 @@
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <dialog_lib_edit_text.h> #include <dialog_lib_edit_text.h>
#include <symbol_editor/symbol_editor_settings.h> #include <symbol_editor/symbol_editor_settings.h>
#include <pgm_base.h>
#include <tools/symbol_editor_drawing_tools.h> #include <tools/symbol_editor_drawing_tools.h>

View File

@ -26,7 +26,6 @@
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <settings/color_settings.h> #include <settings/color_settings.h>
#include <painter.h> #include <painter.h>
#include <pgm_base.h>
#include <eeschema_settings.h> #include <eeschema_settings.h>
#include "panel_eeschema_editing_options.h" #include "panel_eeschema_editing_options.h"

View File

@ -21,7 +21,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <pgm_base.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <bitmaps.h> #include <bitmaps.h>

View File

@ -30,7 +30,6 @@
#include <general.h> #include <general.h>
#include <kiway.h> #include <kiway.h>
#include <symbol_viewer_frame.h> #include <symbol_viewer_frame.h>
#include <pgm_base.h>
#include <sch_symbol.h> #include <sch_symbol.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <symbol_lib_table.h> #include <symbol_lib_table.h>

View File

@ -22,7 +22,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <pgm_base.h>
#include <eda_item.h> #include <eda_item.h>
#include <gr_text.h> #include <gr_text.h>
#include <kicad_string.h> #include <kicad_string.h>

View File

@ -28,7 +28,6 @@
#include <filehistory.h> #include <filehistory.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <menus_helpers.h> #include <menus_helpers.h>
#include <pgm_base.h>
#include <schematic.h> #include <schematic.h>
#include <tool/action_manager.h> #include <tool/action_manager.h>
#include <tool/action_menu.h> #include <tool/action_menu.h>

View File

@ -25,7 +25,6 @@
#include <netlist_exporter_base.h> #include <netlist_exporter_base.h>
#include <pgm_base.h>
#include <refdes_utils.h> #include <refdes_utils.h>
#include <class_library.h> #include <class_library.h>

View File

@ -35,6 +35,7 @@
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <sch_reference_list.h> #include <sch_reference_list.h>
#include <env_paths.h> #include <env_paths.h>
#include <pgm_base.h>
#include <wx/tokenzr.h> #include <wx/tokenzr.h>
#include <wx/regex.h> #include <wx/regex.h>

View File

@ -26,7 +26,6 @@
#include <common.h> // for ProcessExecute #include <common.h> // for ProcessExecute
#include <kicad_string.h> #include <kicad_string.h>
#include <gestfich.h> #include <gestfich.h>
#include <pgm_base.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <schematic.h> #include <schematic.h>
#include <reporter.h> #include <reporter.h>

View File

@ -29,7 +29,6 @@
#include <wx/log.h> #include <wx/log.h>
#include <wx/mstream.h> #include <wx/mstream.h>
#include <advanced_config.h> #include <advanced_config.h>
#include <pgm_base.h>
#include <trace_helpers.h> #include <trace_helpers.h>
#include <locale_io.h> #include <locale_io.h>
#include <sch_bitmap.h> #include <sch_bitmap.h>

View File

@ -32,7 +32,6 @@
#include <wx/textfile.h> #include <wx/textfile.h>
#include <wx/tokenzr.h> #include <wx/tokenzr.h>
#include <pgm_base.h>
#include <gr_text.h> #include <gr_text.h>
#include <kiway.h> #include <kiway.h>
#include <kicad_string.h> #include <kicad_string.h>

View File

@ -36,7 +36,6 @@
#include <id.h> #include <id.h>
#include <kicad_string.h> #include <kicad_string.h>
#include <kiway.h> #include <kiway.h>
#include <pgm_base.h>
#include <plotter.h> #include <plotter.h>
#include <project.h> #include <project.h>
#include <reporter.h> #include <reporter.h>

View File

@ -25,7 +25,6 @@
#include <bitmaps.h> #include <bitmaps.h>
#include <menus_helpers.h> #include <menus_helpers.h>
#include <pgm_base.h>
#include <tool/action_menu.h> #include <tool/action_menu.h>
#include <tool/tool_manager.h> #include <tool/tool_manager.h>
#include <tools/ee_actions.h> #include <tools/ee_actions.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <pgm_base.h>
#include <confirm.h> #include <confirm.h>
#include <kiway.h> #include <kiway.h>
#include <widgets/infobar.h> #include <widgets/infobar.h>

View File

@ -22,7 +22,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <pgm_base.h>
#include <gerbview.h> #include <gerbview.h>
#include <gerbview_frame.h> #include <gerbview_frame.h>
#include <gerbview_id.h> #include <gerbview_id.h>

View File

@ -23,7 +23,6 @@
*/ */
#include <wx/aui/aui.h> #include <wx/aui/aui.h>
#include <pgm_base.h>
#include <dcode.h> #include <dcode.h>
#include "dcode_selection_box.h" #include "dcode_selection_box.h"

View File

@ -26,7 +26,11 @@
#ifndef ENV_PATHS_H #ifndef ENV_PATHS_H
#define ENV_PATHS_H #define ENV_PATHS_H
#include <pgm_base.h> #include <wx/string.h>
#include <settings/environment.h>
class wxFileName;
class PROJECT;
/** /**
* Normalize a file path to an environmental variable, if possible. * Normalize a file path to an environmental variable, if possible.

View File

@ -27,7 +27,6 @@
#include <filehistory.h> #include <filehistory.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <menus_helpers.h> #include <menus_helpers.h>
#include <pgm_base.h>
#include <tool/action_manager.h> #include <tool/action_manager.h>
#include <tool/action_menu.h> #include <tool/action_menu.h>
#include <tool/tool_manager.h> #include <tool/tool_manager.h>

View File

@ -31,7 +31,6 @@
#include <pad.h> #include <pad.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pcbnew_settings.h> #include <pcbnew_settings.h>
#include <pgm_base.h>
#include <tool/tool_manager.h> #include <tool/tool_manager.h>
#include <tools/pcb_actions.h> #include <tools/pcb_actions.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>

View File

@ -40,6 +40,7 @@
#include <widgets/unit_binder.h> #include <widgets/unit_binder.h>
#include <plotters/plotters_pslike.h> #include <plotters/plotters_pslike.h>
#include <wx/dirdlg.h> #include <wx/dirdlg.h>
#include <pgm_base.h>
class DIALOG_EXPORT_SVG : public DIALOG_EXPORT_SVG_BASE class DIALOG_EXPORT_SVG : public DIALOG_EXPORT_SVG_BASE
{ {

View File

@ -37,6 +37,7 @@
#include <pad.h> #include <pad.h>
#include <track.h> #include <track.h>
#include <paths.h> #include <paths.h>
#include <project.h>
#include <dialog_gendrill.h> #include <dialog_gendrill.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>
#include <reporter.h> #include <reporter.h>

View File

@ -28,6 +28,7 @@
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pcbnew_settings.h> #include <pcbnew_settings.h>
#include <pcbplot.h> #include <pcbplot.h>
#include <pgm_base.h>
#include <gerber_jobfile_writer.h> #include <gerber_jobfile_writer.h>
#include <reporter.h> #include <reporter.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>

View File

@ -24,7 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <pgm_base.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <confirm.h> #include <confirm.h>
#include <gestfich.h> #include <gestfich.h>

View File

@ -31,7 +31,6 @@
#include <gestfich.h> #include <gestfich.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pcbnew_settings.h> #include <pcbnew_settings.h>
#include <pgm_base.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <reporter.h> #include <reporter.h>
#include <tools/board_editor_control.h> #include <tools/board_editor_control.h>

View File

@ -40,7 +40,6 @@
#include <locale_io.h> #include <locale_io.h>
#include <macros.h> #include <macros.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pgm_base.h>
#include <build_version.h> #include <build_version.h>
#include <math/util.h> // for KiROUND #include <math/util.h> // for KiROUND
#include <trigo.h> #include <trigo.h>

View File

@ -34,7 +34,6 @@
#include <kicad_string.h> #include <kicad_string.h>
#include <locale_io.h> #include <locale_io.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pgm_base.h>
#include <board.h> #include <board.h>
#include <footprint.h> #include <footprint.h>
#include <track.h> #include <track.h>

View File

@ -33,7 +33,6 @@
#include <locale_io.h> #include <locale_io.h>
#include <macros.h> #include <macros.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pgm_base.h>
#include <board.h> #include <board.h>
#include <board_design_settings.h> #include <board_design_settings.h>

View File

@ -30,7 +30,6 @@
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <board_design_settings.h> #include <board_design_settings.h>
#include <3d_viewer/eda_3d_viewer.h> #include <3d_viewer/eda_3d_viewer.h>
#include <pgm_base.h>
#include <widgets/msgpanel.h> #include <widgets/msgpanel.h>
#include <fp_lib_table.h> #include <fp_lib_table.h>
#include <kiface_i.h> #include <kiface_i.h>

View File

@ -32,7 +32,6 @@
#include <kiface_ids.h> #include <kiface_ids.h>
#include <kiway.h> #include <kiway.h>
#include <lib_id.h> #include <lib_id.h>
#include <pgm_base.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>
#include <widgets/progress_reporter.h> #include <widgets/progress_reporter.h>
#include <wx/textfile.h> #include <wx/textfile.h>

View File

@ -45,7 +45,6 @@ using namespace std::placeholders;
#include <macros.h> #include <macros.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pcbnew_settings.h> #include <pcbnew_settings.h>
#include <pgm_base.h>
#include <view/view_controls.h> #include <view/view_controls.h>
#include <widgets/lib_tree.h> #include <widgets/lib_tree.h>
#include <widgets/progress_reporter.h> #include <widgets/progress_reporter.h>

View File

@ -31,7 +31,6 @@
#include <menus_helpers.h> #include <menus_helpers.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pcbnew_id.h> #include <pcbnew_id.h>
#include <pgm_base.h>
#include <python_scripting.h> #include <python_scripting.h>
#include <tool/action_manager.h> #include <tool/action_manager.h>
#include <tool/actions.h> #include <tool/actions.h>

View File

@ -37,6 +37,7 @@
#include <drawing_sheet/ds_data_model.h> #include <drawing_sheet/ds_data_model.h>
#include <pcbplot.h> #include <pcbplot.h>
#include <pcb_painter.h> #include <pcb_painter.h>
#include <project.h>
#include <invoke_pcb_dialog.h> #include <invoke_pcb_dialog.h>
#include <widgets/appearance_controls.h> #include <widgets/appearance_controls.h>
#include <widgets/paged_dialog.h> #include <widgets/paged_dialog.h>

View File

@ -32,7 +32,6 @@
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>
#include <pad_shapes.h> #include <pad_shapes.h>
#include <pcb_plot_params.h> #include <pcb_plot_params.h>
#include <pgm_base.h>
#include <settings/color_settings.h> #include <settings/color_settings.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>

View File

@ -40,7 +40,6 @@
#include <kicad_string.h> #include <kicad_string.h>
#include <macros.h> #include <macros.h>
#include <paths.h> #include <paths.h>
#include <pgm_base.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <kiplatform/environment.h> #include <kiplatform/environment.h>

View File

@ -27,7 +27,6 @@
#include <view/view_group.h> #include <view/view_group.h>
#include <gal/graphics_abstraction_layer.h> #include <gal/graphics_abstraction_layer.h>
#include <pgm_base.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <pcb_painter.h> #include <pcb_painter.h>

View File

@ -41,7 +41,6 @@
* are really modified, and ones they are modified (changes, deletion or addition) * are really modified, and ones they are modified (changes, deletion or addition)
*/ */
#include <pgm_base.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <board.h> #include <board.h>