2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-02-17 16:27:59 +00:00
// C++ code generated with wxFormBuilder (version Dec 30 2017)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2018-02-17 16:27:59 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2015-06-16 12:20:42 +00:00
# include "wx_html_report_panel.h"
2018-02-16 16:52:19 +00:00
# include "dialog_gen_footprint_position_file_base.h"
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-02-16 19:26:55 +00:00
DIALOG_GEN_FOOTPRINT_POSITION_BASE : : DIALOG_GEN_FOOTPRINT_POSITION_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
2013-05-26 04:36:44 +00:00
{
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
m_MainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2018-02-28 09:44:22 +00:00
wxBoxSizer * bSizerdirBrowse ;
bSizerdirBrowse = new wxBoxSizer ( wxHORIZONTAL ) ;
2013-05-26 04:36:44 +00:00
m_staticTextDir = new wxStaticText ( this , wxID_ANY , _ ( " Output directory: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextDir - > Wrap ( - 1 ) ;
2018-02-28 09:44:22 +00:00
bSizerdirBrowse - > Add ( m_staticTextDir , 0 , wxEXPAND | wxRIGHT | wxTOP , 5 ) ;
2013-05-26 04:36:44 +00:00
m_outputDirectoryName = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_outputDirectoryName - > SetToolTip ( _ ( " Target directory for plot files. Can be absolute or relative to the board file location. " ) ) ;
m_outputDirectoryName - > SetMinSize ( wxSize ( 350 , - 1 ) ) ;
2018-02-28 09:44:22 +00:00
bSizerdirBrowse - > Add ( m_outputDirectoryName , 1 , wxBOTTOM | wxEXPAND | wxTOP , 3 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 16:27:59 +00:00
m_browseButton = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW ) ;
2018-02-28 09:44:22 +00:00
m_browseButton - > SetMinSize ( wxSize ( 30 , 28 ) ) ;
2013-05-26 04:36:44 +00:00
2018-02-28 09:44:22 +00:00
bSizerdirBrowse - > Add ( m_browseButton , 0 , 0 , 0 ) ;
2013-05-26 04:36:44 +00:00
2018-02-28 09:44:22 +00:00
bUpperSizer - > Add ( bSizerdirBrowse , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2013-05-26 04:36:44 +00:00
2018-02-28 09:44:22 +00:00
m_MainSizer - > Add ( bUpperSizer , 0 , wxEXPAND , 2 ) ;
2013-05-26 04:36:44 +00:00
2018-02-28 09:44:22 +00:00
wxBoxSizer * bSizer71 ;
bSizer71 = new wxBoxSizer ( wxHORIZONTAL ) ;
2018-02-17 16:27:59 +00:00
wxString m_rbFormatChoices [ ] = { _ ( " ASCII " ) , _ ( " CSV " ) } ;
2016-04-26 12:16:16 +00:00
int m_rbFormatNChoices = sizeof ( m_rbFormatChoices ) / sizeof ( wxString ) ;
2018-02-28 09:44:22 +00:00
m_rbFormat = new wxRadioBox ( this , wxID_ANY , _ ( " Format " ) , wxDefaultPosition , wxDefaultSize , m_rbFormatNChoices , m_rbFormatChoices , 1 , wxRA_SPECIFY_COLS ) ;
2016-04-26 12:16:16 +00:00
m_rbFormat - > SetSelection ( 0 ) ;
2018-02-17 16:27:59 +00:00
m_rbFormat - > SetMinSize ( wxSize ( 90 , - 1 ) ) ;
2018-02-28 09:44:22 +00:00
bSizer71 - > Add ( m_rbFormat , 1 , wxALL , 5 ) ;
2016-04-26 12:16:16 +00:00
2013-05-26 04:36:44 +00:00
wxString m_radioBoxUnitsChoices [ ] = { _ ( " Inches " ) , _ ( " mm " ) } ;
int m_radioBoxUnitsNChoices = sizeof ( m_radioBoxUnitsChoices ) / sizeof ( wxString ) ;
2018-02-28 09:44:22 +00:00
m_radioBoxUnits = new wxRadioBox ( this , wxID_ANY , _ ( " Units " ) , wxDefaultPosition , wxDefaultSize , m_radioBoxUnitsNChoices , m_radioBoxUnitsChoices , 1 , wxRA_SPECIFY_COLS ) ;
2013-05-26 04:36:44 +00:00
m_radioBoxUnits - > SetSelection ( 0 ) ;
2018-02-17 16:27:59 +00:00
m_radioBoxUnits - > SetMinSize ( wxSize ( 90 , - 1 ) ) ;
2013-05-26 04:36:44 +00:00
2018-02-28 09:44:22 +00:00
bSizer71 - > Add ( m_radioBoxUnits , 1 , wxALL , 5 ) ;
2018-02-17 16:27:59 +00:00
wxString m_radioBoxFilesCountChoices [ ] = { _ ( " One file per side " ) , _ ( " Single file for board " ) } ;
2013-05-26 04:36:44 +00:00
int m_radioBoxFilesCountNChoices = sizeof ( m_radioBoxFilesCountChoices ) / sizeof ( wxString ) ;
2018-02-28 09:44:22 +00:00
m_radioBoxFilesCount = new wxRadioBox ( this , wxID_ANY , _ ( " Files " ) , wxDefaultPosition , wxDefaultSize , m_radioBoxFilesCountNChoices , m_radioBoxFilesCountChoices , 1 , wxRA_SPECIFY_COLS ) ;
2018-02-17 16:27:59 +00:00
m_radioBoxFilesCount - > SetSelection ( 1 ) ;
2013-05-26 04:36:44 +00:00
m_radioBoxFilesCount - > SetToolTip ( _ ( " Creates 2 files: one for each board side or \n Creates only one file containing all footprints to place \n " ) ) ;
2018-02-28 09:44:22 +00:00
bSizer71 - > Add ( m_radioBoxFilesCount , 2 , wxALL , 5 ) ;
2018-02-17 16:27:59 +00:00
2018-02-28 09:44:22 +00:00
wxString m_radioBoxForceSmdChoices [ ] = { _ ( " Footprints with INSERT attribute set " ) , _ ( " All SMD footprints " ) } ;
2013-05-26 04:36:44 +00:00
int m_radioBoxForceSmdNChoices = sizeof ( m_radioBoxForceSmdChoices ) / sizeof ( wxString ) ;
2018-02-28 09:44:22 +00:00
m_radioBoxForceSmd = new wxRadioBox ( this , wxID_ANY , _ ( " Include " ) , wxDefaultPosition , wxDefaultSize , m_radioBoxForceSmdNChoices , m_radioBoxForceSmdChoices , 1 , wxRA_SPECIFY_COLS ) ;
2013-05-26 04:36:44 +00:00
m_radioBoxForceSmd - > SetSelection ( 0 ) ;
m_radioBoxForceSmd - > SetToolTip ( _ ( " Only footprints with option INSERT are listed in placement file. \n This option can force this option for all footprints having only SMD pads. \n Warning: this options will modify the board. " ) ) ;
2018-02-28 09:44:22 +00:00
bSizer71 - > Add ( m_radioBoxForceSmd , 3 , wxALL , 5 ) ;
2018-02-17 16:27:59 +00:00
2018-02-28 09:44:22 +00:00
m_MainSizer - > Add ( bSizer71 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-06-16 12:20:42 +00:00
wxBoxSizer * bSizer7 ;
bSizer7 = new wxBoxSizer ( wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2015-06-16 12:20:42 +00:00
m_messagesPanel = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_messagesPanel - > SetMinSize ( wxSize ( 300 , 150 ) ) ;
2013-05-26 04:36:44 +00:00
2015-06-16 12:20:42 +00:00
bSizer7 - > Add ( m_messagesPanel , 1 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-28 09:44:22 +00:00
m_MainSizer - > Add ( bSizer7 , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_sdbSizer1 = new wxStdDialogButtonSizer ( ) ;
m_sdbSizer1OK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1OK ) ;
m_sdbSizer1Cancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1Cancel ) ;
m_sdbSizer1 - > Realize ( ) ;
m_MainSizer - > Add ( m_sdbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
this - > SetSizer ( m_MainSizer ) ;
this - > Layout ( ) ;
2017-12-27 17:09:27 +00:00
m_MainSizer - > Fit ( this ) ;
2013-05-26 04:36:44 +00:00
this - > Centre ( wxBOTH ) ;
// Connect Events
2018-02-16 19:26:55 +00:00
m_browseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GEN_FOOTPRINT_POSITION_BASE : : OnOutputDirectoryBrowseClicked ) , NULL , this ) ;
2018-02-28 09:44:22 +00:00
m_sdbSizer1OK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GEN_FOOTPRINT_POSITION_BASE : : OnGenerate ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
2018-02-16 19:26:55 +00:00
DIALOG_GEN_FOOTPRINT_POSITION_BASE : : ~ DIALOG_GEN_FOOTPRINT_POSITION_BASE ( )
2013-05-26 04:36:44 +00:00
{
// Disconnect Events
2018-02-16 19:26:55 +00:00
m_browseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GEN_FOOTPRINT_POSITION_BASE : : OnOutputDirectoryBrowseClicked ) , NULL , this ) ;
2018-02-28 09:44:22 +00:00
m_sdbSizer1OK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_GEN_FOOTPRINT_POSITION_BASE : : OnGenerate ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}