DIALOG_GEN_FOOTPRINT_POSITION and dialogs print: minor enhancements:
Gen footprint: 2 options are now stored during a session. Gerbview and Pcbnew dialogs print: avoid useless large size of right panel.
This commit is contained in:
parent
c5faacb9eb
commit
71b7816de5
|
@ -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 );
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
<property name="file">dialog_print_generic_base</property>
|
||||
<property name="first_id">1000</property>
|
||||
<property name="help_provider">none</property>
|
||||
<property name="image_path_wrapper_function_name"></property>
|
||||
<property name="indent_with_spaces"></property>
|
||||
<property name="internationalize">1</property>
|
||||
<property name="name">DIALOG_PRINT_GENERIC</property>
|
||||
|
@ -26,7 +25,6 @@
|
|||
<property name="skip_php_events">1</property>
|
||||
<property name="skip_python_events">1</property>
|
||||
<property name="ui_table">UI</property>
|
||||
<property name="use_array_enum">0</property>
|
||||
<property name="use_enum">1</property>
|
||||
<property name="use_microsoft_bom">0</property>
|
||||
<object class="Dialog" expanded="1">
|
||||
|
@ -73,7 +71,7 @@
|
|||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
<property name="proportion">1</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxBoxSizer" expanded="1">
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">bRightCol</property>
|
||||
|
@ -694,7 +692,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
|
|
@ -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 <wx/radiobut.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/image.h>
|
||||
#include <wx/icon.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/dialog.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -305,7 +305,7 @@
|
|||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="choices">"ASCII" "CSV" "Gerber (very experimental)"</property>
|
||||
<property name="choices">"ASCII" "CSV" "Gerber (experimental)"</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
|
@ -566,7 +566,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxCheckBox" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue