2021-08-02 08:27:06 +00:00
///////////////////////////////////////////////////////////////////////////
2023-12-08 18:08:52 +00:00
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
2021-08-02 08:27:06 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "panel_gerbview_excellon_settings_base.h"
///////////////////////////////////////////////////////////////////////////
PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE : : PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE ( wxWindow * parent , wxWindowID id , const wxPoint & pos , const wxSize & size , long style , const wxString & name ) : RESETTABLE_PANEL ( parent , id , pos , size , style , name )
{
wxBoxSizer * bDialogSizer ;
bDialogSizer = new wxBoxSizer ( wxVERTICAL ) ;
2023-01-11 01:00:47 +00:00
m_fileFormatLabel = new wxStaticText ( this , wxID_ANY , _ ( " File Format " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_fileFormatLabel - > Wrap ( - 1 ) ;
bDialogSizer - > Add ( m_fileFormatLabel , 0 , wxTOP | wxRIGHT | wxLEFT , 13 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bDialogSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxVERTICAL ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_fileFormatHelp = new wxStaticText ( this , wxID_ANY , _ ( " These parameters are usually specified in files, but not always. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_fileFormatHelp - > Wrap ( - 1 ) ;
bSizer5 - > Add ( m_fileFormatHelp , 0 , wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
wxString m_rbUnitsChoices [ ] = { _ ( " Inches " ) , _ ( " mm " ) } ;
int m_rbUnitsNChoices = sizeof ( m_rbUnitsChoices ) / sizeof ( wxString ) ;
2023-12-08 18:08:52 +00:00
m_rbUnits = new wxRadioBox ( this , wxID_ANY , _ ( " File Units " ) , wxDefaultPosition , wxDefaultSize , m_rbUnitsNChoices , m_rbUnitsChoices , 1 , wxRA_SPECIFY_COLS ) ;
2021-08-02 08:27:06 +00:00
m_rbUnits - > SetSelection ( 0 ) ;
2023-01-11 01:00:47 +00:00
bSizer5 - > Add ( m_rbUnits , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2021-08-02 08:27:06 +00:00
wxString m_rbZeroFormatChoices [ ] = { _ ( " No leading zeros (TZ format) " ) , _ ( " No trailing zeros (LZ format) " ) } ;
int m_rbZeroFormatNChoices = sizeof ( m_rbZeroFormatChoices ) / sizeof ( wxString ) ;
2023-12-08 18:08:52 +00:00
m_rbZeroFormat = new wxRadioBox ( this , wxID_ANY , _ ( " Zero Format " ) , wxDefaultPosition , wxDefaultSize , m_rbZeroFormatNChoices , m_rbZeroFormatChoices , 1 , wxRA_SPECIFY_COLS ) ;
2021-08-02 08:27:06 +00:00
m_rbZeroFormat - > SetSelection ( 0 ) ;
2021-11-08 23:43:42 +00:00
m_rbZeroFormat - > SetToolTip ( _ ( " Integers in files can have their zeros stripped. \n No leading zeros format means the leading zeros are stripped \n No trailing zeros format means the trailing zeros are stripped " ) ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
bSizer5 - > Add ( m_rbZeroFormat , 0 , wxALL | wxEXPAND , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
bDialogSizer - > Add ( bSizer5 , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
bDialogSizer - > Add ( 0 , 10 , 0 , wxEXPAND , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_coordinatesLabel = new wxStaticText ( this , wxID_ANY , _ ( " Coordinates Format " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_coordinatesLabel - > Wrap ( - 1 ) ;
bDialogSizer - > Add ( m_coordinatesLabel , 0 , wxTOP | wxRIGHT | wxLEFT | wxEXPAND , 13 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bDialogSizer - > Add ( m_staticline2 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
wxBoxSizer * bSizer51 ;
bSizer51 = new wxBoxSizer ( wxVERTICAL ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_coordsFormatHelp = new wxStaticText ( this , wxID_ANY , _ ( " The coordinates format is not specified in Excellon format. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_coordsFormatHelp - > Wrap ( - 1 ) ;
bSizer51 - > Add ( m_coordsFormatHelp , 0 , wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_hint1 = new wxStaticText ( this , wxID_ANY , _ ( " (The decimal format does not use these settings) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_hint1 - > Wrap ( - 1 ) ;
bSizer51 - > Add ( m_hint1 , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-08-02 08:27:06 +00:00
wxFlexGridSizer * fgSizerFmt ;
2022-09-25 14:23:51 +00:00
fgSizerFmt = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
2021-08-02 08:27:06 +00:00
fgSizerFmt - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerFmt - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2023-01-11 01:00:47 +00:00
m_staticTextUnitsmm = new wxStaticText ( this , wxID_ANY , _ ( " Format for mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-08-02 08:27:06 +00:00
m_staticTextUnitsmm - > Wrap ( - 1 ) ;
fgSizerFmt - > Add ( m_staticTextUnitsmm , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2022-09-25 14:23:51 +00:00
wxBoxSizer * bSizer4 ;
bSizer4 = new wxBoxSizer ( wxHORIZONTAL ) ;
2021-08-02 08:27:06 +00:00
wxString m_choiceIntegerMMChoices [ ] = { _ ( " 2 " ) , _ ( " 3 " ) , _ ( " 4 " ) , _ ( " 5 " ) , _ ( " 6 " ) } ;
int m_choiceIntegerMMNChoices = sizeof ( m_choiceIntegerMMChoices ) / sizeof ( wxString ) ;
2023-01-11 01:00:47 +00:00
m_choiceIntegerMM = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceIntegerMMNChoices , m_choiceIntegerMMChoices , 0 ) ;
2021-08-02 08:27:06 +00:00
m_choiceIntegerMM - > SetSelection ( 1 ) ;
2022-09-25 14:23:51 +00:00
bSizer4 - > Add ( m_choiceIntegerMM , 0 , wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_staticText8 = new wxStaticText ( this , wxID_ANY , _ ( " : " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-08-02 08:27:06 +00:00
m_staticText8 - > Wrap ( - 1 ) ;
2022-09-25 14:23:51 +00:00
bSizer4 - > Add ( m_staticText8 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
wxString m_choiceMantissaMMChoices [ ] = { _ ( " 2 " ) , _ ( " 3 " ) , _ ( " 4 " ) , _ ( " 5 " ) , _ ( " 6 " ) } ;
int m_choiceMantissaMMNChoices = sizeof ( m_choiceMantissaMMChoices ) / sizeof ( wxString ) ;
2023-01-11 01:00:47 +00:00
m_choiceMantissaMM = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceMantissaMMNChoices , m_choiceMantissaMMChoices , 0 ) ;
2021-08-02 08:27:06 +00:00
m_choiceMantissaMM - > SetSelection ( 1 ) ;
2022-09-25 14:23:51 +00:00
bSizer4 - > Add ( m_choiceMantissaMM , 0 , wxALL , 5 ) ;
2023-01-11 01:00:47 +00:00
fgSizerFmt - > Add ( bSizer4 , 0 , wxEXPAND , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_staticTextUnitsInch = new wxStaticText ( this , wxID_ANY , _ ( " Format for inches " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-08-02 08:27:06 +00:00
m_staticTextUnitsInch - > Wrap ( - 1 ) ;
fgSizerFmt - > Add ( m_staticTextUnitsInch , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2022-09-25 14:23:51 +00:00
wxBoxSizer * bSizer3 ;
bSizer3 = new wxBoxSizer ( wxHORIZONTAL ) ;
2021-08-02 08:27:06 +00:00
wxString m_choiceIntegerInchChoices [ ] = { _ ( " 2 " ) , _ ( " 3 " ) , _ ( " 4 " ) , _ ( " 5 " ) , _ ( " 6 " ) } ;
int m_choiceIntegerInchNChoices = sizeof ( m_choiceIntegerInchChoices ) / sizeof ( wxString ) ;
2023-01-11 01:00:47 +00:00
m_choiceIntegerInch = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceIntegerInchNChoices , m_choiceIntegerInchChoices , 0 ) ;
2021-08-02 08:27:06 +00:00
m_choiceIntegerInch - > SetSelection ( 0 ) ;
2022-09-25 14:23:51 +00:00
bSizer3 - > Add ( m_choiceIntegerInch , 0 , wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_staticText9 = new wxStaticText ( this , wxID_ANY , _ ( " : " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-08-02 08:27:06 +00:00
m_staticText9 - > Wrap ( - 1 ) ;
2022-09-25 14:23:51 +00:00
bSizer3 - > Add ( m_staticText9 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
wxString m_choiceMantissaInchChoices [ ] = { _ ( " 2 " ) , _ ( " 3 " ) , _ ( " 4 " ) , _ ( " 5 " ) , _ ( " 6 " ) } ;
int m_choiceMantissaInchNChoices = sizeof ( m_choiceMantissaInchChoices ) / sizeof ( wxString ) ;
2023-01-11 01:00:47 +00:00
m_choiceMantissaInch = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceMantissaInchNChoices , m_choiceMantissaInchChoices , 0 ) ;
2021-08-02 08:27:06 +00:00
m_choiceMantissaInch - > SetSelection ( 2 ) ;
2022-09-25 14:23:51 +00:00
bSizer3 - > Add ( m_choiceMantissaInch , 0 , wxALL , 5 ) ;
2023-01-11 01:00:47 +00:00
fgSizerFmt - > Add ( bSizer3 , 0 , wxEXPAND , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
bSizer51 - > Add ( fgSizerFmt , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
m_hint2 = new wxStaticText ( this , wxID_ANY , _ ( " Usually: 3:3 in mm and 2:4 in inches " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_hint2 - > Wrap ( - 1 ) ;
bSizer51 - > Add ( m_hint2 , 0 , wxALL , 5 ) ;
2021-08-02 08:27:06 +00:00
2023-01-11 01:00:47 +00:00
bDialogSizer - > Add ( bSizer51 , 1 , wxEXPAND | wxLEFT , 5 ) ;
2021-08-02 08:27:06 +00:00
this - > SetSizer ( bDialogSizer ) ;
this - > Layout ( ) ;
2023-01-11 01:00:47 +00:00
bDialogSizer - > Fit ( this ) ;
2021-08-02 08:27:06 +00:00
// Connect Events
m_choiceIntegerMM - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE : : onUnitsChange ) , NULL , this ) ;
m_choiceIntegerInch - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE : : onUnitsChange ) , NULL , this ) ;
}
PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE : : ~ PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE ( )
{
// Disconnect Events
m_choiceIntegerMM - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE : : onUnitsChange ) , NULL , this ) ;
m_choiceIntegerInch - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE : : onUnitsChange ) , NULL , this ) ;
}