mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-19 00:21:36 +00:00
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
3d-viewer/3d_cache/dialogs
common
bitmap.cppcommon.cppconfirm.cppdialog_shim.cpp
dialogs
dialog_configure_paths.cppdialog_edit_library_tables.cppdialog_image_editor.cppdialog_migrate_settings.cppdialog_text_entry.hpanel_setup_severities.cpppanel_setup_severities.h
eda_dde.cppfp_lib_table.cppgal/opengl
msgpanel.cpppgm_base.cppwidgets
demos/python_scripts_examples
eeschema
gerbview
include
kicad
pcbnew
board_stackup_manager
dialogs
swig
qa
@ -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>
|
||||
@ -315,7 +318,7 @@ class TEXT_BUTTON_FILE_BROWSER : public wxComboCtrl
|
||||
{
|
||||
public:
|
||||
TEXT_BUTTON_FILE_BROWSER( wxWindow* aParent, DIALOG_SHIM* aParentDlg,
|
||||
wxString* aCurrentDir, wxString* aExt = nullptr,
|
||||
wxString* aCurrentDir, wxString* aExt = nullptr,
|
||||
bool aNormalize = false, wxString aNormalizeBasePath = wxEmptyString ) :
|
||||
wxComboCtrl( aParent ),
|
||||
m_dlg( aParentDlg ),
|
||||
@ -356,9 +359,9 @@ protected:
|
||||
|
||||
if( m_normalize )
|
||||
{
|
||||
relPath = NormalizePath( filePath, &Pgm().GetLocalEnvVariables(),
|
||||
relPath = NormalizePath( filePath, &Pgm().GetLocalEnvVariables(),
|
||||
m_normalizeBasePath );
|
||||
lastPath = NormalizePath( dlg.GetDirectory(), &Pgm().GetLocalEnvVariables(),
|
||||
lastPath = NormalizePath( dlg.GetDirectory(), &Pgm().GetLocalEnvVariables(),
|
||||
m_normalizeBasePath );
|
||||
}
|
||||
|
||||
@ -381,7 +384,7 @@ protected:
|
||||
|
||||
if ( m_normalize )
|
||||
{
|
||||
relPath = NormalizePath( filePath, &Pgm().GetLocalEnvVariables(),
|
||||
relPath = NormalizePath( filePath, &Pgm().GetLocalEnvVariables(),
|
||||
m_normalizeBasePath );
|
||||
}
|
||||
|
||||
@ -406,10 +409,10 @@ void GRID_CELL_PATH_EDITOR::Create( wxWindow* aParent, wxWindowID aId,
|
||||
wxEvtHandler* aEventHandler )
|
||||
{
|
||||
if( m_ext.IsEmpty() )
|
||||
m_control = new TEXT_BUTTON_FILE_BROWSER( aParent, m_dlg, m_currentDir, nullptr,
|
||||
m_control = new TEXT_BUTTON_FILE_BROWSER( aParent, m_dlg, m_currentDir, nullptr,
|
||||
m_normalize, m_normalizeBasePath );
|
||||
else
|
||||
m_control = new TEXT_BUTTON_FILE_BROWSER( aParent, m_dlg, m_currentDir, &m_ext,
|
||||
m_control = new TEXT_BUTTON_FILE_BROWSER( aParent, m_dlg, m_currentDir, &m_ext,
|
||||
m_normalize, m_normalizeBasePath );
|
||||
|
||||
#if wxUSE_VALIDATORS
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user