2009-02-17 09:03:45 +00:00
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_track_options_base.h"
///////////////////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE ( DIALOG_TRACKS_OPTIONS_BASE , wxDialog )
2009-10-06 13:19:40 +00:00
EVT_BUTTON ( wxID_ADD_VIA_SIZE , DIALOG_TRACKS_OPTIONS_BASE : : _wxFB_OnButtonAddViaSizeClick )
EVT_BUTTON ( wxID_DELETED_WIA_SIEZ , DIALOG_TRACKS_OPTIONS_BASE : : _wxFB_OnButtonDeleteViaSizeClick )
EVT_BUTTON ( wxID_ADD_TRACK_WIDTH , DIALOG_TRACKS_OPTIONS_BASE : : _wxFB_OnButtonAddTrackSizeClick )
EVT_BUTTON ( wxID_DELETED_TRACK_WIDTH , DIALOG_TRACKS_OPTIONS_BASE : : _wxFB_OnButtonDeleteTrackSizeClick )
2009-02-17 09:03:45 +00:00
EVT_BUTTON ( wxID_CANCEL , DIALOG_TRACKS_OPTIONS_BASE : : _wxFB_OnButtonCancelClick )
2009-10-06 13:19:40 +00:00
EVT_BUTTON ( wxID_OK , DIALOG_TRACKS_OPTIONS_BASE : : _wxFB_OnButtonOkClick )
2009-02-17 09:03:45 +00:00
END_EVENT_TABLE ( )
DIALOG_TRACKS_OPTIONS_BASE : : DIALOG_TRACKS_OPTIONS_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bMainSizer ;
2009-10-06 13:19:40 +00:00
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bMainUpperSizer ;
bMainUpperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2009-02-17 09:03:45 +00:00
wxStaticBoxSizer * sbLeftSizer ;
sbLeftSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Vias: " ) ) , wxVERTICAL ) ;
2009-10-06 13:19:40 +00:00
wxStaticBoxSizer * sViaSizeBox ;
sViaSizeBox = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Vias Custom Sizes List: " ) ) , wxHORIZONTAL ) ;
m_ViaSizeListCtrl = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
sViaSizeBox - > Add ( m_ViaSizeListCtrl , 1 , wxALL | wxEXPAND , 5 ) ;
wxBoxSizer * bSizeViasListButtons ;
bSizeViasListButtons = new wxBoxSizer ( wxVERTICAL ) ;
m_buttonAddViasSize = new wxButton ( this , wxID_ADD_VIA_SIZE , _ ( " Add " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizeViasListButtons - > Add ( m_buttonAddViasSize , 1 , wxALL , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
m_button4 = new wxButton ( this , wxID_DELETED_WIA_SIEZ , _ ( " Delete " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizeViasListButtons - > Add ( m_button4 , 1 , wxALL , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
sViaSizeBox - > Add ( bSizeViasListButtons , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
sbLeftSizer - > Add ( sViaSizeBox , 1 , wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
m_ViaDefaultDrillValueTitle = new wxStaticText ( this , wxID_ANY , _ ( " Default Via Drill " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_ViaDefaultDrillValueTitle - > Wrap ( - 1 ) ;
sbLeftSizer - > Add ( m_ViaDefaultDrillValueTitle , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_OptViaDrill = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_OptViaDrill - > SetToolTip ( _ ( " Enter the default via drill diameter \n All vias drills not set to a specific drill value will have this drill value. " ) ) ;
sbLeftSizer - > Add ( m_OptViaDrill , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
m_ViaAltDrillValueTitle = new wxStaticText ( this , wxID_ANY , _ ( " Specific Via Drill " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_ViaAltDrillValueTitle - > Wrap ( - 1 ) ;
sbLeftSizer - > Add ( m_ViaAltDrillValueTitle , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_OptCustomViaDrill = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_OptCustomViaDrill - > SetToolTip ( _ ( " Use a specific drill value for all vias that must have a given drill value, \n and set the via hole to this specific drill value using the pop up menu. " ) ) ;
sbLeftSizer - > Add ( m_OptCustomViaDrill , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2009-10-06 13:19:40 +00:00
bMainUpperSizer - > Add ( sbLeftSizer , 1 , wxEXPAND , 5 ) ;
wxStaticBoxSizer * sbMiddleLeftSizer ;
sbMiddleLeftSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Vias Options: " ) ) , wxVERTICAL ) ;
2009-10-10 17:27:53 +00:00
wxString m_OptViaTypeChoices [ ] = { _ ( " Through via " ) , _ ( " Blind or buried via " ) } ;
2009-02-17 09:03:45 +00:00
int m_OptViaTypeNChoices = sizeof ( m_OptViaTypeChoices ) / sizeof ( wxString ) ;
m_OptViaType = new wxRadioBox ( this , wxID_ANY , _ ( " Default Via Type " ) , wxDefaultPosition , wxDefaultSize , m_OptViaTypeNChoices , m_OptViaTypeChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_OptViaType - > SetSelection ( 0 ) ;
m_OptViaType - > SetToolTip ( _ ( " Select the current via type. \n Trough via is the usual selection " ) ) ;
2009-10-06 13:19:40 +00:00
sbMiddleLeftSizer - > Add ( m_OptViaType , 0 , wxALL | wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
sbMiddleLeftSizer - > Add ( 10 , 10 , 0 , 0 , 5 ) ;
2009-10-10 17:27:53 +00:00
wxString m_AllowMicroViaCtrlChoices [ ] = { _ ( " Do not allow micro vias " ) , _ ( " Allow micro vias " ) } ;
2009-10-06 13:19:40 +00:00
int m_AllowMicroViaCtrlNChoices = sizeof ( m_AllowMicroViaCtrlChoices ) / sizeof ( wxString ) ;
m_AllowMicroViaCtrl = new wxRadioBox ( this , wxID_ALLOW_MICROVIA , _ ( " Micro Vias: " ) , wxDefaultPosition , wxDefaultSize , m_AllowMicroViaCtrlNChoices , m_AllowMicroViaCtrlChoices , 1 , wxRA_SPECIFY_COLS ) ;
m_AllowMicroViaCtrl - > SetSelection ( 0 ) ;
m_AllowMicroViaCtrl - > SetToolTip ( _ ( " Allows or do not allow use of micro vias \n They are very small vias only from an external copper layer to its near neightbour " ) ) ;
2009-02-17 09:03:45 +00:00
sbMiddleLeftSizer - > Add ( m_AllowMicroViaCtrl , 0 , wxALL , 5 ) ;
2009-10-06 13:19:40 +00:00
bMainUpperSizer - > Add ( sbMiddleLeftSizer , 0 , wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
wxStaticBoxSizer * sbMiddleRightSizer ;
sbMiddleRightSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Dimensions: " ) ) , wxVERTICAL ) ;
2009-10-06 13:19:40 +00:00
wxStaticBoxSizer * sbTracksListSizer ;
sbTracksListSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Tracks Custom Widths List: " ) ) , wxHORIZONTAL ) ;
m_TrackWidthListCtrl = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
sbTracksListSizer - > Add ( m_TrackWidthListCtrl , 1 , wxALL | wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
wxBoxSizer * bSizerTacksButtSizer ;
bSizerTacksButtSizer = new wxBoxSizer ( wxVERTICAL ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
m_buttonAddTrackSize = new wxButton ( this , wxID_ADD_TRACK_WIDTH , _ ( " Add " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerTacksButtSizer - > Add ( m_buttonAddTrackSize , 0 , wxALL | wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
m_buttonDeleteTrackWidth = new wxButton ( this , wxID_DELETED_TRACK_WIDTH , _ ( " Delete " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerTacksButtSizer - > Add ( m_buttonDeleteTrackWidth , 0 , wxALL | wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
sbTracksListSizer - > Add ( bSizerTacksButtSizer , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
sbMiddleRightSizer - > Add ( sbTracksListSizer , 1 , wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
sbMiddleRightSizer - > Add ( 10 , 10 , 0 , 0 , 5 ) ;
2009-10-06 13:19:40 +00:00
m_MaskClearanceTitle = new wxStaticText ( this , wxID_ANY , _ ( " Pads Mask Clearance: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2009-02-17 09:03:45 +00:00
m_MaskClearanceTitle - > Wrap ( - 1 ) ;
sbMiddleRightSizer - > Add ( m_MaskClearanceTitle , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_OptMaskMargin = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_OptMaskMargin - > SetToolTip ( _ ( " This is the clearance between pads and the mask " ) ) ;
sbMiddleRightSizer - > Add ( m_OptMaskMargin , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2009-10-06 13:19:40 +00:00
bMainUpperSizer - > Add ( sbMiddleRightSizer , 1 , wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
bMainSizer - > Add ( bMainUpperSizer , 1 , wxEXPAND , 5 ) ;
2009-02-17 09:03:45 +00:00
2009-10-06 13:19:40 +00:00
m_sdbButtonsSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbButtonsSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbButtonsSizer - > AddButton ( m_sdbButtonsSizerOK ) ;
m_sdbButtonsSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbButtonsSizer - > AddButton ( m_sdbButtonsSizerCancel ) ;
m_sdbButtonsSizer - > Realize ( ) ;
bMainSizer - > Add ( m_sdbButtonsSizer , 0 , wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2009-02-17 09:03:45 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
}
DIALOG_TRACKS_OPTIONS_BASE : : ~ DIALOG_TRACKS_OPTIONS_BASE ( )
{
}