2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2021-04-16 12:12:55 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2017-12-27 17:09:27 +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-06-13 12:20:29 +00:00
# include "dialog_export_svg_base.h"
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-06-13 12:20:29 +00:00
DIALOG_EXPORT_SVG_BASE : : DIALOG_EXPORT_SVG_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
{
2020-11-11 15:58:12 +00:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2013-05-26 04:36:44 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizer4 ;
bSizer4 = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
m_staticTextDir = new wxStaticText ( this , wxID_ANY , _ ( " Output directory: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextDir - > Wrap ( - 1 ) ;
2020-11-11 15:58:12 +00:00
bSizer4 - > Add ( m_staticTextDir , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
m_outputDirectoryName = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_outputDirectoryName - > SetToolTip ( _ ( " Enter a filename if you do not want to use default file names \n Can be used only when printing the current sheet " ) ) ;
m_outputDirectoryName - > SetMinSize ( wxSize ( 450 , - 1 ) ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
bSizer4 - > Add ( m_outputDirectoryName , 1 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
m_browseButton = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
bSizer4 - > Add ( m_browseButton , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2018-06-13 12:20:29 +00:00
bMainSizer - > Add ( bSizer4 , 0 , wxEXPAND | wxALL , 10 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxStaticBoxSizer * sbLayersSizer ;
2018-06-13 12:20:29 +00:00
sbLayersSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Layers " ) ) , wxHORIZONTAL ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
wxBoxSizer * bSizerCopper ;
bSizerCopper = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2017-12-27 17:09:27 +00:00
m_staticTextCopperLayers = new wxStaticText ( sbLayersSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Copper layers: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-06-19 18:29:13 +00:00
m_staticTextCopperLayers - > Wrap ( - 1 ) ;
2018-06-13 12:20:29 +00:00
bSizerCopper - > Add ( m_staticTextCopperLayers , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
wxArrayString m_CopperLayersListChoices ;
m_CopperLayersList = new wxCheckListBox ( sbLayersSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_CopperLayersListChoices , 0 ) ;
bSizerCopper - > Add ( m_CopperLayersList , 1 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
sbLayersSizer - > Add ( bSizerCopper , 1 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
wxBoxSizer * bSizerTech ;
bSizerTech = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2017-12-27 17:09:27 +00:00
m_staticTextTechLayers = new wxStaticText ( sbLayersSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Technical layers: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-06-19 18:29:13 +00:00
m_staticTextTechLayers - > Wrap ( - 1 ) ;
2018-06-13 12:20:29 +00:00
bSizerTech - > Add ( m_staticTextTechLayers , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
wxArrayString m_TechnicalLayersListChoices ;
m_TechnicalLayersList = new wxCheckListBox ( sbLayersSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_TechnicalLayersListChoices , 0 ) ;
bSizerTech - > Add ( m_TechnicalLayersList , 1 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
sbLayersSizer - > Add ( bSizerTech , 1 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
bUpperSizer - > Add ( sbLayersSizer , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxStaticBoxSizer * sbOptionsSizer ;
2018-06-13 12:20:29 +00:00
sbOptionsSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
wxString m_ModeColorOptionChoices [ ] = { _ ( " Color " ) , _ ( " Black and white " ) } ;
int m_ModeColorOptionNChoices = sizeof ( m_ModeColorOptionChoices ) / sizeof ( wxString ) ;
2018-06-13 12:20:29 +00:00
m_ModeColorOption = new wxRadioBox ( sbOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Print Mode " ) , wxDefaultPosition , wxDefaultSize , m_ModeColorOptionNChoices , m_ModeColorOptionChoices , 1 , wxRA_SPECIFY_COLS ) ;
2013-05-26 04:36:44 +00:00
m_ModeColorOption - > SetSelection ( 1 ) ;
2021-03-02 08:56:09 +00:00
m_ModeColorOption - > SetToolTip ( _ ( " Export as black elements on a white background " ) ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
sbOptionsSizer - > Add ( m_ModeColorOption , 0 , wxEXPAND | wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
wxString m_rbSvgPageSizeOptChoices [ ] = { _ ( " Page with frame and title block " ) , _ ( " Current page size " ) , _ ( " Board area only " ) } ;
2013-05-26 04:36:44 +00:00
int m_rbSvgPageSizeOptNChoices = sizeof ( m_rbSvgPageSizeOptChoices ) / sizeof ( wxString ) ;
2018-06-13 12:20:29 +00:00
m_rbSvgPageSizeOpt = new wxRadioBox ( sbOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " SVG Page Size " ) , wxDefaultPosition , wxDefaultSize , m_rbSvgPageSizeOptNChoices , m_rbSvgPageSizeOptChoices , 1 , wxRA_SPECIFY_COLS ) ;
2013-05-26 04:36:44 +00:00
m_rbSvgPageSizeOpt - > SetSelection ( 0 ) ;
2016-06-19 18:29:13 +00:00
sbOptionsSizer - > Add ( m_rbSvgPageSizeOpt , 0 , wxEXPAND | wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2016-06-19 18:29:13 +00:00
m_printMirrorOpt = new wxCheckBox ( sbOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Print mirrored " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2014-08-10 14:15:02 +00:00
m_printMirrorOpt - > SetToolTip ( _ ( " Print the layer(s) horizontally mirrored " ) ) ;
2020-11-11 15:58:12 +00:00
2021-04-16 12:12:55 +00:00
sbOptionsSizer - > Add ( m_printMirrorOpt , 0 , wxALL , 5 ) ;
m_checkboxPagePerLayer = new wxCheckBox ( sbOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Print one page per layer " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbOptionsSizer - > Add ( m_checkboxPagePerLayer , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
sbOptionsSizer - > Add ( 0 , 3 , 0 , wxEXPAND , 5 ) ;
m_checkboxEdgesOnAllPages = new wxCheckBox ( sbOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Print board edges on all pages " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbOptionsSizer - > Add ( m_checkboxEdgesOnAllPages , 0 , wxRIGHT | wxLEFT , 28 ) ;
2020-11-11 15:58:12 +00:00
2021-04-16 12:12:55 +00:00
sbOptionsSizer - > Add ( 0 , 0 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
bUpperSizer - > Add ( sbOptionsSizer , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
bMainSizer - > Add ( bUpperSizer , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-06-16 12:20:42 +00:00
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxVERTICAL ) ;
2020-11-11 15:58:12 +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 ) ) ;
2020-11-11 15:58:12 +00:00
2015-06-16 12:20:42 +00:00
bSizer5 - > Add ( m_messagesPanel , 1 , wxEXPAND | wxALL , 5 ) ;
2020-11-11 15:58:12 +00:00
2015-06-16 12:20:42 +00:00
bMainSizer - > Add ( bSizer5 , 1 , wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
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 ( ) ;
2020-11-11 15:58:12 +00:00
2018-06-13 12:20:29 +00:00
bMainSizer - > Add ( m_sdbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
2017-12-27 17:09:27 +00:00
bMainSizer - > Fit ( this ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
// Connect Events
2018-06-13 12:20:29 +00:00
m_browseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_SVG_BASE : : OnOutputDirectoryBrowseClicked ) , NULL , this ) ;
2021-04-16 12:12:55 +00:00
m_checkboxPagePerLayer - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_SVG_BASE : : onPagePerLayerClicked ) , NULL , this ) ;
2018-06-13 12:20:29 +00:00
m_sdbSizer1OK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_SVG_BASE : : OnButtonPlot ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
2018-06-13 12:20:29 +00:00
DIALOG_EXPORT_SVG_BASE : : ~ DIALOG_EXPORT_SVG_BASE ( )
2013-05-26 04:36:44 +00:00
{
// Disconnect Events
2018-06-13 12:20:29 +00:00
m_browseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_SVG_BASE : : OnOutputDirectoryBrowseClicked ) , NULL , this ) ;
2021-04-16 12:12:55 +00:00
m_checkboxPagePerLayer - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_SVG_BASE : : onPagePerLayerClicked ) , NULL , this ) ;
2018-06-13 12:20:29 +00:00
m_sdbSizer1OK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXPORT_SVG_BASE : : OnButtonPlot ) , NULL , this ) ;
2020-11-11 15:58:12 +00:00
2013-05-26 04:36:44 +00:00
}