diff --git a/pcbnew/dialogs/panel_setup_rules.cpp b/pcbnew/dialogs/panel_setup_rules.cpp index f51efee814..1e7622ba27 100644 --- a/pcbnew/dialogs/panel_setup_rules.cpp +++ b/pcbnew/dialogs/panel_setup_rules.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include #include diff --git a/pcbnew/dialogs/panel_setup_rules_base.cpp b/pcbnew/dialogs/panel_setup_rules_base.cpp index cf593c7225..47b6b0ced1 100644 --- a/pcbnew/dialogs/panel_setup_rules_base.cpp +++ b/pcbnew/dialogs/panel_setup_rules_base.cpp @@ -5,6 +5,7 @@ // PLEASE DO *NOT* EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// +#include "widgets/std_bitmap_button.h" #include "widgets/wx_html_report_box.h" #include "panel_setup_rules_base.h" @@ -72,7 +73,7 @@ PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE( wxWindow* parent, wxWindowID id, wxBoxSizer* bSizer5; bSizer5 = new wxBoxSizer( wxHORIZONTAL ); - m_compileButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW|0 ); + m_compileButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW|0 ); m_compileButton->SetToolTip( _("Check rule syntax") ); bSizer5->Add( m_compileButton, 0, wxTOP|wxBOTTOM, 5 ); diff --git a/pcbnew/dialogs/panel_setup_rules_base.fbp b/pcbnew/dialogs/panel_setup_rules_base.fbp index c7bb8259fe..12330b25b1 100644 --- a/pcbnew/dialogs/panel_setup_rules_base.fbp +++ b/pcbnew/dialogs/panel_setup_rules_base.fbp @@ -350,7 +350,7 @@ 1 28,28 - ; ; forward_declare + STD_BITMAP_BUTTON; widgets/std_bitmap_button.h; forward_declare 0 Check rule syntax diff --git a/pcbnew/dialogs/panel_setup_rules_base.h b/pcbnew/dialogs/panel_setup_rules_base.h index 977d36c257..61b520c740 100644 --- a/pcbnew/dialogs/panel_setup_rules_base.h +++ b/pcbnew/dialogs/panel_setup_rules_base.h @@ -10,6 +10,7 @@ #include #include #include +class STD_BITMAP_BUTTON; class WX_HTML_REPORT_BOX; #include @@ -45,7 +46,7 @@ class PANEL_SETUP_RULES_BASE : public wxPanel wxHyperlinkCtrl* m_syntaxHelp; wxBoxSizer* m_topMargin; wxStyledTextCtrl* m_textEditor; - wxBitmapButton* m_compileButton; + STD_BITMAP_BUTTON* m_compileButton; WX_HTML_REPORT_BOX* m_errorsReport; // Virtual event handlers, override them in your derived class