2013-05-22 08:45:25 +00:00
///////////////////////////////////////////////////////////////////////////
2018-05-29 21:46:13 +00:00
// C++ code generated with wxFormBuilder (version Dec 30 2017)
2013-05-22 08:45:25 +00:00
// http://www.wxformbuilder.org/
//
2017-12-24 15:04:02 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-22 08:45:25 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_eeschema_options_base.h"
///////////////////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE ( DIALOG_EESCHEMA_OPTIONS_BASE , DIALOG_SHIM )
2014-09-30 19:55:18 +00:00
EVT_SIZE ( DIALOG_EESCHEMA_OPTIONS_BASE : : _wxFB_OnSize )
2018-01-08 04:05:03 +00:00
EVT_SCROLL ( DIALOG_EESCHEMA_OPTIONS_BASE : : _wxFB_OnScaleSlider )
EVT_CHECKBOX ( wxID_ANY , DIALOG_EESCHEMA_OPTIONS_BASE : : _wxFB_OnScaleAuto )
2013-05-22 08:45:25 +00:00
EVT_CHOICE ( wxID_ANY , DIALOG_EESCHEMA_OPTIONS_BASE : : _wxFB_OnChooseUnits )
2014-03-07 17:52:43 +00:00
EVT_BUTTON ( wxID_ADD_FIELD , DIALOG_EESCHEMA_OPTIONS_BASE : : _wxFB_OnAddButtonClick )
EVT_BUTTON ( wxID_DELETE_FIELD , DIALOG_EESCHEMA_OPTIONS_BASE : : _wxFB_OnDeleteButtonClick )
2013-05-22 08:45:25 +00:00
END_EVENT_TABLE ( )
DIALOG_EESCHEMA_OPTIONS_BASE : : DIALOG_EESCHEMA_OPTIONS_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 ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
wxBoxSizer * mainSizer ;
mainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
wxBoxSizer * bOptionsSizer ;
bOptionsSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2014-12-19 15:37:14 +00:00
m_notebook = new wxNotebook ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-12-28 13:33:21 +00:00
m_panel5 = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bSizer82 ;
bSizer82 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxFlexGridSizer * fgSizer32 ;
fgSizer32 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizer32 - > AddGrowableCol ( 0 ) ;
fgSizer32 - > AddGrowableCol ( 1 ) ;
fgSizer32 - > AddGrowableCol ( 2 ) ;
fgSizer32 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer32 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticText3 = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " &Grid size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticText3 - > Wrap ( - 1 ) ;
2015-12-31 16:11:47 +00:00
fgSizer32 - > Add ( m_staticText3 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
wxArrayString m_choiceGridSizeChoices ;
2015-12-28 13:33:21 +00:00
m_choiceGridSize = new wxChoice ( m_panel5 , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceGridSizeChoices , 0 ) ;
2013-05-22 08:45:25 +00:00
m_choiceGridSize - > SetSelection ( 0 ) ;
2015-12-28 13:33:21 +00:00
fgSizer32 - > Add ( m_choiceGridSize , 0 , wxEXPAND | wxALL , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticGridUnits = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticGridUnits - > Wrap ( - 1 ) ;
2015-12-28 13:33:21 +00:00
fgSizer32 - > Add ( m_staticGridUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticText51 = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " &Bus thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticText51 - > Wrap ( - 1 ) ;
2015-12-28 13:33:21 +00:00
fgSizer32 - > Add ( m_staticText51 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_spinBusWidth = new wxSpinCtrl ( m_panel5 , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS | wxSP_WRAP , 1 , 100 , 1 ) ;
fgSizer32 - > Add ( m_spinBusWidth , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticBusWidthUnits = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticBusWidthUnits - > Wrap ( - 1 ) ;
2015-12-28 13:33:21 +00:00
fgSizer32 - > Add ( m_staticBusWidthUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticText5 = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " &Line thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticText5 - > Wrap ( - 1 ) ;
2015-12-31 16:11:47 +00:00
fgSizer32 - > Add ( m_staticText5 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_spinLineWidth = new wxSpinCtrl ( m_panel5 , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS | wxSP_WRAP , 1 , 100 , 1 ) ;
fgSizer32 - > Add ( m_spinLineWidth , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticLineWidthUnits = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticLineWidthUnits - > Wrap ( - 1 ) ;
2015-12-28 13:33:21 +00:00
fgSizer32 - > Add ( m_staticLineWidthUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticText26 = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " &Part ID notation: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText26 - > Wrap ( - 1 ) ;
fgSizer32 - > Add ( m_staticText26 , 0 , wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxString m_choiceSeparatorRefIdChoices [ ] = { _ ( " A " ) , _ ( " .A " ) , _ ( " -A " ) , _ ( " _A " ) , _ ( " .1 " ) , _ ( " -1 " ) , _ ( " _1 " ) } ;
int m_choiceSeparatorRefIdNChoices = sizeof ( m_choiceSeparatorRefIdChoices ) / sizeof ( wxString ) ;
m_choiceSeparatorRefId = new wxChoice ( m_panel5 , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceSeparatorRefIdNChoices , m_choiceSeparatorRefIdChoices , 0 ) ;
m_choiceSeparatorRefId - > SetSelection ( 0 ) ;
fgSizer32 - > Add ( m_choiceSeparatorRefId , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2018-01-08 04:05:03 +00:00
fgSizer32 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_stIconScale = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " Icon scale: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stIconScale - > Wrap ( - 1 ) ;
fgSizer32 - > Add ( m_stIconScale , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 3 ) ;
m_scaleSlider = new STEPPED_SLIDER ( m_panel5 , wxID_ANY , 50 , 50 , 275 , wxDefaultPosition , wxDefaultSize , wxSL_AUTOTICKS | wxSL_HORIZONTAL | wxSL_LABELS ) ;
fgSizer32 - > Add ( m_scaleSlider , 0 , wxALL | wxEXPAND , 3 ) ;
m_staticText211 = new wxStaticText ( m_panel5 , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText211 - > Wrap ( - 1 ) ;
fgSizer32 - > Add ( m_staticText211 , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 3 ) ;
fgSizer32 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_scaleAuto = new wxCheckBox ( m_panel5 , wxID_ANY , _ ( " Auto " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer32 - > Add ( m_scaleAuto , 0 , wxALL | wxEXPAND , 3 ) ;
2015-12-28 13:33:21 +00:00
fgSizer32 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer82 - > Add ( fgSizer32 , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxBoxSizer * bSizer92 ;
bSizer92 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticline3 = new wxStaticLine ( m_panel5 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer92 - > Add ( m_staticline3 , 0 , wxEXPAND | wxALL , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_checkShowGrid = new wxCheckBox ( m_panel5 , wxID_ANY , _ ( " &Show grid " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer92 - > Add ( m_checkShowGrid , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_checkHVOrientation = new wxCheckBox ( m_panel5 , wxID_ANY , _ ( " &Restrict buses and wires to H and V orientation " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer92 - > Add ( m_checkHVOrientation , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_checkShowHiddenPins = new wxCheckBox ( m_panel5 , wxID_ANY , _ ( " S&how hidden pins " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer92 - > Add ( m_checkShowHiddenPins , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-31 16:11:47 +00:00
m_checkPageLimits = new wxCheckBox ( m_panel5 , wxID_ANY , _ ( " Show page limi&ts " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-05-12 16:51:32 +00:00
m_checkPageLimits - > SetValue ( true ) ;
2015-12-28 13:33:21 +00:00
bSizer92 - > Add ( m_checkPageLimits , 0 , wxEXPAND | wxLEFT | wxTOP | wxRIGHT , 3 ) ;
2016-05-12 16:51:32 +00:00
2018-01-03 02:52:35 +00:00
m_footprintPreview = new wxCheckBox ( m_panel5 , wxID_ANY , _ ( " Footprint previews in symbol chooser (experimental) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer92 - > Add ( m_footprintPreview , 0 , wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer82 - > Add ( bSizer92 , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_panel5 - > SetSizer ( bSizer82 ) ;
m_panel5 - > Layout ( ) ;
bSizer82 - > Fit ( m_panel5 ) ;
2018-01-08 04:05:03 +00:00
m_notebook - > AddPage ( m_panel5 , _ ( " Display " ) , true ) ;
2015-12-28 13:33:21 +00:00
m_panel3 = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bSizer8 ;
bSizer8 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxFlexGridSizer * fgSizer3 ;
fgSizer3 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizer3 - > AddGrowableCol ( 0 ) ;
fgSizer3 - > AddGrowableCol ( 1 ) ;
fgSizer3 - > AddGrowableCol ( 2 ) ;
fgSizer3 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer3 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticText2 = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " &Measurement units: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText2 - > Wrap ( - 1 ) ;
2015-12-31 16:11:47 +00:00
fgSizer3 - > Add ( m_staticText2 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxArrayString m_choiceUnitsChoices ;
m_choiceUnits = new wxChoice ( m_panel3 , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_choiceUnitsChoices , 0 ) ;
m_choiceUnits - > SetSelection ( 0 ) ;
fgSizer3 - > Add ( m_choiceUnits , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
fgSizer3 - > Add ( 0 , 0 , 1 , wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-11-22 10:23:12 +00:00
m_staticTextHpitch = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " &Horizontal pitch of repeated items: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextHpitch - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticTextHpitch , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_spinRepeatHorizontal = new wxSpinCtrl ( m_panel3 , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS | wxSP_WRAP , - 5000 , 5000 , 0 ) ;
fgSizer3 - > Add ( m_spinRepeatHorizontal , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticRepeatXUnits = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticRepeatXUnits - > Wrap ( - 1 ) ;
2015-12-28 13:33:21 +00:00
fgSizer3 - > Add ( m_staticRepeatXUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-11-22 10:23:12 +00:00
m_staticTextVpitch = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " &Vertical pitch of repeated items: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextVpitch - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticTextVpitch , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_spinRepeatVertical = new wxSpinCtrl ( m_panel3 , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS | wxSP_WRAP , - 5000 , 5000 , 100 ) ;
fgSizer3 - > Add ( m_spinRepeatVertical , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticRepeatYUnits = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticRepeatYUnits - > Wrap ( - 1 ) ;
2015-12-28 13:33:21 +00:00
fgSizer3 - > Add ( m_staticRepeatYUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticText16 = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " &Increment of repeated labels: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-22 08:45:25 +00:00
m_staticText16 - > Wrap ( - 1 ) ;
2015-12-31 16:11:47 +00:00
fgSizer3 - > Add ( m_staticText16 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_spinRepeatLabel = new wxSpinCtrl ( m_panel3 , wxID_ANY , wxT ( " 1 " ) , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS | wxSP_WRAP , - 10 , 10 , 1 ) ;
fgSizer3 - > Add ( m_spinRepeatLabel , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
fgSizer3 - > Add ( 0 , 0 , 1 , wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-11-22 10:23:12 +00:00
m_staticTextTsize = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " Def&ault text size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextTsize - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticTextTsize , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_spinTextSize = new wxSpinCtrl ( m_panel3 , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS | wxSP_WRAP , 0 , 1000 , 0 ) ;
fgSizer3 - > Add ( m_spinTextSize , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticTextSizeUnits = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextSizeUnits - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticTextSizeUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2018-04-23 18:45:11 +00:00
m_staticTextTimeInterval = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " &Auto-save time interval: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-11-22 10:23:12 +00:00
m_staticTextTimeInterval - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticTextTimeInterval , 1 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-01-01 09:47:17 +00:00
m_spinAutoSaveInterval = new wxSpinCtrl ( m_panel3 , ID_M_SPINAUTOSAVEINTERVAL , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 10 ) ;
2016-11-22 10:23:12 +00:00
m_spinAutoSaveInterval - > SetToolTip ( _ ( " Delay after the first change to create a backup file of the board on disk. \n If set to 0, auto backup is disabled " ) ) ;
2016-01-01 09:47:17 +00:00
fgSizer3 - > Add ( m_spinAutoSaveInterval , 0 , wxALL | wxEXPAND , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-01-01 09:47:17 +00:00
m_staticText23 = new wxStaticText ( m_panel3 , wxID_ANY , _ ( " minutes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText23 - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticText23 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer8 - > Add ( fgSizer3 , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxBoxSizer * bSizer9 ;
bSizer9 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_staticline2 = new wxStaticLine ( m_panel3 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer9 - > Add ( m_staticline2 , 0 , wxEXPAND | wxALL , 5 ) ;
2016-05-12 16:51:32 +00:00
2017-12-24 15:04:02 +00:00
m_checkAutoplaceFields = new wxCheckBox ( m_panel3 , wxID_ANY , _ ( " A&utomatically place symbol fields " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-12-28 13:33:21 +00:00
bSizer9 - > Add ( m_checkAutoplaceFields , 0 , wxEXPAND | wxLEFT | wxTOP | wxRIGHT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_checkAutoplaceJustify = new wxCheckBox ( m_panel3 , wxID_ANY , _ ( " A&llow field autoplace to change justification " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer9 - > Add ( m_checkAutoplaceJustify , 0 , wxEXPAND | wxLEFT | wxTOP | wxRIGHT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_checkAutoplaceAlign = new wxCheckBox ( m_panel3 , wxID_ANY , _ ( " Al&ways align autoplaced fields to the 50 mil grid " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer9 - > Add ( m_checkAutoplaceAlign , 0 , wxEXPAND | wxLEFT | wxTOP | wxRIGHT , 3 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer8 - > Add ( bSizer9 , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
m_panel3 - > SetSizer ( bSizer8 ) ;
m_panel3 - > Layout ( ) ;
bSizer8 - > Fit ( m_panel3 ) ;
2016-01-01 09:47:17 +00:00
m_notebook - > AddPage ( m_panel3 , _ ( " Editing " ) , false ) ;
2016-01-16 23:51:38 +00:00
m_tabControls = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2015-12-28 13:33:21 +00:00
wxBoxSizer * bSizer81 ;
bSizer81 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxFlexGridSizer * fgSizer31 ;
fgSizer31 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizer31 - > AddGrowableCol ( 0 ) ;
fgSizer31 - > AddGrowableCol ( 1 ) ;
fgSizer31 - > AddGrowableCol ( 2 ) ;
fgSizer31 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer31 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer81 - > Add ( fgSizer31 , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:55:50 +00:00
m_controlsSizer = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:58:39 +00:00
wxBoxSizer * bSizer13 ;
bSizer13 = new wxBoxSizer ( wxHORIZONTAL ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_staticText20 = new wxStaticText ( m_tabControls , wxID_ANY , _ ( " Hotkeys: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-01-16 01:55:50 +00:00
m_staticText20 - > Wrap ( - 1 ) ;
2016-01-16 01:58:39 +00:00
bSizer13 - > Add ( m_staticText20 , 1 , wxALL , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_staticText21 = new wxStaticText ( m_tabControls , wxID_ANY , _ ( " Double-click to edit " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-01-16 01:58:39 +00:00
m_staticText21 - > Wrap ( - 1 ) ;
bSizer13 - > Add ( m_staticText21 , 0 , wxALL , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:58:39 +00:00
m_controlsSizer - > Add ( bSizer13 , 0 , wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_panelHotkeys = new wxPanel ( m_tabControls , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2016-01-16 01:58:39 +00:00
m_controlsSizer - > Add ( m_panelHotkeys , 1 , wxEXPAND | wxALL , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_checkEnableZoomCenter = new wxCheckBox ( m_tabControls , wxID_ANY , _ ( " Cen&ter and warp cursor on zoom " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-12-28 13:33:21 +00:00
m_checkEnableZoomCenter - > SetToolTip ( _ ( " Keep the cursor at its current location when zooming " ) ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:55:50 +00:00
m_controlsSizer - > Add ( m_checkEnableZoomCenter , 0 , wxTOP | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-02-24 19:53:02 +00:00
m_checkEnableMousewheelPan = new wxCheckBox ( m_tabControls , xwID_ANY , _ ( " Use touchpa&d to pan " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_checkEnableMousewheelPan - > SetToolTip ( _ ( " Use touchpad to pan canvas " ) ) ;
2016-05-12 16:51:32 +00:00
2016-02-24 19:53:02 +00:00
m_controlsSizer - > Add ( m_checkEnableMousewheelPan , 0 , wxLEFT | wxRIGHT | wxTOP , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_checkAutoPan = new wxCheckBox ( m_tabControls , wxID_ANY , _ ( " &Pan while moving object " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-01-16 01:55:50 +00:00
m_controlsSizer - > Add ( m_checkAutoPan , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 3 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:55:50 +00:00
bSizer81 - > Add ( m_controlsSizer , 1 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_tabControls - > SetSizer ( bSizer81 ) ;
m_tabControls - > Layout ( ) ;
bSizer81 - > Fit ( m_tabControls ) ;
2016-11-22 10:23:12 +00:00
m_notebook - > AddPage ( m_tabControls , _ ( " Controls " ) , false ) ;
2016-01-16 23:51:38 +00:00
m_tabColors = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bSizer14 ;
bSizer14 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_panelColors = new wxPanel ( m_tabColors , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
bSizer14 - > Add ( m_panelColors , 1 , wxEXPAND | wxALL , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 23:51:38 +00:00
m_tabColors - > SetSizer ( bSizer14 ) ;
m_tabColors - > Layout ( ) ;
bSizer14 - > Fit ( m_tabColors ) ;
2016-02-24 19:53:02 +00:00
m_notebook - > AddPage ( m_tabColors , _ ( " Colors " ) , false ) ;
2014-12-19 15:37:14 +00:00
m_panel2 = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2013-05-22 08:45:25 +00:00
m_panel2 - > SetToolTip ( _ ( " User defined field names for schematic components. " ) ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
wxBoxSizer * bSizer6 ;
2015-12-28 13:33:21 +00:00
bSizer6 = new wxBoxSizer ( wxHORIZONTAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxBoxSizer * bSizer11 ;
bSizer11 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-12-31 15:12:09 +00:00
m_fieldGrid = new wxGrid ( m_panel2 , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-05-12 16:51:32 +00:00
2015-12-31 15:12:09 +00:00
// Grid
2018-05-29 21:46:13 +00:00
m_fieldGrid - > CreateGrid ( 0 , 2 ) ;
2015-12-31 15:12:09 +00:00
m_fieldGrid - > EnableEditing ( true ) ;
m_fieldGrid - > EnableGridLines ( true ) ;
m_fieldGrid - > EnableDragGridSize ( false ) ;
m_fieldGrid - > SetMargins ( 0 , 0 ) ;
2016-05-12 16:51:32 +00:00
2015-12-31 15:12:09 +00:00
// Columns
2018-05-29 21:46:13 +00:00
m_fieldGrid - > SetColSize ( 0 , 300 ) ;
m_fieldGrid - > SetColSize ( 1 , 75 ) ;
2015-12-31 15:12:09 +00:00
m_fieldGrid - > EnableDragColMove ( false ) ;
m_fieldGrid - > EnableDragColSize ( true ) ;
2018-05-29 21:46:13 +00:00
m_fieldGrid - > SetColLabelSize ( 22 ) ;
2015-12-31 15:12:09 +00:00
m_fieldGrid - > SetColLabelValue ( 0 , _ ( " Name " ) ) ;
2018-05-29 21:46:13 +00:00
m_fieldGrid - > SetColLabelValue ( 1 , _ ( " Visible " ) ) ;
2015-12-31 15:12:09 +00:00
m_fieldGrid - > SetColLabelAlignment ( wxALIGN_CENTRE , wxALIGN_CENTRE ) ;
2016-05-12 16:51:32 +00:00
2015-12-31 15:12:09 +00:00
// Rows
m_fieldGrid - > EnableDragRowSize ( true ) ;
m_fieldGrid - > SetRowLabelSize ( 80 ) ;
m_fieldGrid - > SetRowLabelAlignment ( wxALIGN_CENTRE , wxALIGN_CENTRE ) ;
2016-05-12 16:51:32 +00:00
2015-12-31 15:12:09 +00:00
// Label Appearance
2016-05-12 16:51:32 +00:00
2015-12-31 15:12:09 +00:00
// Cell Defaults
m_fieldGrid - > SetDefaultCellAlignment ( wxALIGN_LEFT , wxALIGN_TOP ) ;
bSizer11 - > Add ( m_fieldGrid , 1 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer6 - > Add ( bSizer11 , 1 , wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
wxBoxSizer * bSizer10 ;
bSizer10 = new wxBoxSizer ( wxVERTICAL ) ;
2016-05-12 16:51:32 +00:00
2015-08-06 18:40:22 +00:00
addFieldButton = new wxButton ( m_panel2 , wxID_ADD_FIELD , _ ( " &Add " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-12-28 13:33:21 +00:00
bSizer10 - > Add ( addFieldButton , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
deleteFieldButton = new wxButton ( m_panel2 , wxID_DELETE_FIELD , _ ( " De&lete " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer10 - > Add ( deleteFieldButton , 0 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer10 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2015-12-28 13:33:21 +00:00
bSizer6 - > Add ( bSizer10 , 0 , wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
m_panel2 - > SetSizer ( bSizer6 ) ;
m_panel2 - > Layout ( ) ;
bSizer6 - > Fit ( m_panel2 ) ;
2018-05-29 21:46:13 +00:00
m_notebook - > AddPage ( m_panel2 , _ ( " Field Name Templates " ) , false ) ;
2016-05-12 16:51:32 +00:00
2014-12-19 15:37:14 +00:00
bOptionsSizer - > Add ( m_notebook , 1 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:55:50 +00:00
wxBoxSizer * bSizer12 ;
bSizer12 = new wxBoxSizer ( wxHORIZONTAL ) ;
2016-05-12 16:51:32 +00:00
2014-12-19 15:37:14 +00:00
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 ( ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 01:55:50 +00:00
bSizer12 - > Add ( m_sdbSizer , 1 , wxALL | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2016-01-16 02:06:41 +00:00
bOptionsSizer - > Add ( bSizer12 , 0 , wxBOTTOM | wxEXPAND , 5 ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
mainSizer - > Add ( bOptionsSizer , 1 , wxEXPAND , 12 ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
this - > SetSizer ( mainSizer ) ;
this - > Layout ( ) ;
2014-03-07 17:52:43 +00:00
mainSizer - > Fit ( this ) ;
2016-05-12 16:51:32 +00:00
2013-05-22 08:45:25 +00:00
this - > Centre ( wxBOTH ) ;
}
DIALOG_EESCHEMA_OPTIONS_BASE : : ~ DIALOG_EESCHEMA_OPTIONS_BASE ( )
{
}