Remove useless wx/wx.h include, that create sometimes compil warnings on msys.

wx/wx.h includes all wxWidgets .h files, and sometimes creates collision
names in #define between kicad and windows headers
Moreover, blindly including a lot of useless files is compil time consuming
This commit is contained in:
jean-pierre charras 2021-05-01 09:50:29 +02:00
parent cc1bfd4c18
commit 0427bda768
72 changed files with 120 additions and 26 deletions

View File

@ -52,6 +52,7 @@
#include <tool/action_toolbar.h>
#include <widgets/infobar.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
/**
* Flag to enable 3D viewer main frame window debug tracing.

View File

@ -35,6 +35,11 @@
#include <wildcards_and_files_ext.h>
#include <wx/clipbrd.h>
#include <wx/rawbmp.h>
#include <wx/filedlg.h>
#include <wx/rawbmp.h>
#include <wx/msgdlg.h>
#include <wx/dcclient.h>
#include "bitmap2cmp_gui_base.h"

View File

@ -36,6 +36,8 @@
#include <drawing_sheet/ds_painter.h>
#include <wx/valgen.h>
#include <wx/tokenzr.h>
#include <wx/filedlg.h>
#include <wx/dcmemory.h>
#define MAX_PAGE_EXAMPLE_SIZE 200

View File

@ -59,6 +59,9 @@
#include <wx/snglinst.h>
#include <dialogs/dialog_grid_settings.h>
#include <widgets/ui_common.h>
#include <wx/dirdlg.h>
#include <wx/filedlg.h>
#include <wx/msgdlg.h>
#define FR_HISTORY_LIST_CNT 10 ///< Maximum size of the find/replace history stacks.

View File

@ -23,6 +23,8 @@
*/
#include <kiway_express.h>
#include <wx/wx.h>
//IMPLEMENT_DYNAMIC_CLASS( KIWAY_EXPRESS, wxEvent )

View File

@ -29,6 +29,7 @@
#include <project/project_archiver.h>
#include <reporter.h>
#include <wildcards_and_files_ext.h>
#include <wx/log.h>
#define ZipFileExtension wxT( "zip" )

View File

@ -42,6 +42,7 @@
#include <wx/popupwin.h>
#include <wx/renderer.h>
#include <wx/sizer.h>
#include <wx/dcclient.h>
wxBitmap MakeDisabledBitmap( const wxBitmap& aSource )

View File

@ -38,6 +38,7 @@
#include <kicad_curl/kicad_curl_easy.h>
#include <dialogs/dialog_configure_paths.h>
#include <eda_doc.h>
#include <wx/msgdlg.h>
#define URL_GET_INVOLVED "https://kicad.org/contribute/"
#define URL_DONATE "https://go.kicad.org/app-donate"

View File

@ -43,6 +43,8 @@
#include <wx/stc/stc.h>
#include <kiplatform/app.h>
#include <wx/wx.h> // for GetForegroundWindow() on wxMSW
///< Stores information about a mouse button state
struct TOOL_DISPATCHER::BUTTON_STATE
{

View File

@ -38,6 +38,8 @@
#include <widgets/ui_common.h>
#include <class_draw_panel_gal.h>
#include <wx/wx.h> // for GetForegroundWindow() on wxMSW
#if defined __WXMSW__
#define USE_MOUSE_CAPTURE
#endif

View File

@ -28,6 +28,7 @@
#include <wx/sizer.h>
#include <wx/timer.h>
#include <wx/hyperlink.h>
#include <wx/bmpbuttn.h>
#include <eda_base_frame.h>

View File

@ -30,6 +30,12 @@
#include <netinfo.h>
#include <wx/arrstr.h>
#include <wx/display.h>
#include <wx/valtext.h>
#include <wx/listbox.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#include <wx/textctrl.h>
wxDEFINE_EVENT( NET_SELECTED, wxCommandEvent );

View File

@ -30,6 +30,8 @@
#include <regex>
#include <wildcards_and_files_ext.h>
#include <wx/regex.h>
#include <wx/wx.h>
bool compareFileExtensions( const std::string& aExtension,
const std::vector<std::string>& aReference, bool aCaseSensitive )

View File

@ -52,6 +52,7 @@
#include <tools/cvpcb_actions.h>
#include <tools/cvpcb_association_tool.h>
#include <tools/cvpcb_control.h>
#include <wx/button.h>
#define CVPCB_MAINFRAME_NAME wxT( "CvpcbFrame" )

View File

@ -39,6 +39,8 @@
#include <settings/settings_manager.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES( CVPCB_MAINFRAME* aParent ) :
DIALOG_CONFIG_EQUFILES_BASE( aParent )

View File

@ -28,6 +28,7 @@
#include <cvpcb_mainframe.h>
#include <listboxes.h>
#include <wx/dcclient.h>
/******************************************************************************

View File

@ -42,6 +42,7 @@
#include <widgets/wx_grid.h>
#include <wx/grid.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
#include "dialog_fields_editor_global.h"

View File

@ -49,6 +49,9 @@
#include <eeschema_id.h>
#include <wx/regex.h>
#include <wx/filedlg.h>
#include <wx/msgdlg.h>
#define CUSTOMPANEL_COUNTMAX 8 // Max number of netlist plugins

View File

@ -26,6 +26,7 @@
#include <wildcards_and_files_ext.h>
#include <confirm.h>
#include <schematic.h>
#include <wx/filedlg.h>
#include <dialog_sch_import_settings.h>

View File

@ -33,6 +33,8 @@
#include <wx/textfile.h>
#include <wx/tokenzr.h>
#include <wx/wupdlock.h>
#include <wx/filedlg.h>
#include <cctype>
#include <cstring>

View File

@ -46,6 +46,8 @@
#include <widgets/grid_readonly_text_helpers.h>
#include <widgets/grid_text_button_helpers.h>
#include <sch_file_versions.h>
#include <wx/filedlg.h>
// clang-format off

View File

@ -77,6 +77,9 @@
#include <widgets/infobar.h>
#include <wildcards_and_files_ext.h>
#include <wx/cmdline.h>
#include <wx/app.h>
#include <wx/filedlg.h>
#include <gal/graphics_abstraction_layer.h>
#include <drawing_sheet/ds_proxy_view_item.h>

View File

@ -28,7 +28,6 @@
#include <project.h>
#include <wildcards_and_files_ext.h>
#include <tool/tool_manager.h>
#include <wx/clipbrd.h>
#include <sch_edit_frame.h>
#include <sch_plugins/legacy/sch_legacy_plugin.h>
#include <sch_sheet.h>
@ -40,6 +39,9 @@
#include <dialogs/dialog_sheet_properties.h>
#include <tool/actions.h>
#include <wx/clipbrd.h>
#include <wx/dcmemory.h>
bool SCH_EDIT_FRAME::CheckSheetForRecursion( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHierarchy )
{

View File

@ -48,6 +48,7 @@
#include <tools/ee_actions.h>
#include <eeschema_settings.h>
#include <wx/ffile.h>
#include <wx/filedlg.h>
#include <dialog_shim.h>
SIM_PLOT_TYPE operator|( SIM_PLOT_TYPE aFirst, SIM_PLOT_TYPE aSecond )

View File

@ -71,6 +71,7 @@
#include <widgets/symbol_tree_pane.h>
#include <wildcards_and_files_ext.h>
#include <panel_sym_lib_table.h>
#include <wx/choicdlg.h>
bool SYMBOL_EDIT_FRAME::m_showDeMorgan = false;

View File

@ -42,6 +42,8 @@
#include <dialogs/dialog_lib_new_component.h>
#include <dialog_helpers.h>
#include <wx/clipbrd.h>
#include <wx/filedlg.h>
/**

View File

@ -30,6 +30,7 @@
#include <wildcards_and_files_ext.h>
#include <symbol_library_manager.h>
#include <wx/filename.h>
#include <wx/filedlg.h>
void SYMBOL_EDIT_FRAME::ImportPart()

View File

@ -35,9 +35,11 @@
#include <dsnlexer.h>
#include <ptree.h>
#include <boost/property_tree/ptree.hpp>
#include <wx/choicdlg.h>
#include <tools/sch_editor_control.h>
#include <wx/choicdlg.h>
#include <wx/filedlg.h>
void SCH_EDITOR_CONTROL::AssignFootprints( const std::string& aChangedSetOfReferences )
{

View File

@ -52,6 +52,8 @@
#include <dialogs/dialog_sheet_pin_properties.h>
#include <kicad_string.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
SCH_DRAWING_TOOLS::SCH_DRAWING_TOOLS() :
EE_TOOL_BASE<SCH_EDIT_FRAME>( "eeschema.InteractiveDrawing" ),

View File

@ -66,6 +66,9 @@
#include <symbol_editor_settings.h>
#include <dialogs/dialog_edit_label.h>
#include <core/kicad_algo.h>
//#include <wx/filedlg.h>
#include <wx/textdlg.h>
class SYMBOL_UNIT_MENU : public ACTION_MENU

View File

@ -35,6 +35,7 @@
#include <gestfich.h>
#include <bitmaps/bitmap_types.h>
#include <confirm.h>
#include <wx/filedlg.h>
bool SYMBOL_EDITOR_CONTROL::Init()

View File

@ -35,6 +35,7 @@
#include <tool/tool_manager.h>
#include <tools/gerbview_actions.h>
#include <tools/gerbview_control.h>
#include <wx/checklst.h>
// TODO(JE)
#define OPTKEY_LAYERBASE wxT( "PlotLayer_%d" )

View File

@ -41,6 +41,8 @@
#include <gbr_metadata.h>
#include <dialogs/html_messagebox.h>
#include <view/view.h>
#include <wx/filedlg.h>
using json = nlohmann::json;

View File

@ -31,6 +31,7 @@
#include <tool/tool_manager.h>
#include <view/view.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
#include "gerbview_actions.h"
#include "gerbview_control.h"

View File

@ -36,7 +36,9 @@
#include <view/view.h>
#include <view/view_controls.h>
#include <view/view_group.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
#include <wx/choicdlg.h>
GERBVIEW_INSPECTION_TOOL::GERBVIEW_INSPECTION_TOOL() :

View File

@ -32,7 +32,6 @@
#include <vector>
#include <map>
#include <memory>
#include <wx/wx.h>
#include <wx/string.h>
#include <wx/regex.h>

View File

@ -26,10 +26,10 @@
#define KIWAY_EXPRESS_H_
// @see http://wiki.wxwidgets.org/Custom_Events_Tutorial
#include <wx/wx.h>
#include <frame_type.h>
#include <mail_type.h>
#include <wx/string.h>
#include <wx/event.h>
/**

View File

@ -30,7 +30,6 @@
#include <tool/selection_conditions.h>
#include <tool/action_menu.h>
#include <list>
#include <wx/wx.h>
class PCB_SELECTION_TOOL;
class TOOL_ACTION;

View File

@ -33,11 +33,10 @@
#ifndef __WX_VIEW_CONTROLS_H
#define __WX_VIEW_CONTROLS_H
#include <wx/wx.h>
#include <view/view_controls.h>
#include <wx/timer.h>
#include <memory>
class EDA_DRAW_PANEL_GAL;
namespace KIGFX

View File

@ -24,7 +24,9 @@
#include <core/optional.h>
#include <wx/event.h>
#include <wx/infobar.h>
#include <wx/wx.h>
#include <wx/timer.h>
#include <wx/panel.h>
#include <wx/sizer.h>
class wxAuiManager;

View File

@ -24,7 +24,6 @@
#ifndef __WIDGET_NET_SELECTOR_H
#define __WIDGET_NET_SELECTOR_H
#include <wx/wx.h>
#include <wx/combo.h>

View File

@ -25,7 +25,9 @@
#define NUMBER_BADGE_H_
#include <widgets/ui_common.h>
#include <wx/wx.h>
#include <wx/dcclient.h>
#include <wx/panel.h>
/**
* A simple UI element that puts a number on top of a colored rounded rectangle with a fill

View File

@ -32,10 +32,9 @@
#ifndef INCLUDE_WILDCARDS_AND_FILES_EXT_H_
#define INCLUDE_WILDCARDS_AND_FILES_EXT_H_
#include <wx/wx.h>
#include <string>
#include <vector>
#include <wx/string.h>
/**
* \defgroup file_extensions File Extension Definitions

View File

@ -27,6 +27,8 @@
*/
#include <wx/dir.h>
#include <wx/filedlg.h>
#include <wx/dirdlg.h>
#include <confirm.h>
#include <dialogs/panel_kicad_launcher.h>

View File

@ -32,6 +32,8 @@
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/dir.h>
#include <wx/filedlg.h>
#include <wx/dirdlg.h>
#include <common.h>
#include <confirm.h>

View File

@ -28,6 +28,8 @@
#include <wx/regex.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
#include <bitmaps.h>
#include <common.h>

View File

@ -31,6 +31,7 @@
#include <dialogs/dialog_template_selector.h>
#include <gestfich.h>
#include <wx/dir.h>
#include <wx/filedlg.h>
///< Helper widget to select whether a new directory should be created for a project.

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013 CERN
* Copyright (C) 2017-2019 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2017-2021 KiCad Developers, see AUTHORS.txt for contributors.
*
* @author Jean-Pierre Charras, jp.charras at wanadoo.fr
*
@ -35,6 +35,8 @@
#include "pl_editor_id.h"
#include "properties_frame.h"
#include <wx/filedlg.h>
bool PL_EDITOR_FRAME::saveCurrentPageLayout()
{
wxCommandEvent saveEvent;

View File

@ -33,6 +33,8 @@
#include <wildcards_and_files_ext.h>
#include <footprint.h>
#include <wx/listimpl.cpp>
#include <wx/filedlg.h>
/* creates a BOM list from board
* The format is:

View File

@ -27,6 +27,7 @@
#include "base_units.h"
#include <macros.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
#define COL_LABEL 0
#define COL_AMOUNT 1

View File

@ -21,7 +21,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wx/wx.h>
#include <dialog_cleanup_graphics.h>
#include <tool/tool_manager.h>
#include <tools/pcb_actions.h>

View File

@ -21,7 +21,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wx/wx.h>
#include <dialog_cleanup_tracks_and_vias.h>
#include <pcb_edit_frame.h>
#include <pcbnew_settings.h>

View File

@ -21,7 +21,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wx/wx.h>
#include <dialog_footprint_checker.h>
#include <widgets/appearance_controls.h>
#include <tool/tool_manager.h>

View File

@ -39,7 +39,9 @@
#include <wildcards_and_files_ext.h>
#include <reporter.h>
#include <wx/stdpaths.h>
#include <wx/msgdlg.h>
#include <wx/dirdlg.h>
#include <wx/filedlg.h>
// list of allowed precision for EXCELLON files, for integer format:
// Due to difference between inches and mm,

View File

@ -26,6 +26,7 @@
#include <board.h>
#include <wildcards_and_files_ext.h>
#include <confirm.h>
#include <wx/filedlg.h>
#include <dialog_import_settings.h>

View File

@ -38,7 +38,11 @@
#include <dialogs/dialog_text_entry.h>
#include <validators.h>
#include <bitmaps.h>
#include <wx/tokenzr.h>
#include <wx/filedlg.h>
#include <wx/dcclient.h>
#include <bitset>
struct DIALOG_NET_INSPECTOR::COLUMN_DESC

View File

@ -39,6 +39,8 @@
#include <dialog_pad_properties.h>
#include <bitmaps.h>
#include <wx/dcclient.h>
DIALOG_PAD_PRIMITIVES_PROPERTIES::DIALOG_PAD_PRIMITIVES_PROPERTIES( wxWindow* aParent,
PCB_BASE_FRAME* aFrame,

View File

@ -47,6 +47,7 @@
#include <tool/tool_manager.h>
#include <tools/pad_tool.h>
#include <advanced_config.h> // for pad property feature management
#include <wx/choicdlg.h>
// list of pad shapes, ordered like the pad shape wxChoice in dialog.

View File

@ -37,6 +37,8 @@
#include <tools/pcb_control.h>
#include <dialogs/dialog_print_generic.h>
#include <pcbnew_printout.h>
#include <wx/checklst.h>
#include <wx/textdlg.h>
class DIALOG_PRINT_PCBNEW : public DIALOG_PRINT_GENERIC

View File

@ -35,6 +35,8 @@
#include <wx/dir.h>
#include <wx/regex.h>
#include <wx/grid.h>
#include <wx/dirdlg.h>
#include <wx/filedlg.h>
#include <project.h>
#include <3d_viewer/eda_3d_viewer.h> // for KICAD6_3DMODEL_DIR

View File

@ -44,6 +44,7 @@
#include <cctype>
#include <math/util.h> // for KiROUND
#include <export_d356.h>
#include <wx/filedlg.h>

View File

@ -29,6 +29,8 @@
#include <footprint.h>
#include <project.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
bool RecreateCmpFile( BOARD * aBrd, const wxString& aFullCmpFileName )

View File

@ -46,6 +46,7 @@
#include <project/project_file.h> // LAST_PATH_TYPE
#include <wx/app.h>
#include <wx/filedlg.h>
static bool CreateHeaderInfoData( FILE* aFile, PCB_EDIT_FRAME* frame );
static void CreateArtworksSection( FILE* aFile );

View File

@ -47,7 +47,6 @@
#include <kiplatform/app.h>
#include <widgets/appearance_controls.h>
#include <widgets/infobar.h>
#include <wx/wupdlock.h>
#include <settings/settings_manager.h>
#include <paths.h>
#include <project/project_file.h>
@ -58,6 +57,10 @@
#include <dialogs/dialog_imported_layers.h>
#include "footprint_info_impl.h"
#include <wx/wupdlock.h>
#include <wx/filedlg.h>
//#define USE_INSTRUMENTATION 1
#define USE_INSTRUMENTATION 0

View File

@ -33,6 +33,7 @@
#include <bitmaps.h>
#include <map>
#include "dxf_import_plugin.h"
#include <wx/filedlg.h>
#include <memory>

View File

@ -32,7 +32,6 @@
#include <dl_dxf.h>
#include <math/vector3.h>
#include <wildcards_and_files_ext.h>
#include <wx/wx.h>
#include <list>

View File

@ -21,8 +21,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wx/wx.h>
#include <base_units.h>
#include <board_commit.h>
#include <pad.h>

View File

@ -25,7 +25,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wx/wx.h>
#include <netlist_lexer.h> // netlist_lexer is common to Eeschema and Pcbnew
#include <macros.h>

View File

@ -46,6 +46,7 @@
#include <project/project_local_settings.h>
#include <wildcards_and_files_ext.h>
#include <locale_io.h>
#include <wx/app.h>
static PCB_EDIT_FRAME* s_PcbEditFrame = NULL;

View File

@ -46,6 +46,7 @@
#include <tools/pcb_actions.h>
#include <tools/pcb_selection_tool.h>
#include <wx/wupdlock.h>
#include <wx/dcmemory.h>
#if defined(KICAD_SCRIPTING) || defined(KICAD_SCRIPTING_WXPYTHON)
#include <python_scripting.h>

View File

@ -65,6 +65,7 @@
#include <wildcards_and_files_ext.h>
#include <drawing_sheet/ds_proxy_undo_item.h>
#include <footprint_edit_frame.h>
#include <wx/filedlg.h>
using namespace std::placeholders;

View File

@ -25,7 +25,6 @@
#include <tool/tool_manager.h>
#include <wx/filedlg.h>
#include <wx/wx.h>
#include <tools/board_reannotate_tool.h>