2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2015-12-12 18:32:18 +00:00
// C++ code generated with wxFormBuilder (version Jun 17 2015)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
2015-06-16 12:20:42 +00:00
# include "wx_html_report_panel.h"
2013-05-26 04:36:44 +00:00
# include "dialog_plot_schematic_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_PLOT_SCHEMATIC_BASE : : DIALOG_PLOT_SCHEMATIC_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2015-12-21 15:08:37 +00:00
wxBoxSizer * bSizerDir ;
bSizerDir = new wxBoxSizer ( wxHORIZONTAL ) ;
2014-10-26 13:59:01 +00:00
m_staticTextOutputDirectory = new wxStaticText ( this , wxID_ANY , _ ( " Output directory: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextOutputDirectory - > Wrap ( - 1 ) ;
2015-12-21 15:08:37 +00:00
bSizerDir - > Add ( m_staticTextOutputDirectory , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2014-10-26 13:59:01 +00:00
m_outputDirectoryName = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_outputDirectoryName - > SetMaxLength ( 0 ) ;
2014-11-02 16:25:04 +00:00
m_outputDirectoryName - > SetToolTip ( _ ( " Target directory for plot files. Can be absolute or relative to the schematic main file location. " ) ) ;
2014-10-26 13:59:01 +00:00
2015-12-21 15:08:37 +00:00
bSizerDir - > Add ( m_outputDirectoryName , 1 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2014-10-26 13:59:01 +00:00
m_browseButton = new wxButton ( this , wxID_ANY , _ ( " Browse... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-12-21 15:08:37 +00:00
bSizerDir - > Add ( m_browseButton , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2014-10-26 13:59:01 +00:00
2015-12-21 15:08:37 +00:00
bMainSizer - > Add ( bSizerDir , 0 , wxBOTTOM | wxEXPAND , 10 ) ;
2014-10-26 13:59:01 +00:00
2013-05-26 04:36:44 +00:00
m_optionsSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2015-12-21 15:08:37 +00:00
wxString m_plotFormatOptChoices [ ] = { _ ( " Postscript " ) , _ ( " PDF " ) , _ ( " SVG " ) , _ ( " DXF " ) , _ ( " HPGL " ) } ;
int m_plotFormatOptNChoices = sizeof ( m_plotFormatOptChoices ) / sizeof ( wxString ) ;
m_plotFormatOpt = new wxRadioBox ( this , wxID_ANY , _ ( " Format " ) , wxDefaultPosition , wxDefaultSize , m_plotFormatOptNChoices , m_plotFormatOptChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_plotFormatOpt - > SetSelection ( 1 ) ;
m_optionsSizer - > Add ( m_plotFormatOpt , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2013-05-26 04:36:44 +00:00
m_paperOptionsSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Paper Options " ) ) , wxVERTICAL ) ;
wxString m_PaperSizeOptionChoices [ ] = { _ ( " Schematic size " ) , _ ( " Force size A4 " ) , _ ( " Force size A " ) } ;
int m_PaperSizeOptionNChoices = sizeof ( m_PaperSizeOptionChoices ) / sizeof ( wxString ) ;
2015-12-12 18:32:18 +00:00
m_PaperSizeOption = new wxRadioBox ( m_paperOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Page Size: " ) , wxDefaultPosition , wxDefaultSize , m_PaperSizeOptionNChoices , m_PaperSizeOptionChoices , 1 , wxRA_SPECIFY_COLS ) ;
2015-06-16 12:20:42 +00:00
m_PaperSizeOption - > SetSelection ( 1 ) ;
2013-05-26 04:36:44 +00:00
m_paperOptionsSizer - > Add ( m_PaperSizeOption , 0 , wxALL | wxEXPAND , 5 ) ;
2015-12-12 18:32:18 +00:00
m_paperHPGLSizer = new wxStaticBoxSizer ( new wxStaticBox ( m_paperOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " HPGL Options " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2015-12-12 18:32:18 +00:00
m_staticText4 = new wxStaticText ( m_paperHPGLSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Page Size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_staticText4 - > Wrap ( - 1 ) ;
m_paperHPGLSizer - > Add ( m_staticText4 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
wxString m_HPGLPaperSizeOptionChoices [ ] = { _ ( " Schematic size " ) , _ ( " Page size A4 " ) , _ ( " Page size A3 " ) , _ ( " Page size A2 " ) , _ ( " Page size A1 " ) , _ ( " Page size A0 " ) , _ ( " Page size A " ) , _ ( " Page size B " ) , _ ( " Page size C " ) , _ ( " Page size D " ) , _ ( " Page size E " ) } ;
int m_HPGLPaperSizeOptionNChoices = sizeof ( m_HPGLPaperSizeOptionChoices ) / sizeof ( wxString ) ;
2015-12-12 18:32:18 +00:00
m_HPGLPaperSizeOption = new wxChoice ( m_paperHPGLSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_HPGLPaperSizeOptionNChoices , m_HPGLPaperSizeOptionChoices , 0 ) ;
2013-05-26 04:36:44 +00:00
m_HPGLPaperSizeOption - > SetSelection ( 0 ) ;
m_paperHPGLSizer - > Add ( m_HPGLPaperSizeOption , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
wxString m_plotOriginOptChoices [ ] = { _ ( " Bottom left corner " ) , _ ( " Center of the page " ) } ;
int m_plotOriginOptNChoices = sizeof ( m_plotOriginOptChoices ) / sizeof ( wxString ) ;
2015-12-12 18:32:18 +00:00
m_plotOriginOpt = new wxRadioBox ( m_paperHPGLSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Origin " ) , wxDefaultPosition , wxDefaultSize , m_plotOriginOptNChoices , m_plotOriginOptChoices , 1 , wxRA_SPECIFY_COLS ) ;
2013-05-26 04:36:44 +00:00
m_plotOriginOpt - > SetSelection ( 0 ) ;
m_paperHPGLSizer - > Add ( m_plotOriginOpt , 0 , wxALL , 5 ) ;
2015-12-12 18:32:18 +00:00
m_penHPLGWidthTitle = new wxStaticText ( m_paperHPGLSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Pen width " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_penHPLGWidthTitle - > Wrap ( - 1 ) ;
m_paperHPGLSizer - > Add ( m_penHPLGWidthTitle , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2015-12-12 18:32:18 +00:00
m_penHPGLWidthCtrl = new wxTextCtrl ( m_paperHPGLSizer - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_penHPGLWidthCtrl - > SetMaxLength ( 0 ) ;
m_paperHPGLSizer - > Add ( m_penHPGLWidthCtrl , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
m_paperOptionsSizer - > Add ( m_paperHPGLSizer , 1 , wxEXPAND , 5 ) ;
m_optionsSizer - > Add ( m_paperOptionsSizer , 0 , wxEXPAND , 5 ) ;
wxStaticBoxSizer * sbSizerPlotFormat ;
sbSizerPlotFormat = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " General Options " ) ) , wxVERTICAL ) ;
2015-12-12 18:32:18 +00:00
m_defaultLineWidthTitle = new wxStaticText ( sbSizerPlotFormat - > GetStaticBox ( ) , wxID_ANY , _ ( " Default line thickness " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_defaultLineWidthTitle - > Wrap ( - 1 ) ;
sbSizerPlotFormat - > Add ( m_defaultLineWidthTitle , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2015-12-12 18:32:18 +00:00
m_DefaultLineSizeCtrl = new wxTextCtrl ( sbSizerPlotFormat - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_DefaultLineSizeCtrl - > SetMaxLength ( 0 ) ;
m_DefaultLineSizeCtrl - > SetToolTip ( _ ( " Selection of the default pen thickness used to draw items, when their thickness is set to 0. " ) ) ;
sbSizerPlotFormat - > Add ( m_DefaultLineSizeCtrl , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
wxString m_ModeColorOptionChoices [ ] = { _ ( " Color " ) , _ ( " Black and white " ) } ;
int m_ModeColorOptionNChoices = sizeof ( m_ModeColorOptionChoices ) / sizeof ( wxString ) ;
2015-12-12 18:32:18 +00:00
m_ModeColorOption = new wxRadioBox ( sbSizerPlotFormat - > GetStaticBox ( ) , wxID_ANY , _ ( " Mode " ) , wxDefaultPosition , wxDefaultSize , m_ModeColorOptionNChoices , m_ModeColorOptionChoices , 1 , wxRA_SPECIFY_COLS ) ;
2013-05-26 04:36:44 +00:00
m_ModeColorOption - > SetSelection ( 1 ) ;
m_ModeColorOption - > SetToolTip ( _ ( " Choose if you want to draw the sheet like it appears on screen, \n or in black and white mode, better to print it when using black and white printers " ) ) ;
sbSizerPlotFormat - > Add ( m_ModeColorOption , 0 , wxALL | wxEXPAND , 5 ) ;
2015-12-12 18:32:18 +00:00
m_PlotFrameRefOpt = new wxCheckBox ( sbSizerPlotFormat - > GetStaticBox ( ) , wxID_ANY , _ ( " Plot border and title block " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_PlotFrameRefOpt - > SetValue ( true ) ;
m_PlotFrameRefOpt - > SetToolTip ( _ ( " Print (or not) the Frame references. " ) ) ;
sbSizerPlotFormat - > Add ( m_PlotFrameRefOpt , 0 , wxALL , 5 ) ;
m_optionsSizer - > Add ( sbSizerPlotFormat , 0 , wxEXPAND | wxLEFT , 5 ) ;
m_ButtonsSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_buttonPlotCurrent = new wxButton ( this , wxID_PRINT_CURRENT , _ ( " Plot Current Page " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonPlotCurrent - > SetDefault ( ) ;
2015-06-15 13:54:58 +00:00
m_ButtonsSizer - > Add ( m_buttonPlotCurrent , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
m_buttonPlotAll = new wxButton ( this , wxID_PRINT_ALL , _ ( " Plot All Pages " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonPlotAll - > SetDefault ( ) ;
2015-06-15 13:54:58 +00:00
m_ButtonsSizer - > Add ( m_buttonPlotAll , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
m_buttonQuit = new wxButton ( this , wxID_CANCEL , _ ( " Close " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-06-15 13:54:58 +00:00
m_ButtonsSizer - > Add ( m_buttonQuit , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
m_optionsSizer - > Add ( m_ButtonsSizer , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
bMainSizer - > Add ( m_optionsSizer , 0 , wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2015-12-21 15:08:37 +00:00
wxBoxSizer * bSizerMsgPanel ;
bSizerMsgPanel = new wxBoxSizer ( wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2015-06-16 12:20:42 +00:00
m_MessagesBox = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_MessagesBox - > SetMinSize ( wxSize ( 300 , 150 ) ) ;
2013-05-26 04:36:44 +00:00
2015-12-21 15:08:37 +00:00
bSizerMsgPanel - > Add ( m_MessagesBox , 1 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-12-21 15:08:37 +00:00
bMainSizer - > Add ( bSizerMsgPanel , 1 , wxBOTTOM | wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnCloseWindow ) ) ;
2014-10-26 13:59:01 +00:00
m_browseButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnOutputDirectoryBrowseClicked ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_plotFormatOpt - > Connect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnPlotFormatSelection ) , NULL , this ) ;
2015-12-21 15:08:37 +00:00
m_HPGLPaperSizeOption - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnHPGLPageSelected ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_buttonPlotCurrent - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnButtonPlotCurrentClick ) , NULL , this ) ;
m_buttonPlotAll - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnButtonPlotAllClick ) , NULL , this ) ;
m_buttonQuit - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnButtonCancelClick ) , NULL , this ) ;
}
DIALOG_PLOT_SCHEMATIC_BASE : : ~ DIALOG_PLOT_SCHEMATIC_BASE ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnCloseWindow ) ) ;
2014-10-26 13:59:01 +00:00
m_browseButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnOutputDirectoryBrowseClicked ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_plotFormatOpt - > Disconnect ( wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnPlotFormatSelection ) , NULL , this ) ;
2015-12-21 15:08:37 +00:00
m_HPGLPaperSizeOption - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnHPGLPageSelected ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_buttonPlotCurrent - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnButtonPlotCurrentClick ) , NULL , this ) ;
m_buttonPlotAll - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnButtonPlotAllClick ) , NULL , this ) ;
m_buttonQuit - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_PLOT_SCHEMATIC_BASE : : OnButtonCancelClick ) , NULL , this ) ;
}