2019-07-27 19:09:43 +00:00
///////////////////////////////////////////////////////////////////////////
2020-01-04 23:27:32 +00:00
// C++ code generated with wxFormBuilder (version v3.8.0)
2019-07-27 19:09:43 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "panel_board_stackup_base.h"
///////////////////////////////////////////////////////////////////////////
PANEL_SETUP_BOARD_STACKUP_BASE : : PANEL_SETUP_BOARD_STACKUP_BASE ( wxWindow * parent , wxWindowID id , const wxPoint & pos , const wxSize & size , long style , const wxString & name ) : wxPanel ( parent , id , pos , size , style , name )
{
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizerBrdThickness ;
bSizerBrdThickness = new wxBoxSizer ( wxHORIZONTAL ) ;
m_thicknessLabel = new wxStaticText ( this , wxID_ANY , _ ( " Board thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_thicknessLabel - > Wrap ( - 1 ) ;
bSizerBrdThickness - > Add ( m_thicknessLabel , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_thicknessCtrl = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerBrdThickness - > Add ( m_thicknessCtrl , 0 , wxALL , 5 ) ;
bSizerBrdThickness - > Add ( 20 , 0 , 0 , 0 , 5 ) ;
m_staticTextCT = new wxStaticText ( this , wxID_ANY , _ ( " Current thickness from stackup: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextCT - > Wrap ( - 1 ) ;
bSizerBrdThickness - > Add ( m_staticTextCT , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_tcCTValue = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_READONLY ) ;
bSizerBrdThickness - > Add ( m_tcCTValue , 0 , wxALL , 5 ) ;
bSizerBrdThickness - > Add ( 5 , 0 , 0 , 0 , 5 ) ;
m_buttonSetDielectricThickness = new wxButton ( this , wxID_ANY , _ ( " Set Dielectric Thickness " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonSetDielectricThickness - > SetToolTip ( _ ( " Set thickness of all not locked dielectric layers. \n The thickness will be the same for all not locked dielectric layers. " ) ) ;
bSizerBrdThickness - > Add ( m_buttonSetDielectricThickness , 0 , wxALL , 5 ) ;
2019-09-07 12:57:38 +00:00
bMainSizer - > Add ( bSizerBrdThickness , 0 , wxEXPAND | wxALL , 5 ) ;
2019-07-27 19:09:43 +00:00
m_staticline = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2019-09-07 12:57:38 +00:00
bMainSizer - > Add ( m_staticline , 0 , wxEXPAND | wxRIGHT | wxLEFT , 10 ) ;
2019-07-27 19:09:43 +00:00
2019-09-06 18:59:13 +00:00
m_sizerStackup = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-07-27 19:09:43 +00:00
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxVERTICAL ) ;
m_scGridWin = new wxScrolledWindow ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxHSCROLL | wxVSCROLL ) ;
m_scGridWin - > SetScrollRate ( 5 , 5 ) ;
2019-09-07 12:57:38 +00:00
m_fgGridSizer = new wxFlexGridSizer ( 0 , 9 , 0 , 2 ) ;
2019-09-06 18:59:13 +00:00
m_fgGridSizer - > SetFlexibleDirection ( wxHORIZONTAL ) ;
2019-07-27 19:09:43 +00:00
m_fgGridSizer - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-09-09 18:30:43 +00:00
m_staticTextLayer = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Layer " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextLayer - > Wrap ( - 1 ) ;
m_staticTextLayer - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextLayer , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-09-25 07:27:36 +00:00
m_staticTextLayerId = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Id " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextLayerId - > Wrap ( - 1 ) ;
m_staticTextLayerId - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-25 07:27:36 +00:00
m_fgGridSizer - > Add ( m_staticTextLayerId , 0 , wxALL | wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-07-27 19:09:43 +00:00
2019-09-09 18:30:43 +00:00
m_staticTextType = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Type " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextType - > Wrap ( - 1 ) ;
m_staticTextType - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextType , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-09-09 18:30:43 +00:00
m_staticTextMaterial = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Material " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextMaterial - > Wrap ( - 1 ) ;
m_staticTextMaterial - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextMaterial , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-09-09 18:30:43 +00:00
m_staticTextThickness = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Thickness " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextThickness - > Wrap ( - 1 ) ;
m_staticTextThickness - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextThickness , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-09-05 19:00:14 +00:00
m_bitmapLockThickness = new wxStaticBitmap ( m_scGridWin , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_bitmapLockThickness , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-07-27 19:09:43 +00:00
2019-09-09 18:30:43 +00:00
m_staticTextColor = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Color " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextColor - > Wrap ( - 1 ) ;
m_staticTextColor - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextColor , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-09-09 18:30:43 +00:00
m_staticTextEpsilonR = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Epsilon R " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
m_staticTextEpsilonR - > Wrap ( - 1 ) ;
m_staticTextEpsilonR - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextEpsilonR , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_staticTextLossTg = new wxStaticText ( m_scGridWin , wxID_ANY , _ ( " Loss Tg " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_LEFT ) ;
2019-09-09 18:30:43 +00:00
m_staticTextLossTg - > Wrap ( - 1 ) ;
m_staticTextLossTg - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-07-27 19:09:43 +00:00
2019-09-24 12:33:28 +00:00
m_fgGridSizer - > Add ( m_staticTextLossTg , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_CENTER_HORIZONTAL , 2 ) ;
2019-07-27 19:09:43 +00:00
m_scGridWin - > SetSizer ( m_fgGridSizer ) ;
m_scGridWin - > Layout ( ) ;
m_fgGridSizer - > Fit ( m_scGridWin ) ;
2019-09-07 12:57:38 +00:00
bSizer5 - > Add ( m_scGridWin , 1 , wxEXPAND | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
2019-07-27 19:09:43 +00:00
2019-09-07 12:57:38 +00:00
m_sizerStackup - > Add ( bSizer5 , 1 , wxEXPAND , 5 ) ;
2019-07-27 19:09:43 +00:00
wxBoxSizer * bSizerRight ;
bSizerRight = new wxBoxSizer ( wxVERTICAL ) ;
wxString m_rbDielectricConstraintChoices [ ] = { _ ( " No constraint " ) , _ ( " Impedance controlled " ) } ;
int m_rbDielectricConstraintNChoices = sizeof ( m_rbDielectricConstraintChoices ) / sizeof ( wxString ) ;
m_rbDielectricConstraint = new wxRadioBox ( this , wxID_ANY , _ ( " Impedance Control " ) , wxDefaultPosition , wxDefaultSize , m_rbDielectricConstraintNChoices , m_rbDielectricConstraintChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_rbDielectricConstraint - > SetSelection ( 0 ) ;
m_rbDielectricConstraint - > SetToolTip ( _ ( " If Impedance Controlled option is set, \n Loss tangent and EpsilonR will be added to constraints. " ) ) ;
2019-09-06 18:59:13 +00:00
bSizerRight - > Add ( m_rbDielectricConstraint , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-07-27 19:09:43 +00:00
2019-11-11 18:34:48 +00:00
m_buttonAddDielectricLayer = new wxButton ( this , wxID_ANY , _ ( " Add Dielectric Layer " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerRight - > Add ( m_buttonAddDielectricLayer , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
m_buttonRemoveDielectricLayer = new wxButton ( this , wxID_ANY , _ ( " Remove Dielectric Layer " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerRight - > Add ( m_buttonRemoveDielectricLayer , 0 , wxTOP | wxBOTTOM | wxRIGHT | wxEXPAND , 5 ) ;
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizerRight - > Add ( m_staticline2 , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-07-27 19:09:43 +00:00
wxStaticBoxSizer * sbSizerBrdOptions ;
sbSizerBrdOptions = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Board Finish " ) ) , wxVERTICAL ) ;
m_cbCastellatedPads = new wxCheckBox ( sbSizerBrdOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Has castellated pads " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-11-11 18:34:48 +00:00
sbSizerBrdOptions - > Add ( m_cbCastellatedPads , 0 , wxTOP | wxBOTTOM , 5 ) ;
2019-07-27 19:09:43 +00:00
m_cbEgdesPlated = new wxCheckBox ( sbSizerBrdOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Plated board edge " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-09-06 18:59:13 +00:00
sbSizerBrdOptions - > Add ( m_cbEgdesPlated , 0 , wxBOTTOM , 5 ) ;
2019-07-27 19:09:43 +00:00
m_staticTextFinish = new wxStaticText ( sbSizerBrdOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Copper finish: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextFinish - > Wrap ( - 1 ) ;
2019-09-06 18:59:13 +00:00
sbSizerBrdOptions - > Add ( m_staticTextFinish , 0 , wxTOP | wxRIGHT , 10 ) ;
2019-07-27 19:09:43 +00:00
wxArrayString m_choiceFinishChoices ;
m_choiceFinish = new wxChoice ( sbSizerBrdOptions - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceFinishChoices , 0 ) ;
m_choiceFinish - > SetSelection ( 0 ) ;
2019-09-06 18:59:13 +00:00
sbSizerBrdOptions - > Add ( m_choiceFinish , 0 , wxEXPAND | wxTOP | wxBOTTOM , 2 ) ;
2019-07-27 19:09:43 +00:00
m_staticTextEdgeConn = new wxStaticText ( sbSizerBrdOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Edge card connectors: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextEdgeConn - > Wrap ( - 1 ) ;
2019-09-06 18:59:13 +00:00
sbSizerBrdOptions - > Add ( m_staticTextEdgeConn , 0 , wxTOP , 10 ) ;
2019-07-27 19:09:43 +00:00
wxString m_choiceEdgeConnChoices [ ] = { _ ( " None " ) , _ ( " Yes " ) , _ ( " Yes, bevelled " ) } ;
int m_choiceEdgeConnNChoices = sizeof ( m_choiceEdgeConnChoices ) / sizeof ( wxString ) ;
m_choiceEdgeConn = new wxChoice ( sbSizerBrdOptions - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceEdgeConnNChoices , m_choiceEdgeConnChoices , 0 ) ;
m_choiceEdgeConn - > SetSelection ( 0 ) ;
m_choiceEdgeConn - > SetToolTip ( _ ( " Options for edge card connectors. " ) ) ;
2019-09-06 18:59:13 +00:00
sbSizerBrdOptions - > Add ( m_choiceEdgeConn , 0 , wxEXPAND | wxTOP | wxBOTTOM , 2 ) ;
2019-07-27 19:09:43 +00:00
2019-11-11 18:34:48 +00:00
bSizerRight - > Add ( sbSizerBrdOptions , 0 , wxEXPAND | wxTOP | wxRIGHT , 5 ) ;
bSizerRight - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2019-07-27 19:09:43 +00:00
2019-09-06 18:59:13 +00:00
m_buttonExport = new wxButton ( this , wxID_ANY , _ ( " Export to Clipboard " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerRight - > Add ( m_buttonExport , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-09-06 09:26:27 +00:00
2019-07-27 19:09:43 +00:00
2019-09-06 18:59:13 +00:00
m_sizerStackup - > Add ( bSizerRight , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2019-07-27 19:09:43 +00:00
2019-09-06 18:59:13 +00:00
bMainSizer - > Add ( m_sizerStackup , 1 , wxEXPAND , 5 ) ;
2019-07-27 19:09:43 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
// Connect Events
m_thicknessCtrl - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onUpdateThicknessValue ) , NULL , this ) ;
m_buttonSetDielectricThickness - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onCalculateDielectricThickness ) , NULL , this ) ;
2019-11-11 18:34:48 +00:00
m_buttonAddDielectricLayer - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onAddDielectricLayer ) , NULL , this ) ;
m_buttonRemoveDielectricLayer - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onRemoveDielectricLayer ) , NULL , this ) ;
m_buttonRemoveDielectricLayer - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onRemoveDielUI ) , NULL , this ) ;
2019-09-06 09:26:27 +00:00
m_buttonExport - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onExportToClipboard ) , NULL , this ) ;
2019-07-27 19:09:43 +00:00
}
PANEL_SETUP_BOARD_STACKUP_BASE : : ~ PANEL_SETUP_BOARD_STACKUP_BASE ( )
{
// Disconnect Events
m_thicknessCtrl - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onUpdateThicknessValue ) , NULL , this ) ;
m_buttonSetDielectricThickness - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onCalculateDielectricThickness ) , NULL , this ) ;
2019-11-11 18:34:48 +00:00
m_buttonAddDielectricLayer - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onAddDielectricLayer ) , NULL , this ) ;
m_buttonRemoveDielectricLayer - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onRemoveDielectricLayer ) , NULL , this ) ;
m_buttonRemoveDielectricLayer - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onRemoveDielUI ) , NULL , this ) ;
2019-09-06 09:26:27 +00:00
m_buttonExport - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_SETUP_BOARD_STACKUP_BASE : : onExportToClipboard ) , NULL , this ) ;
2019-07-27 19:09:43 +00:00
}