Remove wx.h from many files

This commit is contained in:
Ian McInerney 2021-06-03 02:19:20 +01:00
parent e5446f8d7d
commit 3ab69939f9
17 changed files with 34 additions and 9 deletions

View File

@ -31,6 +31,8 @@
#include <validators.h>
#include <widgets/color_swatch.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
// Button ID starting point
constexpr int FIRST_BUTTON_ID = 1800;

View File

@ -33,6 +33,8 @@
#include <settings/common_settings.h>
#include <settings/settings_manager.h>
#include <wx/filedlg.h>
static constexpr int dpi_scaling_precision = 1;
static constexpr double dpi_scaling_increment = 0.5;

View File

@ -30,6 +30,7 @@
#include <tool/tool_manager.h>
#include <widgets/button_row_panel.h>
#include <widgets/ui_common.h>
#include <wx/filedlg.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/srchctrl.h>

View File

@ -52,7 +52,9 @@
#include <widgets/paged_dialog.h>
#include <widgets/infobar.h>
#include <widgets/wx_aui_art_providers.h>
#include <wx/app.h>
#include <wx/display.h>
#include <wx/msgdlg.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <kiplatform/app.h>

View File

@ -24,6 +24,8 @@
#include <widgets/bitmap_toggle.h>
#include <wx/sizer.h>
#include <wx/statbmp.h>
wxDEFINE_EVENT( TOGGLE_CHANGED, wxCommandEvent );

View File

@ -22,7 +22,10 @@
*/
#include <widgets/indicator_icon.h>
#include <wx/event.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/statbmp.h>
INDICATOR_ICON::INDICATOR_ICON( wxWindow* aParent, ICON_PROVIDER& aIconProvider,
ICON_ID aInitialIcon, int aID ):
@ -30,7 +33,7 @@ INDICATOR_ICON::INDICATOR_ICON( wxWindow* aParent, ICON_PROVIDER& aIconProvider,
m_iconProvider( aIconProvider ),
m_currentId( aInitialIcon )
{
auto sizer = new wxBoxSizer( wxHORIZONTAL );
wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
SetSizer( sizer );
const wxBitmap& icon = m_iconProvider.GetIndicatorIcon( m_currentId );

View File

@ -19,10 +19,12 @@
#include <confirm.h>
#include <widgets/resettable_panel.h>
#include <wx/button.h>
#include <wx/grid.h>
#include <wx/sizer.h>
#include <wx/statline.h>
#include <wx/treebook.h>
#include <wx/treectrl.h>
#include <wx/grid.h>
#include <wx/statline.h>
#include <widgets/infobar.h>
#include <widgets/paged_dialog.h>

View File

@ -44,6 +44,7 @@
#include <drawing_sheet/ds_proxy_view_item.h>
#include <sch_base_frame.h>
#include <widgets/color_swatch.h>
#include <wx/msgdlg.h>
PANEL_EESCHEMA_COLOR_SETTINGS::PANEL_EESCHEMA_COLOR_SETTINGS( SCH_BASE_FRAME* aFrame,

View File

@ -33,6 +33,7 @@
#include <panel_setup_pinmap.h>
#include <erc.h>
#include <id.h>
#include <wx/bmpbuttn.h>
#include <wx/statline.h>

View File

@ -33,6 +33,7 @@
class SCH_EDIT_FRAME;
class SCHEMATIC;
class wxBitmapButton;
class PANEL_SETUP_PINMAP : public PANEL_SETUP_PINMAP_BASE

View File

@ -25,10 +25,12 @@
#ifndef _BITMAP_TOGGLE_H
#define _BITMAP_TOGGLE_H
#include <wx/wx.h>
#include <wx/bitmap.h>
#include <wx/panel.h>
#include <gal/color4d.h>
class wxStaticBitmap;
wxDECLARE_EVENT( TOGGLE_CHANGED, wxCommandEvent );

View File

@ -24,7 +24,6 @@
#include <footprint_info.h>
#include <vector>
#include <wx/panel.h>
#include <wx/wx.h>
class KIWAY;
class PROJECT;

View File

@ -24,13 +24,16 @@
#ifndef ROW_INDICATOR__H_
#define ROW_INDICATOR__H_
#include <wx/wx.h>
#include <wx/bitmap.h>
#include <wx/panel.h>
class wxStaticBitmap;
/**
* representing a row indicator icon for use in
* places like the layer widget
*/
class INDICATOR_ICON: public wxPanel
class INDICATOR_ICON : public wxPanel
{
public:

View File

@ -20,7 +20,7 @@
#ifndef RESETTABLE_PANEL_H_
#define RESETTABLE_PANEL_H_
#include <wx/wx.h>
#include <wx/panel.h>
class PAGED_DIALOG;

View File

@ -50,6 +50,7 @@
#include <wildcards_and_files_ext.h>
#include <widgets/app_progress_dialog.h>
#include <wx/ffile.h>
#include <wx/filedlg.h>
#include <atomic>

View File

@ -62,6 +62,8 @@
#include "tools/pl_editor_control.h"
#include <zoom_defines.h>
#include <wx/filedlg.h>
BEGIN_EVENT_TABLE( PL_EDITOR_FRAME, EDA_DRAW_FRAME )
EVT_MENU( wxID_CLOSE, PL_EDITOR_FRAME::OnExit )

View File

@ -77,6 +77,7 @@
#include <widgets/panel_selection_filter.h>
#include <widgets/progress_reporter.h>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
BEGIN_EVENT_TABLE( FOOTPRINT_EDIT_FRAME, PCB_BASE_FRAME )