Remove a few include<wx/wx.h> in many files that do not actually use this include.

This commit is contained in:
jean-pierre charras 2020-10-18 20:24:20 +02:00
parent 88fbb9d367
commit 539ac4c214
21 changed files with 32 additions and 41 deletions

View File

@ -30,7 +30,6 @@
#include "3d_fastmath.h"
#include "cbbox2d.h"
#include <fctsys.h>
#include <wx/debug.h>

View File

@ -29,7 +29,6 @@
#include "cpolygon2d.h"
#include <wx/debug.h>
#include <fctsys.h>
#ifdef PRINT_STATISTICS_3D_VIEWER
#include <stdio.h>

View File

@ -28,7 +28,6 @@
*/
#include "cbbox.h"
#include <fctsys.h>
#include <wx/debug.h>
// This BBOX Ray intersection test have the following credits:

View File

@ -21,7 +21,7 @@
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <fctsys.h>
#include <eda_base_frame.h>
#include <dialog_helpers.h>
#include <base_units.h>

View File

@ -39,6 +39,7 @@
#include <page_layout/page_layout_reader_lexer.h>
#include <convert_to_biu.h>
#include <wx/msgdlg.h>
using namespace TB_READER_T;

View File

@ -35,6 +35,8 @@
#include <page_layout/ws_painter.h>
#include <page_layout/ws_data_item.h>
#include <wx/app.h>
using namespace KIGFX;
static const wxString productName = wxT( "KiCad E.D.A. " );

View File

@ -22,7 +22,6 @@
*/
#include <fctsys.h>
#include <kicad_string.h>
#include <scintilla_tricks.h>
#include <wx/stc/stc.h>

View File

@ -47,6 +47,9 @@
#include <dialogs/dialog_bom_cfg_lexer.h>
#include <wx/filedlg.h>
#include <wx/textdlg.h>
static constexpr wxChar BOM_TRACE[] = wxT( "BOM_GENERATORS" );
wxString s_bomHelpInfo =

View File

@ -26,6 +26,10 @@
#include "dialog_bus_manager.h"
#include <wx/button.h>
#include <wx/valtext.h>
BEGIN_EVENT_TABLE( DIALOG_BUS_MANAGER, DIALOG_SHIM )
EVT_BUTTON( wxID_OK, DIALOG_BUS_MANAGER::OnOkClick )

View File

@ -26,6 +26,9 @@
#define __dialog_lib_edit_pin__
#include <wx/bmpcbox.h>
#include <wx/msgdlg.h>
#include <wx/dcclient.h>
#include <pin_shape_combobox.h>
#include <pin_type_combobox.h>

View File

@ -34,6 +34,9 @@
#include <sch_painter.h>
#include <schematic.h>
#include <wx/dirdlg.h>
#include <wx/msgdlg.h>
// static members (static to remember last state):
int DIALOG_PLOT_SCHEMATIC::m_pageSizeSelect = PAGE_SIZE_AUTO;
int DIALOG_PLOT_SCHEMATIC::m_HPGLPaperSizeSelect = PAGE_SIZE_AUTO;

View File

@ -35,6 +35,9 @@
#include <symbol_preview_widget.h>
#include <vector>
#include <wx/msgdlg.h>
#include <wx/dcclient.h>
class DIALOG_RESCUE_EACH: public DIALOG_RESCUE_EACH_BASE
{

View File

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

View File

@ -38,6 +38,8 @@
#include <dialogs/dialog_layers_select_to_pcb.h>
#include <wx/msgdlg.h>
// Imported function
extern const wxString GetPCBDefaultLayerName( LAYER_NUM aLayerNumber );

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2012-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
* Copyright (C) 1992-2020 KiCad Developers, see change_log.txt for contributors.
* Copyright (C) 1992-2020 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
@ -30,6 +30,8 @@
#include <gerbview_frame.h>
#include <dialogs/dialog_layers_select_to_pcb.h>
#include <wx/radiobox.h>
#define NB_PCB_LAYERS PCB_LAYER_ID_COUNT
#define FIRST_COPPER_LAYER 0
#define LAST_COPPER_LAYER 31

View File

@ -34,6 +34,8 @@
#include <geometry/shape_arc.h>
#include <math/util.h> // for KiROUND
#include <wx/msgdlg.h>
GERBER_DRAW_ITEM::GERBER_DRAW_ITEM( GERBER_FILE_IMAGE* aGerberImageFile ) :
EDA_ITEM( (EDA_ITEM*)NULL, GERBER_DRAW_ITEM_T )
{

View File

@ -1,31 +0,0 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-2014 KiCad Developers, see CHANGELOG.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 2
* 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, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef FCTSYS_H_
#define FCTSYS_H_
#include <wx/wx.h>
#include <config.h>
#endif // FCTSYS_H__

View File

@ -30,7 +30,7 @@
#ifndef PAGE_INFO_H
#define PAGE_INFO_H
#include <wx/wx.h>
#include <wx/string.h>
#include <richio.h> // for OUTPUTFORMATTER and IO_ERROR
#include <base_units.h> // for IU_PER_MILS

View File

@ -40,6 +40,8 @@
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include <wx/msgdlg.h>
/**
* Custom print out for printing schematics.
*/

View File

@ -28,6 +28,8 @@
#include <sch_edit_frame.h>
#include <settings/settings_manager.h>
#include <wx/app.h>
// a transform matrix, to display components in lib editor
TRANSFORM DefaultTransform = TRANSFORM( 1, 0, 0, -1 );

View File

@ -36,7 +36,6 @@
#include <typeinfo>
#include <macros.h>
#include <fctsys.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/snglinst.h>