2021-11-02 09:18:58 +00:00
///////////////////////////////////////////////////////////////////////////
2022-08-07 22:09:20 +00:00
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
2021-11-02 09:18:58 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_teardrop_base.h"
///////////////////////////////////////////////////////////////////////////
TEARDROP_DIALOG_BASE : : TEARDROP_DIALOG_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 ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizerMain ;
bSizerMain = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizerUpper ;
bSizerUpper = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizerTop ;
bSizerTop = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizeScopeSize ;
2022-01-16 09:24:23 +00:00
bSizeScopeSize = new wxBoxSizer ( wxVERTICAL ) ;
2021-11-02 09:18:58 +00:00
2021-12-19 09:30:31 +00:00
wxFlexGridSizer * fgSizerBitmaps ;
2022-08-07 22:09:20 +00:00
fgSizerBitmaps = new wxFlexGridSizer ( 0 , 4 , 5 , 0 ) ;
2022-01-16 09:24:23 +00:00
fgSizerBitmaps - > AddGrowableCol ( 2 ) ;
2021-12-19 09:30:31 +00:00
fgSizerBitmaps - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerBitmaps - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2022-08-07 22:09:20 +00:00
m_staticTextRndS = new wxStaticText ( this , wxID_ANY , _ ( " Round shapes: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_staticTextRndS - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerBitmaps - > Add ( m_staticTextRndS , 0 , wxTOP | wxBOTTOM , 12 ) ;
2021-11-02 09:18:58 +00:00
m_bitmapTdCircularInfo = new wxStaticBitmap ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
fgSizerBitmaps - > Add ( m_bitmapTdCircularInfo , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-12-19 09:30:31 +00:00
2022-01-16 09:24:23 +00:00
wxFlexGridSizer * fgSizerParmRound ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound = new wxFlexGridSizer ( 0 , 6 , 5 , 0 ) ;
2022-01-16 09:24:23 +00:00
fgSizerParmRound - > AddGrowableCol ( 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > AddGrowableCol ( 4 ) ;
2022-01-16 09:24:23 +00:00
fgSizerParmRound - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerParmRound - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_stHsettingRound = new wxStaticText ( this , wxID_ANY , _ ( " Best length: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stHsettingRound - > Wrap ( - 1 ) ;
fgSizerParmRound - > Add ( m_stHsettingRound , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
m_spTeardropLenPercentRound = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 20 , 100 , 40.000000 , 10 ) ;
m_spTeardropLenPercentRound - > SetDigits ( 0 ) ;
fgSizerParmRound - > Add ( m_spTeardropLenPercentRound , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
m_stTeardropLenUnits = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stTeardropLenUnits - > Wrap ( - 1 ) ;
fgSizerParmRound - > Add ( m_stTeardropLenUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_stVsettingRound = new wxStaticText ( this , wxID_ANY , _ ( " Best height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stVsettingRound - > Wrap ( - 1 ) ;
fgSizerParmRound - > Add ( m_stVsettingRound , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
m_spTeardropSizePercentRound = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 60 , 100 , 100.000000 , 10 ) ;
m_spTeardropSizePercentRound - > SetDigits ( 0 ) ;
fgSizerParmRound - > Add ( m_spTeardropSizePercentRound , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
m_stLenPercentRound = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stLenPercentRound - > Wrap ( - 1 ) ;
fgSizerParmRound - > Add ( m_stLenPercentRound , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_stMaxLenRound = new wxStaticText ( this , wxID_ANY , _ ( " Max length: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stMaxLenRound - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_stMaxLenRound , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2021-12-19 09:30:31 +00:00
2022-01-16 09:24:23 +00:00
m_tcTdMaxLenRound = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_tcTdMaxLenRound , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
m_stMaxLenRoundUnits = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stMaxLenRoundUnits - > Wrap ( - 1 ) ;
fgSizerParmRound - > Add ( m_stMaxLenRoundUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_stTdMaxSizeRound = new wxStaticText ( this , wxID_ANY , _ ( " Max height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stTdMaxSizeRound - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_stTdMaxSizeRound , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 09:24:23 +00:00
m_tcMaxHeightRound = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_tcMaxHeightRound , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_stMaxHeightRoundUnits = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stMaxHeightRoundUnits - > Wrap ( - 1 ) ;
fgSizerParmRound - > Add ( m_stMaxHeightRoundUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2022-01-16 09:24:23 +00:00
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_stHDRatioRound = new wxStaticText ( this , wxID_ANY , _ ( " Max height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-30 14:32:38 +00:00
m_stHDRatioRound - > Wrap ( - 1 ) ;
m_stHDRatioRound - > SetToolTip ( _ ( " Max pad/via size to track width ratio to create a teardrop. \n 100 always creates a teardrop. " ) ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_stHDRatioRound , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
2022-01-30 14:32:38 +00:00
m_spTeardropHDPercentRound = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 100 , 90 , 10 ) ;
m_spTeardropHDPercentRound - > SetDigits ( 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_spTeardropHDPercentRound , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2022-01-30 14:32:38 +00:00
2022-08-07 22:09:20 +00:00
m_stHDPercentRound = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-30 14:32:38 +00:00
m_stHDPercentRound - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRound - > Add ( m_stHDPercentRound , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
fgSizerBitmaps - > Add ( fgSizerParmRound , 1 , wxEXPAND | wxTOP | wxBOTTOM | wxLEFT , 10 ) ;
wxString m_rbShapeRoundChoices [ ] = { _ ( " Straight lines " ) , _ ( " Curved " ) } ;
int m_rbShapeRoundNChoices = sizeof ( m_rbShapeRoundChoices ) / sizeof ( wxString ) ;
m_rbShapeRound = new wxRadioBox ( this , wxID_ANY , _ ( " Style " ) , wxDefaultPosition , wxDefaultSize , m_rbShapeRoundNChoices , m_rbShapeRoundChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_rbShapeRound - > SetSelection ( 0 ) ;
fgSizerBitmaps - > Add ( m_rbShapeRound , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxEXPAND , 10 ) ;
2022-01-30 14:32:38 +00:00
2022-08-07 22:09:20 +00:00
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline2 , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_staticline3 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline3 , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_staticline4 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline4 , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_staticline5 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline5 , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_staticTextRectS = new wxStaticText ( this , wxID_ANY , _ ( " Rect shapes: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_staticTextRectS - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerBitmaps - > Add ( m_staticTextRectS , 0 , wxTOP | wxBOTTOM , 12 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 09:24:23 +00:00
m_bitmapTdRectangularInfo = new wxStaticBitmap ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizerBitmaps - > Add ( m_bitmapTdRectangularInfo , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
wxFlexGridSizer * fgSizerParmRect ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect = new wxFlexGridSizer ( 0 , 6 , 5 , 0 ) ;
2022-01-16 09:24:23 +00:00
fgSizerParmRect - > AddGrowableCol ( 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > AddGrowableCol ( 4 ) ;
2022-01-16 09:24:23 +00:00
fgSizerParmRect - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerParmRect - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2022-08-07 22:09:20 +00:00
m_stHsettingRect = new wxStaticText ( this , wxID_ANY , _ ( " Best length: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stHsettingRect - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stHsettingRect , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
m_spTeardropLenPercentRect = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 20 , 100 , 50.000000 , 10 ) ;
m_spTeardropLenPercentRect - > SetDigits ( 0 ) ;
fgSizerParmRect - > Add ( m_spTeardropLenPercentRect , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
m_stHDPercentRect = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stHDPercentRect - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stHDPercentRect , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_stVsettingRect = new wxStaticText ( this , wxID_ANY , _ ( " Best height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stVsettingRect - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stVsettingRect , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
m_spTeardropSizePercentRect = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 60 , 100 , 100.000000 , 10 ) ;
m_spTeardropSizePercentRect - > SetDigits ( 0 ) ;
fgSizerParmRect - > Add ( m_spTeardropSizePercentRect , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_stLenPercentRect = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stLenPercentRect - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stLenPercentRect , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_stMaxLenRect = new wxStaticText ( this , wxID_ANY , _ ( " Max length: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stMaxLenRect - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( m_stMaxLenRect , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 09:24:23 +00:00
m_tcTdMaxLenRect = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( m_tcTdMaxLenRect , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_stMaxLenRectUnits = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stMaxLenRectUnits - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stMaxLenRectUnits , 0 , wxRIGHT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_stTdMaxSizeRect = new wxStaticText ( this , wxID_ANY , _ ( " Max height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stTdMaxSizeRect - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( m_stTdMaxSizeRect , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 09:24:23 +00:00
m_tcMaxHeightRect = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( m_tcMaxHeightRect , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_stMaxHeightRectUnits = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stMaxHeightRectUnits - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stMaxHeightRectUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_stHDRatioRect = new wxStaticText ( this , wxID_ANY , _ ( " Max height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-30 14:32:38 +00:00
m_stHDRatioRect - > Wrap ( - 1 ) ;
m_stHDRatioRect - > SetToolTip ( _ ( " Max pad/via size to track width ratio to create a teardrop. \n 100 always creates a teardrop. " ) ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( m_stHDRatioRect , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
2022-01-30 14:32:38 +00:00
m_spTeardropHDPercentRect = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 100 , 90 , 10 ) ;
m_spTeardropHDPercentRect - > SetDigits ( 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmRect - > Add ( m_spTeardropHDPercentRect , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
m_stTeardropHUnits = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stTeardropHUnits - > Wrap ( - 1 ) ;
fgSizerParmRect - > Add ( m_stTeardropHUnits , 0 , wxRIGHT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2022-01-30 14:32:38 +00:00
2022-08-07 22:09:20 +00:00
fgSizerBitmaps - > Add ( fgSizerParmRect , 1 , wxEXPAND | wxTOP | wxBOTTOM | wxLEFT , 10 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
wxString m_rbShapeRectChoices [ ] = { _ ( " Straight lines " ) , _ ( " Curved " ) } ;
int m_rbShapeRectNChoices = sizeof ( m_rbShapeRectChoices ) / sizeof ( wxString ) ;
m_rbShapeRect = new wxRadioBox ( this , wxID_ANY , _ ( " Style " ) , wxDefaultPosition , wxDefaultSize , m_rbShapeRectNChoices , m_rbShapeRectChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_rbShapeRect - > SetSelection ( 0 ) ;
fgSizerBitmaps - > Add ( m_rbShapeRect , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxLEFT , 10 ) ;
m_staticline6 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline6 , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_staticline7 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline7 , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
m_staticline8 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline8 , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
m_staticline9 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
fgSizerBitmaps - > Add ( m_staticline9 , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
m_staticTextTrck = new wxStaticText ( this , wxID_ANY , _ ( " Tracks: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_staticTextTrck - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerBitmaps - > Add ( m_staticTextTrck , 0 , wxTOP | wxBOTTOM , 12 ) ;
2022-01-16 09:24:23 +00:00
m_bitmapTdTrackInfo = new wxStaticBitmap ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizerBitmaps - > Add ( m_bitmapTdTrackInfo , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 09:24:23 +00:00
wxFlexGridSizer * fgSizerParmTrack ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack = new wxFlexGridSizer ( 0 , 6 , 5 , 0 ) ;
2022-01-16 09:24:23 +00:00
fgSizerParmTrack - > AddGrowableCol ( 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > AddGrowableCol ( 4 ) ;
2022-01-16 09:24:23 +00:00
fgSizerParmTrack - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerParmTrack - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_stHsettingtrack = new wxStaticText ( this , wxID_ANY , _ ( " Best length: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stHsettingtrack - > Wrap ( - 1 ) ;
fgSizerParmTrack - > Add ( m_stHsettingtrack , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
m_spTeardropLenPercentTrack = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 20 , 100 , 100.000000 , 10 ) ;
m_spTeardropLenPercentTrack - > SetDigits ( 0 ) ;
fgSizerParmTrack - > Add ( m_spTeardropLenPercentTrack , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_stTeardropLenTrackUnits = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stTeardropLenTrackUnits - > Wrap ( - 1 ) ;
fgSizerParmTrack - > Add ( m_stTeardropLenTrackUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_stVsettingtrack = new wxStaticText ( this , wxID_ANY , _ ( " Best height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stVsettingtrack - > Wrap ( - 1 ) ;
fgSizerParmTrack - > Add ( m_stVsettingtrack , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
m_spTeardropSizePercentTrack = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 60 , 100 , 100.000000 , 10 ) ;
m_spTeardropSizePercentTrack - > SetDigits ( 0 ) ;
fgSizerParmTrack - > Add ( m_spTeardropSizePercentTrack , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_stLenPercentTrack = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stLenPercentTrack - > Wrap ( - 1 ) ;
fgSizerParmTrack - > Add ( m_stLenPercentTrack , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_stMaxLenTrack = new wxStaticText ( this , wxID_ANY , _ ( " Max length: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stMaxLenTrack - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_stMaxLenTrack , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2021-12-19 09:30:31 +00:00
2022-01-16 09:24:23 +00:00
m_tcTdMaxLenTrack = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_tcTdMaxLenTrack , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_stMaxLenTrackUnits = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stMaxLenTrackUnits - > Wrap ( - 1 ) ;
fgSizerParmTrack - > Add ( m_stMaxLenTrackUnits , 0 , wxRIGHT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-12-19 09:30:31 +00:00
2022-08-07 22:09:20 +00:00
m_stTdMaxSizeTrack = new wxStaticText ( this , wxID_ANY , _ ( " Max height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stTdMaxSizeTrack - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_stTdMaxSizeTrack , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
2021-12-19 09:30:31 +00:00
2022-01-16 09:24:23 +00:00
m_tcMaxHeightTrack = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_tcMaxHeightTrack , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2021-12-19 09:30:31 +00:00
2022-08-07 22:09:20 +00:00
m_stMaxHeightTrackUnits = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stMaxHeightTrackUnits - > Wrap ( - 1 ) ;
fgSizerParmTrack - > Add ( m_stMaxHeightTrackUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2021-12-19 09:30:31 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2021-12-19 09:30:31 +00:00
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_stHDRatioTrack = new wxStaticText ( this , wxID_ANY , _ ( " Max height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-30 14:32:38 +00:00
m_stHDRatioTrack - > Wrap ( - 1 ) ;
m_stHDRatioTrack - > SetToolTip ( _ ( " Max pad/via size to track width ratio to create a teardrop. \n 100 always creates a teardrop. " ) ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_stHDRatioTrack , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 10 ) ;
2022-01-30 14:32:38 +00:00
m_spTeardropHDPercentTrack = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 100 , 90 , 10 ) ;
m_spTeardropHDPercentTrack - > SetDigits ( 0 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_spTeardropHDPercentTrack , 0 , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2022-01-30 14:32:38 +00:00
2022-08-07 22:09:20 +00:00
m_stHDPercentTrack = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-30 14:32:38 +00:00
m_stHDPercentTrack - > Wrap ( - 1 ) ;
2022-08-07 22:09:20 +00:00
fgSizerParmTrack - > Add ( m_stHDPercentTrack , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2022-01-30 14:32:38 +00:00
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
fgSizerBitmaps - > Add ( fgSizerParmTrack , 1 , wxEXPAND | wxTOP | wxBOTTOM | wxLEFT , 10 ) ;
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
wxString m_rbShapeTrackChoices [ ] = { _ ( " Straight lines " ) , _ ( " Curved " ) } ;
int m_rbShapeTrackNChoices = sizeof ( m_rbShapeTrackChoices ) / sizeof ( wxString ) ;
m_rbShapeTrack = new wxRadioBox ( this , wxID_ANY , _ ( " Style " ) , wxDefaultPosition , wxDefaultSize , m_rbShapeTrackNChoices , m_rbShapeTrackChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_rbShapeTrack - > SetSelection ( 0 ) ;
fgSizerBitmaps - > Add ( m_rbShapeTrack , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxLEFT , 10 ) ;
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
bSizeScopeSize - > Add ( fgSizerBitmaps , 1 , wxEXPAND | wxRIGHT | wxLEFT , 10 ) ;
2021-11-02 09:18:58 +00:00
bSizerTop - > Add ( bSizeScopeSize , 0 , wxEXPAND , 5 ) ;
bSizerUpper - > Add ( bSizerTop , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizerShape ;
bSizerShape = new wxBoxSizer ( wxHORIZONTAL ) ;
wxStaticBoxSizer * sbSizerScope ;
2022-01-16 19:12:49 +00:00
sbSizerScope = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Scope " ) ) , wxVERTICAL ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 19:12:49 +00:00
m_cbPadVia = new wxCheckBox ( sbSizerScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Vias and PTH pads " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-11-02 09:18:58 +00:00
m_cbPadVia - > SetValue ( true ) ;
2022-01-23 12:22:32 +00:00
m_cbPadVia - > SetToolTip ( _ ( " Add teardrops to vias and pads with holes " ) ) ;
2022-08-07 22:09:20 +00:00
sbSizerScope - > Add ( m_cbPadVia , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 19:12:49 +00:00
m_cbRoundShapesOnly = new wxCheckBox ( sbSizerScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Round pads only " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-23 12:22:32 +00:00
m_cbRoundShapesOnly - > SetToolTip ( _ ( " Add teardrops to round shapes only " ) ) ;
2022-08-07 22:09:20 +00:00
sbSizerScope - > Add ( m_cbRoundShapesOnly , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_cbSmdSimilarPads = new wxCheckBox ( sbSizerScope - > GetStaticBox ( ) , wxID_ANY , _ ( " SMD pads " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-11-02 09:18:58 +00:00
m_cbSmdSimilarPads - > SetValue ( true ) ;
2022-01-23 12:22:32 +00:00
m_cbSmdSimilarPads - > SetToolTip ( _ ( " Add teardrops to not driiled pads, like SMD " ) ) ;
2022-08-07 22:09:20 +00:00
sbSizerScope - > Add ( m_cbSmdSimilarPads , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-01-16 19:12:49 +00:00
m_cbTrack2Track = new wxCheckBox ( sbSizerScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Track to track " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-12-19 09:30:31 +00:00
m_cbTrack2Track - > SetValue ( true ) ;
2022-01-23 12:22:32 +00:00
m_cbTrack2Track - > SetToolTip ( _ ( " Add teardrops to two connected tracks of different widths " ) ) ;
2022-08-07 22:09:20 +00:00
sbSizerScope - > Add ( m_cbTrack2Track , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
bSizerShape - > Add ( sbSizerScope , 1 , wxEXPAND | wxTOP , 5 ) ;
2021-11-02 09:18:58 +00:00
wxStaticBoxSizer * sbSizerOptions ;
2022-08-07 22:09:20 +00:00
sbSizerOptions = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Options " ) ) , wxVERTICAL ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
m_cbOptUseNextTrack = new wxCheckBox ( sbSizerOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Allow teardrops to span two track segments " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-11-02 09:18:58 +00:00
m_cbOptUseNextTrack - > SetValue ( true ) ;
2022-01-16 19:12:49 +00:00
m_cbOptUseNextTrack - > SetToolTip ( _ ( " Allows a teardrop to spread over 2 tracks if the first track segment is too short " ) ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
sbSizerOptions - > Add ( m_cbOptUseNextTrack , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2022-01-16 09:24:23 +00:00
2022-08-07 22:09:20 +00:00
m_cbPadsInZones = new wxCheckBox ( sbSizerOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Place teardrops on pads in zones " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-27 10:24:10 +00:00
m_cbPadsInZones - > SetToolTip ( _ ( " Pads inside a copper zone outline of same net have no teardrop. \n Check this option to allow teardrop for these pads. " ) ) ;
2022-08-07 22:09:20 +00:00
sbSizerOptions - > Add ( m_cbPadsInZones , 0 , wxALL , 5 ) ;
2022-01-27 10:24:10 +00:00
2022-01-16 09:24:23 +00:00
sbSizerOptions - > Add ( 30 , 0 , 0 , 0 , 5 ) ;
2022-08-07 22:09:20 +00:00
wxBoxSizer * bSizer6 ;
bSizer6 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_stPointCount = new wxStaticText ( sbSizerOptions - > GetStaticBox ( ) , wxID_ANY , _ ( " Curve points: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-01-16 09:24:23 +00:00
m_stPointCount - > Wrap ( - 1 ) ;
2022-01-23 12:22:32 +00:00
m_stPointCount - > SetToolTip ( _ ( " Number of segments to build a teardrop with curved shape " ) ) ;
2022-08-07 22:09:20 +00:00
bSizer6 - > Add ( m_stPointCount , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxLEFT , 5 ) ;
2022-01-16 09:24:23 +00:00
m_spPointCount = new wxSpinCtrl ( sbSizerOptions - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 3 , 10 , 5 ) ;
2022-08-07 22:09:20 +00:00
bSizer6 - > Add ( m_spPointCount , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
sbSizerOptions - > Add ( bSizer6 , 1 , wxEXPAND , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
bSizerShape - > Add ( sbSizerOptions , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
2022-08-07 22:09:20 +00:00
bSizerUpper - > Add ( bSizerShape , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2021-11-02 09:18:58 +00:00
bSizerMain - > Add ( bSizerUpper , 1 , wxEXPAND , 5 ) ;
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
bSizerMain - > Add ( m_sdbSizer , 0 , wxALIGN_RIGHT | wxALL , 5 ) ;
this - > SetSizer ( bSizerMain ) ;
this - > Layout ( ) ;
2022-08-07 22:09:20 +00:00
bSizerMain - > Fit ( this ) ;
2021-11-02 09:18:58 +00:00
this - > Centre ( wxBOTH ) ;
}
TEARDROP_DIALOG_BASE : : ~ TEARDROP_DIALOG_BASE ( )
{
}