From 7faee5eda57f152ccd71df55e5d50f6c82793cae Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Thu, 3 Jun 2021 07:49:49 -0400 Subject: [PATCH] Stop salt the eart with wxhtml.h --- common/dialog_shim.cpp | 1 + common/dialogs/dialog_print_generic.cpp | 2 ++ common/dialogs/panel_setup_severities.cpp | 1 + common/widgets/grid_color_swatch_helpers.cpp | 1 + common/widgets/grid_text_button_helpers.cpp | 1 + common/widgets/widget_hotkey_list.cpp | 1 + cvpcb/cvpcb_mainframe.cpp | 1 + cvpcb/display_footprints_frame.cpp | 1 + cvpcb/toolbars_cvpcb.cpp | 1 + eeschema/dialogs/dialog_bus_manager.cpp | 1 + eeschema/dialogs/dialog_choose_symbol.cpp | 12 ++++++++++++ eeschema/dialogs/dialog_choose_symbol.h | 6 ++++-- eeschema/dialogs/dialog_netlist.cpp | 3 ++- eeschema/dialogs/dialog_print_using_printer.cpp | 1 + eeschema/dialogs/panel_setup_pinmap.cpp | 1 + eeschema/symbol_viewer_frame.cpp | 1 + eeschema/widgets/symbol_preview_widget.cpp | 1 + include/eda_base_frame.h | 1 - kicad/dialogs/panel_kicad_launcher.cpp | 1 + kicad/tools/kicad_manager_control.cpp | 1 + pagelayout_editor/pl_editor_frame.cpp | 6 ++++++ pagelayout_editor/pl_editor_frame.h | 6 ++---- pagelayout_editor/toolbars_pl_editor.cpp | 1 + pcbnew/dialogs/dialog_choose_footprint.cpp | 1 + pcbnew/dialogs/dialog_choose_footprint.h | 1 + pcbnew/dialogs/dialog_constraints_reporter.cpp | 1 + pcbnew/dialogs/dialog_constraints_reporter.h | 2 +- pcbnew/dialogs/dialog_gencad_export_options.cpp | 1 + pcbnew/dialogs/dialog_gencad_export_options.h | 1 + pcbnew/edit_track_width.cpp | 1 + pcbnew/files.cpp | 1 + pcbnew/footprint_viewer_frame.cpp | 1 + pcbnew/footprint_wizard_frame.cpp | 1 + pcbnew/footprint_wizard_frame_functions.cpp | 1 + pcbnew/toolbars_footprint_viewer.cpp | 1 + 35 files changed, 56 insertions(+), 9 deletions(-) diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index f69589f13e..d3690124d4 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include diff --git a/common/dialogs/dialog_print_generic.cpp b/common/dialogs/dialog_print_generic.cpp index 482f6e7b25..d509b4b987 100644 --- a/common/dialogs/dialog_print_generic.cpp +++ b/common/dialogs/dialog_print_generic.cpp @@ -24,6 +24,8 @@ #include #include +#include + // Define min and max reasonable values for print scale static constexpr double MIN_SCALE = 0.01; static constexpr double MAX_SCALE = 100.0; diff --git a/common/dialogs/panel_setup_severities.cpp b/common/dialogs/panel_setup_severities.cpp index 00a14148c2..cbb593db01 100644 --- a/common/dialogs/panel_setup_severities.cpp +++ b/common/dialogs/panel_setup_severities.cpp @@ -26,6 +26,7 @@ #include #include #include +#include PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, diff --git a/common/widgets/grid_color_swatch_helpers.cpp b/common/widgets/grid_color_swatch_helpers.cpp index 2e6cc49d1d..b836111788 100644 --- a/common/widgets/grid_color_swatch_helpers.cpp +++ b/common/widgets/grid_color_swatch_helpers.cpp @@ -25,6 +25,7 @@ #include #include +#include //-------- Custom wxGridCellRenderers -------------------------------------------------- diff --git a/common/widgets/grid_text_button_helpers.cpp b/common/widgets/grid_text_button_helpers.cpp index 3a674babeb..e7ad651b80 100644 --- a/common/widgets/grid_text_button_helpers.cpp +++ b/common/widgets/grid_text_button_helpers.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include diff --git a/common/widgets/widget_hotkey_list.cpp b/common/widgets/widget_hotkey_list.cpp index 638292d489..1042b60583 100644 --- a/common/widgets/widget_hotkey_list.cpp +++ b/common/widgets/widget_hotkey_list.cpp @@ -31,6 +31,7 @@ #include #include #include +#include /** * Menu IDs for the hotkey context menu diff --git a/cvpcb/cvpcb_mainframe.cpp b/cvpcb/cvpcb_mainframe.cpp index b3bc730352..7937562053 100644 --- a/cvpcb/cvpcb_mainframe.cpp +++ b/cvpcb/cvpcb_mainframe.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include diff --git a/cvpcb/display_footprints_frame.cpp b/cvpcb/display_footprints_frame.cpp index 5b53874898..456664c0c0 100644 --- a/cvpcb/display_footprints_frame.cpp +++ b/cvpcb/display_footprints_frame.cpp @@ -54,6 +54,7 @@ #include // shared tools with other pcbnew frames #include #include +#include #include diff --git a/cvpcb/toolbars_cvpcb.cpp b/cvpcb/toolbars_cvpcb.cpp index 7f30172b94..26d5c2abb8 100644 --- a/cvpcb/toolbars_cvpcb.cpp +++ b/cvpcb/toolbars_cvpcb.cpp @@ -30,6 +30,7 @@ #include #include #include +#include void CVPCB_MAINFRAME::ReCreateHToolbar() diff --git a/eeschema/dialogs/dialog_bus_manager.cpp b/eeschema/dialogs/dialog_bus_manager.cpp index 98e5fb35d2..66dde68e40 100644 --- a/eeschema/dialogs/dialog_bus_manager.cpp +++ b/eeschema/dialogs/dialog_bus_manager.cpp @@ -27,6 +27,7 @@ #include "dialog_bus_manager.h" #include +#include #include diff --git a/eeschema/dialogs/dialog_choose_symbol.cpp b/eeschema/dialogs/dialog_choose_symbol.cpp index 07f9443958..f35ebb2a74 100644 --- a/eeschema/dialogs/dialog_choose_symbol.cpp +++ b/eeschema/dialogs/dialog_choose_symbol.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -41,6 +42,7 @@ #include #include #include +#include std::mutex DIALOG_CHOOSE_SYMBOL::g_Mutex; @@ -553,3 +555,13 @@ void DIALOG_CHOOSE_SYMBOL::OnComponentSelected( wxCommandEvent& aEvent ) } +bool DIALOG_CHOOSE_SYMBOL::GetUseAllUnits() const +{ + return m_useUnits->GetValue(); +} + + +bool DIALOG_CHOOSE_SYMBOL::GetKeepSymbol() const +{ + return m_keepSymbol->GetValue(); +} \ No newline at end of file diff --git a/eeschema/dialogs/dialog_choose_symbol.h b/eeschema/dialogs/dialog_choose_symbol.h index 906580fd39..9056415838 100644 --- a/eeschema/dialogs/dialog_choose_symbol.h +++ b/eeschema/dialogs/dialog_choose_symbol.h @@ -28,6 +28,7 @@ #include #include +class wxCheckBox; class wxStaticBitmap; class wxTextCtrl; class wxStdDialogButtonSizer; @@ -38,6 +39,7 @@ class wxPanel; class wxChoice; class wxButton; class wxTimer; +class wxSplitterWindow; class LIB_TREE; class SYMBOL_PREVIEW_WIDGET; @@ -130,7 +132,7 @@ public: * * @return The value of the dialog preference checkbox. */ - bool GetUseAllUnits() const { return m_useUnits->GetValue(); } + bool GetUseAllUnits() const; /** * To be called after this dialog returns from ShowModal() @@ -140,7 +142,7 @@ public: * * @return The value of the keep symbol preference checkbox. */ - bool GetKeepSymbol() const { return m_keepSymbol->GetValue(); } + bool GetKeepSymbol() const; /** * Get a list of fields edited by the user. diff --git a/eeschema/dialogs/dialog_netlist.cpp b/eeschema/dialogs/dialog_netlist.cpp index d163cc2911..29a7599dfb 100644 --- a/eeschema/dialogs/dialog_netlist.cpp +++ b/eeschema/dialogs/dialog_netlist.cpp @@ -48,9 +48,10 @@ #include #include -#include +#include #include #include +#include diff --git a/eeschema/dialogs/dialog_print_using_printer.cpp b/eeschema/dialogs/dialog_print_using_printer.cpp index 1c76ea419e..c9b52ec669 100644 --- a/eeschema/dialogs/dialog_print_using_printer.cpp +++ b/eeschema/dialogs/dialog_print_using_printer.cpp @@ -34,6 +34,7 @@ #include #include #include +#include class DIALOG_PRINT_USING_PRINTER : public DIALOG_PRINT_USING_PRINTER_BASE { diff --git a/eeschema/dialogs/panel_setup_pinmap.cpp b/eeschema/dialogs/panel_setup_pinmap.cpp index 9ba575939a..59f73b28d1 100644 --- a/eeschema/dialogs/panel_setup_pinmap.cpp +++ b/eeschema/dialogs/panel_setup_pinmap.cpp @@ -35,6 +35,7 @@ #include #include #include +#include // Control identifiers for events diff --git a/eeschema/symbol_viewer_frame.cpp b/eeschema/symbol_viewer_frame.cpp index 5537812d5f..be7cc85c50 100644 --- a/eeschema/symbol_viewer_frame.cpp +++ b/eeschema/symbol_viewer_frame.cpp @@ -52,6 +52,7 @@ #include #include #include +#include #include diff --git a/eeschema/widgets/symbol_preview_widget.cpp b/eeschema/widgets/symbol_preview_widget.cpp index 98d5b68625..b9907eaa97 100644 --- a/eeschema/widgets/symbol_preview_widget.cpp +++ b/eeschema/widgets/symbol_preview_widget.cpp @@ -27,6 +27,7 @@ #include #include #include +#include SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway, diff --git a/include/eda_base_frame.h b/include/eda_base_frame.h index 9cf79dfe3f..bcfca7444a 100644 --- a/include/eda_base_frame.h +++ b/include/eda_base_frame.h @@ -36,7 +36,6 @@ #include #include -#include #include #include #include diff --git a/kicad/dialogs/panel_kicad_launcher.cpp b/kicad/dialogs/panel_kicad_launcher.cpp index 6b70fc732d..b3f960095f 100644 --- a/kicad/dialogs/panel_kicad_launcher.cpp +++ b/kicad/dialogs/panel_kicad_launcher.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include "panel_kicad_launcher.h" diff --git a/kicad/tools/kicad_manager_control.cpp b/kicad/tools/kicad_manager_control.cpp index 297a72957f..56ad82d292 100644 --- a/kicad/tools/kicad_manager_control.cpp +++ b/kicad/tools/kicad_manager_control.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include diff --git a/pagelayout_editor/pl_editor_frame.cpp b/pagelayout_editor/pl_editor_frame.cpp index 3fd303bb75..b8978d4ab3 100644 --- a/pagelayout_editor/pl_editor_frame.cpp +++ b/pagelayout_editor/pl_editor_frame.cpp @@ -919,3 +919,9 @@ void PL_EDITOR_FRAME::ClearUndoORRedoList( UNDO_REDO_LIST whichList, int aItemCo delete curr_cmd; // Delete command } } + + +bool PL_EDITOR_FRAME::GetPageNumberOption() const +{ + return m_pageSelectBox->GetSelection() == 0; +} \ No newline at end of file diff --git a/pagelayout_editor/pl_editor_frame.h b/pagelayout_editor/pl_editor_frame.h index f5f6ff0581..67a7f9e824 100644 --- a/pagelayout_editor/pl_editor_frame.h +++ b/pagelayout_editor/pl_editor_frame.h @@ -36,6 +36,7 @@ class PL_DRAW_PANEL_GAL; class PROPERTIES_FRAME; class DS_DATA_ITEM; +class wxChoice; /** @@ -173,10 +174,7 @@ public: * looks like word processing option "page 1 differs from other pages"). * @return true if the page 1 is selected, and false if not */ - bool GetPageNumberOption() const - { - return m_pageSelectBox->GetSelection() == 0; - } + bool GetPageNumberOption() const; /** * Displays the short filename (if exists) loaded file on the caption of the main window diff --git a/pagelayout_editor/toolbars_pl_editor.cpp b/pagelayout_editor/toolbars_pl_editor.cpp index 564f090921..4dedbb4e57 100644 --- a/pagelayout_editor/toolbars_pl_editor.cpp +++ b/pagelayout_editor/toolbars_pl_editor.cpp @@ -21,6 +21,7 @@ #include #include +#include #include "pl_editor_id.h" #include "pl_editor_frame.h" diff --git a/pcbnew/dialogs/dialog_choose_footprint.cpp b/pcbnew/dialogs/dialog_choose_footprint.cpp index 8eded32cda..edb04b396c 100644 --- a/pcbnew/dialogs/dialog_choose_footprint.cpp +++ b/pcbnew/dialogs/dialog_choose_footprint.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include diff --git a/pcbnew/dialogs/dialog_choose_footprint.h b/pcbnew/dialogs/dialog_choose_footprint.h index 12dd962abc..e08d4f08d9 100644 --- a/pcbnew/dialogs/dialog_choose_footprint.h +++ b/pcbnew/dialogs/dialog_choose_footprint.h @@ -39,6 +39,7 @@ class wxPanel; class wxChoice; class wxButton; class wxTimer; +class wxSplitterWindow; class PCB_BASE_FRAME; class LIB_TREE; diff --git a/pcbnew/dialogs/dialog_constraints_reporter.cpp b/pcbnew/dialogs/dialog_constraints_reporter.cpp index 254849ebc7..a7a015c63d 100644 --- a/pcbnew/dialogs/dialog_constraints_reporter.cpp +++ b/pcbnew/dialogs/dialog_constraints_reporter.cpp @@ -26,6 +26,7 @@ #include #include #include +#include DIALOG_CONSTRAINTS_REPORTER::DIALOG_CONSTRAINTS_REPORTER( PCB_EDIT_FRAME* aParent ) : DIALOG_CONSTRAINTS_REPORTER_BASE( aParent ), diff --git a/pcbnew/dialogs/dialog_constraints_reporter.h b/pcbnew/dialogs/dialog_constraints_reporter.h index 6178518e82..93a374a7b0 100644 --- a/pcbnew/dialogs/dialog_constraints_reporter.h +++ b/pcbnew/dialogs/dialog_constraints_reporter.h @@ -28,7 +28,7 @@ class PCB_EDIT_FRAME; class WX_HTML_REPORT_BOX; - +class wxHtmlLinkEvent; class DIALOG_CONSTRAINTS_REPORTER : public DIALOG_CONSTRAINTS_REPORTER_BASE { diff --git a/pcbnew/dialogs/dialog_gencad_export_options.cpp b/pcbnew/dialogs/dialog_gencad_export_options.cpp index 72db5d416c..225a26d4bf 100644 --- a/pcbnew/dialogs/dialog_gencad_export_options.cpp +++ b/pcbnew/dialogs/dialog_gencad_export_options.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include diff --git a/pcbnew/dialogs/dialog_gencad_export_options.h b/pcbnew/dialogs/dialog_gencad_export_options.h index 55b35a021d..1eddb9f15e 100644 --- a/pcbnew/dialogs/dialog_gencad_export_options.h +++ b/pcbnew/dialogs/dialog_gencad_export_options.h @@ -31,6 +31,7 @@ class PCB_EDIT_FRAME; class wxFilePickerCtrl; +class wxCheckBox; ///< Settings for GenCAD exporter enum GENCAD_EXPORT_OPT diff --git a/pcbnew/edit_track_width.cpp b/pcbnew/edit_track_width.cpp index e8a0b56320..2d5049a829 100644 --- a/pcbnew/edit_track_width.cpp +++ b/pcbnew/edit_track_width.cpp @@ -27,6 +27,7 @@ #include #include #include +#include void PCB_EDIT_FRAME::SetTrackSegmentWidth( TRACK* aTrackItem, PICKED_ITEMS_LIST* aItemsListPicker, diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 719e940c09..b121c048b2 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index c99a94153a..4c7bf8a9fe 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -56,6 +56,7 @@ #include #include #include +#include #include using namespace std::placeholders; diff --git a/pcbnew/footprint_wizard_frame.cpp b/pcbnew/footprint_wizard_frame.cpp index b180909737..94cbede0da 100644 --- a/pcbnew/footprint_wizard_frame.cpp +++ b/pcbnew/footprint_wizard_frame.cpp @@ -37,6 +37,7 @@ #include #include #include "footprint_wizard_frame.h" +#include #include #include #include diff --git a/pcbnew/footprint_wizard_frame_functions.cpp b/pcbnew/footprint_wizard_frame_functions.cpp index 2a5aeeafa1..a171cdafd2 100644 --- a/pcbnew/footprint_wizard_frame_functions.cpp +++ b/pcbnew/footprint_wizard_frame_functions.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include diff --git a/pcbnew/toolbars_footprint_viewer.cpp b/pcbnew/toolbars_footprint_viewer.cpp index 3b1e472f8c..0c77968a65 100644 --- a/pcbnew/toolbars_footprint_viewer.cpp +++ b/pcbnew/toolbars_footprint_viewer.cpp @@ -31,6 +31,7 @@ #include "footprint_viewer_frame.h" #include "pcbnew_id.h" #include +#include void FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar()