diff --git a/common/dialogs/dialog_print_generic_base.cpp b/common/dialogs/dialog_print_generic_base.cpp index fb382c22dc..10c0381a13 100644 --- a/common/dialogs/dialog_print_generic_base.cpp +++ b/common/dialogs/dialog_print_generic_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020) +// C++ code generated with wxFormBuilder (version Oct 26 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -85,7 +85,7 @@ DIALOG_PRINT_GENERIC_BASE::DIALOG_PRINT_GENERIC_BASE( wxWindow* parent, wxWindow bRightCol->Add( bScaleSizer, 0, wxALL|wxEXPAND, 5 ); - m_bUpperSizer->Add( bRightCol, 1, wxEXPAND, 5 ); + m_bUpperSizer->Add( bRightCol, 0, wxEXPAND, 5 ); bMainSizer->Add( m_bUpperSizer, 1, wxEXPAND|wxALL, 5 ); diff --git a/common/dialogs/dialog_print_generic_base.fbp b/common/dialogs/dialog_print_generic_base.fbp index 6adf0f8b26..0db160023d 100644 --- a/common/dialogs/dialog_print_generic_base.fbp +++ b/common/dialogs/dialog_print_generic_base.fbp @@ -14,7 +14,6 @@ dialog_print_generic_base 1000 none - 1 DIALOG_PRINT_GENERIC @@ -26,7 +25,6 @@ 1 1 UI - 0 1 0 @@ -73,7 +71,7 @@ 5 wxEXPAND - 1 + 0 bRightCol @@ -694,7 +692,6 @@ - 0 diff --git a/common/dialogs/dialog_print_generic_base.h b/common/dialogs/dialog_print_generic_base.h index 36f96292a4..79d028efdd 100644 --- a/common/dialogs/dialog_print_generic_base.h +++ b/common/dialogs/dialog_print_generic_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020) +// C++ code generated with wxFormBuilder (version Oct 26 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -25,10 +25,10 @@ #include #include #include -#include #include #include #include +#include #include /////////////////////////////////////////////////////////////////////////// diff --git a/pcbnew/dialogs/dialog_gen_footprint_position_file_base.cpp b/pcbnew/dialogs/dialog_gen_footprint_position_file_base.cpp index ee90cfb635..f2011429a9 100644 --- a/pcbnew/dialogs/dialog_gen_footprint_position_file_base.cpp +++ b/pcbnew/dialogs/dialog_gen_footprint_position_file_base.cpp @@ -45,7 +45,7 @@ DIALOG_GEN_FOOTPRINT_POSITION_BASE::DIALOG_GEN_FOOTPRINT_POSITION_BASE( wxWindow wxBoxSizer* bSizerMiddle; bSizerMiddle = new wxBoxSizer( wxHORIZONTAL ); - wxString m_rbFormatChoices[] = { _("ASCII"), _("CSV"), _("Gerber (very experimental)") }; + wxString m_rbFormatChoices[] = { _("ASCII"), _("CSV"), _("Gerber (experimental)") }; int m_rbFormatNChoices = sizeof( m_rbFormatChoices ) / sizeof( wxString ); m_rbFormat = new wxRadioBox( this, wxID_ANY, _("Format"), wxDefaultPosition, wxDefaultSize, m_rbFormatNChoices, m_rbFormatChoices, 1, wxRA_SPECIFY_COLS ); m_rbFormat->SetSelection( 2 ); @@ -75,7 +75,7 @@ DIALOG_GEN_FOOTPRINT_POSITION_BASE::DIALOG_GEN_FOOTPRINT_POSITION_BASE( wxWindow bSizerLower->Add( m_onlySMD, 0, wxALL, 5 ); m_excludeTH = new wxCheckBox( this, wxID_ANY, _("Exclude all footprints with through hole pads"), wxDefaultPosition, wxDefaultSize, 0 ); - bSizerLower->Add( m_excludeTH, 0, wxALL, 5 ); + bSizerLower->Add( m_excludeTH, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 ); m_cbIncludeBoardEdge = new wxCheckBox( this, wxID_ANY, _("Include board edge layer"), wxDefaultPosition, wxDefaultSize, 0 ); bSizerLower->Add( m_cbIncludeBoardEdge, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 ); diff --git a/pcbnew/dialogs/dialog_gen_footprint_position_file_base.fbp b/pcbnew/dialogs/dialog_gen_footprint_position_file_base.fbp index e53b6448cd..93b2b8c8b5 100644 --- a/pcbnew/dialogs/dialog_gen_footprint_position_file_base.fbp +++ b/pcbnew/dialogs/dialog_gen_footprint_position_file_base.fbp @@ -305,7 +305,7 @@ 1 0 - "ASCII" "CSV" "Gerber (very experimental)" + "ASCII" "CSV" "Gerber (experimental)" 1 1 @@ -566,7 +566,7 @@ 5 - wxALL + wxBOTTOM|wxRIGHT|wxLEFT 0 1 diff --git a/pcbnew/exporters/gen_footprints_placefile.cpp b/pcbnew/exporters/gen_footprints_placefile.cpp index 24ec0fc40f..75595b7ea3 100644 --- a/pcbnew/exporters/gen_footprints_placefile.cpp +++ b/pcbnew/exporters/gen_footprints_placefile.cpp @@ -159,6 +159,8 @@ private: static int m_fileOpt; static int m_fileFormat; static bool m_includeBoardEdge; + static bool m_excludeTHOpt; + static bool m_onlySMDOpt; }; @@ -166,6 +168,8 @@ private: int DIALOG_GEN_FOOTPRINT_POSITION::m_fileOpt = 0; int DIALOG_GEN_FOOTPRINT_POSITION::m_fileFormat = 0; bool DIALOG_GEN_FOOTPRINT_POSITION::m_includeBoardEdge = false; +bool DIALOG_GEN_FOOTPRINT_POSITION::m_excludeTHOpt = false; +bool DIALOG_GEN_FOOTPRINT_POSITION::m_onlySMDOpt = false; void DIALOG_GEN_FOOTPRINT_POSITION::initDialog() @@ -188,6 +192,8 @@ void DIALOG_GEN_FOOTPRINT_POSITION::initDialog() m_rbFormat->SetSelection( m_fileFormat ); m_cbIncludeBoardEdge->SetValue( m_includeBoardEdge ); m_useDrillPlaceOrigin->SetValue( cfg->m_PlaceFile.use_aux_origin ); + m_onlySMD->SetValue( m_onlySMDOpt ); + m_excludeTH->SetValue( m_excludeTHOpt ); // Update sizes and sizers: m_messagesPanel->MsgPanelSetMinSize( wxSize( -1, 160 ) ); @@ -230,6 +236,8 @@ void DIALOG_GEN_FOOTPRINT_POSITION::OnGenerate( wxCommandEvent& event ) m_fileOpt = m_radioBoxFilesCount->GetSelection(); m_fileFormat = m_rbFormat->GetSelection(); m_includeBoardEdge = m_cbIncludeBoardEdge->GetValue(); + m_onlySMDOpt = m_onlySMD->GetValue(); + m_excludeTHOpt = m_excludeTH->GetValue(); auto cfg = m_parent->GetPcbNewSettings(); m_units = m_radioBoxUnits->GetSelection() == 0 ? EDA_UNITS::INCHES : EDA_UNITS::MILLIMETRES;