Avoid include wx/wx.h in many files that do not actually use this include.
Including wx.h includes the full set of wxWidgets include files, that is not good, and can create some conflicts with some Windows headers on msys2.
This commit is contained in:
parent
a5c9151800
commit
f6b4b66a86
|
@ -35,6 +35,8 @@
|
|||
#include <filename_resolver.h>
|
||||
#include <pcbnew/class_module.h>
|
||||
|
||||
#include <wx/filedlg.h>
|
||||
|
||||
#include <kiplatform/ui.h>
|
||||
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
#include <wx/menu.h>
|
||||
#include <wx/menuitem.h>
|
||||
#include <wx/aui/auibar.h>
|
||||
#include <wx/dc.h>
|
||||
#include <wx/dcclient.h>
|
||||
#include <wx/dcmemory.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <mutex>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <wx/utils.h>
|
||||
#include <wx/stdpaths.h>
|
||||
#include <wx/url.h>
|
||||
#include <wx/wx.h>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
#include <boost/functional/hash.hpp>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <wx/stockitem.h>
|
||||
#include <wx/richmsgdlg.h>
|
||||
#include <wx/choicdlg.h>
|
||||
#include <confirm.h>
|
||||
#include <bitmaps.h>
|
||||
#include <html_messagebox.h>
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include <wx/display.h>
|
||||
#include <wx/evtloop.h>
|
||||
#include <wx/app.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/grid.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <widgets/grid_text_button_helpers.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <wx/dirdlg.h>
|
||||
|
||||
enum TEXT_VAR_GRID_COLUMNS
|
||||
{
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include <wx/statline.h>
|
||||
#include <wx/button.h>
|
||||
|
||||
#include "dialog_edit_library_tables.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <wx/dcclient.h>
|
||||
#include <confirm.h>
|
||||
#include <bitmap_base.h>
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <dialogs/dialog_migrate_settings.h>
|
||||
#include <settings/settings_manager.h>
|
||||
|
||||
#include <wx/dirdlg.h>
|
||||
|
||||
|
||||
DIALOG_MIGRATE_SETTINGS::DIALOG_MIGRATE_SETTINGS( SETTINGS_MANAGER* aManager ) :
|
||||
DIALOG_MIGRATE_SETTINGS_BASE( nullptr ), m_manager( aManager )
|
||||
|
|
|
@ -32,9 +32,7 @@
|
|||
#define _DIALOG_TEXT_ENTRY_H_
|
||||
|
||||
#include <dialog_text_entry_base.h>
|
||||
|
||||
|
||||
class wxTextValidator;
|
||||
#include <wx/valtext.h>
|
||||
|
||||
|
||||
class WX_TEXT_ENTRY_DIALOG : public WX_TEXT_ENTRY_DIALOG_BASE
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <widgets/ui_common.h>
|
||||
#include <rc_item.h>
|
||||
#include "panel_setup_severities.h"
|
||||
#include <wx/radiobut.h>
|
||||
|
||||
|
||||
PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent,
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
#include <map>
|
||||
#include <wx/panel.h>
|
||||
|
||||
|
||||
class PAGED_DIALOG;
|
||||
class EDA_DRAW_FRAME;
|
||||
class wxRadioBox;
|
||||
class wxRadioButton;
|
||||
|
||||
|
||||
class PANEL_SETUP_SEVERITIES : public wxPanel
|
||||
|
|
|
@ -26,12 +26,11 @@
|
|||
* @file eda_dde.cpp
|
||||
*/
|
||||
|
||||
//#include <fctsys.h>
|
||||
#include <eda_dde.h>
|
||||
#include <eda_draw_frame.h>
|
||||
#include <id.h>
|
||||
//#include <common.h>
|
||||
//#include <macros.h>
|
||||
|
||||
#include <wx/wx.h>
|
||||
|
||||
static const wxString HOSTNAME( wxT( "localhost" ) );
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#include <fp_lib_table.h>
|
||||
#include <class_module.h>
|
||||
|
||||
#include <wx/hash.h>
|
||||
|
||||
#define OPT_SEP '|' ///< options separator character
|
||||
|
||||
using namespace LIB_TABLE_T;
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
#include <bezier_curves.h>
|
||||
#include <math/util.h> // for KiROUND
|
||||
|
||||
#include <wx/frame.h>
|
||||
|
||||
#include <macros.h>
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
|
||||
#include <msgpanel.h>
|
||||
|
||||
#include <wx/dcscreen.h>
|
||||
#include <wx/dcclient.h>
|
||||
|
||||
|
||||
BEGIN_EVENT_TABLE( EDA_MSG_PANEL, wxPanel )
|
||||
EVT_PAINT( EDA_MSG_PANEL::OnPaint )
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <wx/stdpaths.h>
|
||||
#include <wx/sysopt.h>
|
||||
#include <wx/richmsgdlg.h>
|
||||
#include <wx/filedlg.h>
|
||||
|
||||
#include <build_version.h>
|
||||
#include <config_params.h>
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
*/
|
||||
|
||||
#include <wx/combo.h>
|
||||
#include <wx/filedlg.h>
|
||||
#include <wx/dirdlg.h>
|
||||
|
||||
#include <bitmap_types.h>
|
||||
#include <bitmaps.h>
|
||||
#include <kiway.h>
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include <widgets/widget_hotkey_list.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/treelist.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/menu.h>
|
||||
#include <tool/tool_action.h>
|
||||
#include <dialog_shim.h>
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ popt.SetOutputDirectory(plotDir)
|
|||
|
||||
# Set some important plot options (see pcb_plot_params.h):
|
||||
popt.SetPlotFrameRef(False) #do not change it
|
||||
popt.SetLineWidth(FromMM(0.35))
|
||||
popt.SetSketchPadLineWidth(FromMM(0.1))
|
||||
|
||||
popt.SetAutoScale(False) #do not change it
|
||||
popt.SetScale(1) #do not change it
|
||||
|
|
|
@ -27,8 +27,10 @@
|
|||
* @brief Implementation of control validators for schematic dialogs.
|
||||
*/
|
||||
|
||||
#include <sch_connection.h>
|
||||
#include <wx/combo.h>
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
#include <sch_connection.h>
|
||||
#include <sch_validators.h>
|
||||
#include <project/net_settings.h>
|
||||
#include <template_fieldnames.h>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <config.h> // Needed for MSW compilation
|
||||
#include <wx/log.h>
|
||||
|
||||
#include "ngspice.h"
|
||||
#include "spice_reporter.h"
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#ifndef DCODESELECTIONBOX_H
|
||||
#define DCODESELECTIONBOX_H
|
||||
|
||||
#include <wx/combobox.h>
|
||||
|
||||
/* helper class to display a DCode list and select a DCode id.
|
||||
*/
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#include <layers_id_colors_and_visibility.h>
|
||||
#include <geometry/geometry_utils.h>
|
||||
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
class BOARD;
|
||||
class BOARD_ITEM_CONTAINER;
|
||||
class SHAPE_POLY_SET;
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
#include <nlohmann/json_fwd.hpp>
|
||||
|
||||
#ifdef WX_COMPATIBILITY
|
||||
#include <wx/wx.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/string.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include <gal/color4d.h>
|
||||
#include <vector>
|
||||
#include <eda_rect.h>
|
||||
#include <wx/pen.h>
|
||||
#include <wx/dc.h>
|
||||
|
||||
using KIGFX::COLOR4D;
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#define KIWAY_PLAYER_H_
|
||||
|
||||
#include <wx/frame.h>
|
||||
#include <wx/cmdline.h>
|
||||
|
||||
#include <vector>
|
||||
#include <kiway_holder.h>
|
||||
#include <eda_base_frame.h>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <gal/color4d.h>
|
||||
|
||||
#include <wx/window.h>
|
||||
#include <wx/panel.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include <map>
|
||||
#include <set>
|
||||
|
||||
#include <wx/dc.h>
|
||||
|
||||
#include <gal/color4d.h>
|
||||
#include <render_settings.h>
|
||||
#include <layers_id_colors_and_visibility.h>
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include <layers_id_colors_and_visibility.h>
|
||||
#include <memory>
|
||||
|
||||
#include <wx/dc.h>
|
||||
|
||||
class COLOR_SETTINGS;
|
||||
|
||||
namespace KIGFX
|
||||
|
|
|
@ -26,8 +26,9 @@
|
|||
#ifndef UI_COMMON_H
|
||||
#define UI_COMMON_H
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/string.h>
|
||||
|
||||
class wxWindow;
|
||||
|
||||
namespace KIUI
|
||||
{
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "dialog_template_selector.h"
|
||||
|
||||
#include <wx/dir.h>
|
||||
#include <wx/dirdlg.h>
|
||||
#include <wx/settings.h>
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <wx/filename.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/stdpaths.h>
|
||||
#include <wx/app.h>
|
||||
|
||||
#include <filehistory.h>
|
||||
#include <hotkeys_basic.h>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "dialog_dielectric_list_manager.h"
|
||||
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
DIALOG_DIELECTRIC_MATERIAL::DIALOG_DIELECTRIC_MATERIAL( wxWindow* aParent,
|
||||
DIELECTRIC_SUBSTRATE_LIST& aMaterialList )
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <layers_id_colors_and_visibility.h>
|
||||
#include <dialog_imported_layers.h>
|
||||
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
|
||||
PCB_LAYER_ID DIALOG_IMPORTED_LAYERS::GetSelectedLayerID()
|
||||
{
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#include <pgm_base.h>
|
||||
#include <settings/settings_manager.h>
|
||||
|
||||
#include <wx/app.h>
|
||||
|
||||
/* init functions defined by swig */
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#include <profile.h>
|
||||
|
||||
#include <wx/cmdline.h>
|
||||
#include <wx/init.h>
|
||||
|
||||
#include <property_mgr.h>
|
||||
|
||||
#include <pgm_base.h>
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include <kiway.h>
|
||||
#include <kiway_player.h>
|
||||
|
||||
#include <wx/app.h>
|
||||
|
||||
|
||||
static struct IFACE : public KIFACE_I
|
||||
{
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <eda_dde.h>
|
||||
#include <wx/file.h>
|
||||
#include <wx/snglinst.h>
|
||||
#include <wx/app.h>
|
||||
#include <class_board.h>
|
||||
#include <fp_lib_table.h>
|
||||
#include <footprint_viewer_frame.h>
|
||||
|
|
Loading…
Reference in New Issue