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