2018-05-14 17:34:18 +00:00
///////////////////////////////////////////////////////////////////////////
2020-07-03 13:40:31 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2018-05-14 17:34:18 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "panel_common_settings_base.h"
///////////////////////////////////////////////////////////////////////////
2020-07-21 23:13:43 +00:00
PANEL_COMMON_SETTINGS_BASE : : PANEL_COMMON_SETTINGS_BASE ( wxWindow * parent , wxWindowID id , const wxPoint & pos , const wxSize & size , long style , const wxString & name ) : RESETTABLE_PANEL ( parent , id , pos , size , style , name )
2018-05-14 17:34:18 +00:00
{
wxBoxSizer * bPanelSizer ;
2019-07-25 16:48:11 +00:00
bPanelSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
wxBoxSizer * bLeftSizer ;
bLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
wxGridBagSizer * gbSizer1 ;
2019-01-09 22:35:12 +00:00
gbSizer1 = new wxGridBagSizer ( 4 , 4 ) ;
2018-05-14 17:34:18 +00:00
gbSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2018-09-04 00:00:17 +00:00
gbSizer1 - > SetEmptyCellSize ( wxSize ( - 1 , 2 ) ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
m_staticTextautosave = new wxStaticText ( this , wxID_ANY , _ ( " &Auto save: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextautosave - > Wrap ( - 1 ) ;
2021-02-21 20:11:44 +00:00
gbSizer1 - > Add ( m_staticTextautosave , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
wxBoxSizer * bSizer6 ;
bSizer6 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
m_SaveTime = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 10 , 0 ) ;
2018-11-11 07:29:13 +00:00
m_SaveTime - > 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 " ) ) ;
2019-11-12 12:47:35 +00:00
2019-01-09 22:35:12 +00:00
bSizer6 - > Add ( m_SaveTime , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
wxStaticText * minutesLabel ;
minutesLabel = new wxStaticText ( this , wxID_ANY , _ ( " minutes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
minutesLabel - > Wrap ( - 1 ) ;
2018-10-27 11:40:38 +00:00
bSizer6 - > Add ( minutesLabel , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2021-02-21 20:11:44 +00:00
gbSizer1 - > Add ( bSizer6 , wxGBPosition ( 0 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxTOP , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-08-06 01:36:56 +00:00
m_staticTextFileHistorySize = new wxStaticText ( this , wxID_ANY , _ ( " File history size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextFileHistorySize - > Wrap ( - 1 ) ;
2019-01-09 22:35:12 +00:00
gbSizer1 - > Add ( m_staticTextFileHistorySize , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-08-06 01:36:56 +00:00
m_fileHistorySize = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 1 , 100 , 0 ) ;
2019-01-09 22:35:12 +00:00
gbSizer1 - > Add ( m_fileHistorySize , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2021-02-21 20:11:44 +00:00
m_staticTextClear3DCache = new wxStaticText ( this , wxID_ANY , _ ( " 3D cache file duration: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextClear3DCache - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_staticTextClear3DCache , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP , 5 ) ;
2020-08-09 10:41:45 +00:00
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_Clear3DCacheFilesOlder = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 120 , 30 ) ;
m_Clear3DCacheFilesOlder - > SetToolTip ( _ ( " 3D cache files older than this are deleted. \n If set to 0, cache clearing is disabled " ) ) ;
bSizer5 - > Add ( m_Clear3DCacheFilesOlder , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
m_staticTextDays = new wxStaticText ( this , wxID_ANY , _ ( " Days " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextDays - > Wrap ( - 1 ) ;
bSizer5 - > Add ( m_staticTextDays , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
gbSizer1 - > Add ( bSizer5 , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND , 5 ) ;
2018-09-04 00:00:17 +00:00
wxStaticText * antialiasingLabel ;
2019-07-25 16:48:11 +00:00
antialiasingLabel = new wxStaticText ( this , wxID_ANY , _ ( " Accelerated graphics: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-09-04 00:00:17 +00:00
antialiasingLabel - > Wrap ( - 1 ) ;
2020-08-09 10:41:45 +00:00
gbSizer1 - > Add ( antialiasingLabel , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
wxString m_antialiasingChoices [ ] = { _ ( " No Antialiasing " ) , _ ( " Subpixel Antialiasing (High Quality) " ) , _ ( " Subpixel Antialiasing (Ultra Quality) " ) , _ ( " Supersampling (2x) " ) , _ ( " Supersampling (4x) " ) } ;
int m_antialiasingNChoices = sizeof ( m_antialiasingChoices ) / sizeof ( wxString ) ;
m_antialiasing = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_antialiasingNChoices , m_antialiasingChoices , 0 ) ;
m_antialiasing - > SetSelection ( 0 ) ;
2021-03-12 14:21:12 +00:00
gbSizer1 - > Add ( m_antialiasing , wxGBPosition ( 4 , 1 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT , 5 ) ;
2019-11-12 12:47:35 +00:00
2020-09-20 11:57:55 +00:00
m_antialiasingFallbackLabel = new wxStaticText ( this , wxID_ANY , _ ( " Fallback graphics: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_antialiasingFallbackLabel - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_antialiasingFallbackLabel , wxGBPosition ( 6 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-01-04 12:13:00 +00:00
wxString m_antialiasingFallbackChoices [ ] = { _ ( " No Antialiasing " ) , _ ( " Fast Antialiasing " ) , _ ( " Balanced Antialiasing " ) , _ ( " High Quality Antialiasing " ) } ;
int m_antialiasingFallbackNChoices = sizeof ( m_antialiasingFallbackChoices ) / sizeof ( wxString ) ;
m_antialiasingFallback = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_antialiasingFallbackNChoices , m_antialiasingFallbackChoices , 0 ) ;
m_antialiasingFallback - > SetSelection ( 0 ) ;
2021-03-12 14:21:12 +00:00
gbSizer1 - > Add ( m_antialiasingFallback , wxGBPosition ( 6 , 1 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT , 5 ) ;
2020-08-09 10:41:45 +00:00
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
gbSizer1 - > AddGrowableCol ( 1 ) ;
2019-11-12 12:47:35 +00:00
2021-02-21 20:11:44 +00:00
bLeftSizer - > Add ( gbSizer1 , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxLEFT , 10 ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
wxStaticBoxSizer * sizerHelperApps ;
2021-01-09 12:57:18 +00:00
sizerHelperApps = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Helper Applications " ) ) , wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2021-01-09 12:57:18 +00:00
wxBoxSizer * bSizer61 ;
bSizer61 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
wxStaticText * textEditorLabel ;
2018-09-04 00:00:17 +00:00
textEditorLabel = new wxStaticText ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , _ ( " Text editor: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-05-14 17:34:18 +00:00
textEditorLabel - > Wrap ( - 1 ) ;
2021-01-09 12:57:18 +00:00
bSizer61 - > Add ( textEditorLabel , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
m_textEditorPath = new wxTextCtrl ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-07-25 16:48:11 +00:00
m_textEditorPath - > SetMinSize ( wxSize ( 280 , - 1 ) ) ;
2019-11-12 12:47:35 +00:00
2021-01-09 12:57:18 +00:00
bSizer61 - > Add ( m_textEditorPath , 1 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2019-11-12 12:47:35 +00:00
m_textEditorBtn = new wxBitmapButton ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2021-01-09 12:57:18 +00:00
bSizer61 - > Add ( m_textEditorBtn , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
sizerHelperApps - > Add ( bSizer61 , 0 , wxEXPAND | wxRIGHT , 5 ) ;
sizerHelperApps - > Add ( 0 , 12 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer8 ;
bSizer8 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
m_defaultPDFViewer = new wxRadioButton ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , _ ( " System default PDF viewer " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-01-09 12:57:18 +00:00
bSizer8 - > Add ( m_defaultPDFViewer , 1 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
sizerHelperApps - > Add ( bSizer8 , 0 , wxEXPAND | wxBOTTOM , 3 ) ;
wxBoxSizer * bSizer7 ;
bSizer7 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
m_otherPDFViewer = new wxRadioButton ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , _ ( " Other: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-01-09 12:57:18 +00:00
bSizer7 - > Add ( m_otherPDFViewer , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
m_PDFViewerPath = new wxTextCtrl ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-07-25 16:48:11 +00:00
m_PDFViewerPath - > SetMinSize ( wxSize ( 280 , - 1 ) ) ;
2019-11-12 12:47:35 +00:00
2021-01-09 12:57:18 +00:00
bSizer7 - > Add ( m_PDFViewerPath , 1 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
m_pdfViewerBtn = new wxBitmapButton ( sizerHelperApps - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2021-01-09 12:57:18 +00:00
bSizer7 - > Add ( m_pdfViewerBtn , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2021-01-09 12:57:18 +00:00
sizerHelperApps - > Add ( bSizer7 , 0 , wxEXPAND | wxBOTTOM | wxRIGHT , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-09-04 00:00:17 +00:00
bLeftSizer - > Add ( sizerHelperApps , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-11-22 16:11:49 +00:00
wxStaticBoxSizer * sbSizerIconsOpts ;
2021-02-21 20:11:44 +00:00
sbSizerIconsOpts = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " User Interface " ) ) , wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2020-09-20 11:57:55 +00:00
wxGridBagSizer * gbSizer4 ;
2021-02-21 20:11:44 +00:00
gbSizer4 = new wxGridBagSizer ( 10 , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer4 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer4 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-12 12:47:35 +00:00
2018-11-22 16:11:49 +00:00
m_staticTexticonscale = new wxStaticText ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Icon scale: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTexticonscale - > Wrap ( - 1 ) ;
2020-09-20 11:57:55 +00:00
gbSizer4 - > Add ( m_staticTexticonscale , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2020-05-28 17:10:52 +00:00
m_iconScaleSlider = new STEPPED_SLIDER ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , 100 , 50 , 275 , wxDefaultPosition , wxDefaultSize , wxSL_HORIZONTAL | wxSL_VALUE_LABEL ) ;
2019-07-25 16:48:11 +00:00
m_iconScaleSlider - > SetMinSize ( wxSize ( 140 , - 1 ) ) ;
2019-11-12 12:47:35 +00:00
2020-09-20 11:57:55 +00:00
gbSizer4 - > Add ( m_iconScaleSlider , wxGBPosition ( 0 , 1 ) , wxGBSpan ( 1 , 1 ) , wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2019-03-22 21:15:26 +00:00
m_iconScaleAuto = new wxCheckBox ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Automatic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer4 - > Add ( m_iconScaleAuto , wxGBPosition ( 0 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 15 ) ;
2019-11-12 12:47:35 +00:00
2019-03-22 21:15:26 +00:00
m_staticTextCanvasScale = new wxStaticText ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Canvas scale: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextCanvasScale - > Wrap ( - 1 ) ;
2020-09-20 11:57:55 +00:00
gbSizer4 - > Add ( m_staticTextCanvasScale , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2019-03-22 21:15:26 +00:00
m_canvasScaleCtrl = new wxSpinCtrlDouble ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 100 , 0 , 1 ) ;
2019-11-12 12:47:35 +00:00
m_canvasScaleCtrl - > SetDigits ( 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer4 - > Add ( m_canvasScaleCtrl , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2019-03-22 21:15:26 +00:00
m_canvasScaleAuto = new wxCheckBox ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Automatic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer4 - > Add ( m_canvasScaleAuto , wxGBPosition ( 1 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT | wxLEFT , 15 ) ;
2019-11-12 12:47:35 +00:00
2018-11-22 16:11:49 +00:00
m_checkBoxIconsInMenus = new wxCheckBox ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Show icons in menus " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-03-09 22:47:24 +00:00
gbSizer4 - > Add ( m_checkBoxIconsInMenus , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxLEFT , 5 ) ;
m_stIconTheme = new wxStaticText ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Icon theme: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stIconTheme - > Wrap ( - 1 ) ;
gbSizer4 - > Add ( m_stIconTheme , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 3 ) , wxLEFT | wxRIGHT , 5 ) ;
m_rbIconThemeLight = new wxRadioButton ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Light " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
m_rbIconThemeLight - > SetToolTip ( _ ( " Use icons designed for light window backgrounds " ) ) ;
gbSizer4 - > Add ( m_rbIconThemeLight , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxLEFT | wxRIGHT , 5 ) ;
m_rbIconThemeDark = new wxRadioButton ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Dark " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rbIconThemeDark - > SetToolTip ( _ ( " Use icons designed for dark window backgrounds " ) ) ;
gbSizer4 - > Add ( m_rbIconThemeDark , wxGBPosition ( 4 , 1 ) , wxGBSpan ( 1 , 1 ) , wxLEFT | wxRIGHT , 5 ) ;
m_rbIconThemeAuto = new wxRadioButton ( sbSizerIconsOpts - > GetStaticBox ( ) , wxID_ANY , _ ( " Automatic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rbIconThemeAuto - > SetValue ( true ) ;
m_rbIconThemeAuto - > SetToolTip ( _ ( " Automatically choose light or dark icons based on the system color theme " ) ) ;
gbSizer4 - > Add ( m_rbIconThemeAuto , wxGBPosition ( 4 , 2 ) , wxGBSpan ( 1 , 1 ) , wxLEFT | wxRIGHT , 5 ) ;
2020-09-20 11:57:55 +00:00
2019-11-12 12:47:35 +00:00
2020-09-20 11:57:55 +00:00
gbSizer4 - > AddGrowableCol ( 1 ) ;
gbSizer4 - > AddGrowableRow ( 0 ) ;
2019-11-12 12:47:35 +00:00
2021-02-21 20:11:44 +00:00
sbSizerIconsOpts - > Add ( gbSizer4 , 0 , wxBOTTOM | wxRIGHT | wxEXPAND , 5 ) ;
2020-05-28 17:10:52 +00:00
2019-07-25 16:48:11 +00:00
bLeftSizer - > Add ( sbSizerIconsOpts , 1 , wxEXPAND | wxALL , 5 ) ;
2019-11-12 12:47:35 +00:00
2020-09-20 11:57:55 +00:00
bPanelSizer - > Add ( bLeftSizer , 1 , wxBOTTOM | wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2019-07-25 16:48:11 +00:00
wxBoxSizer * rightSizer ;
rightSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2019-07-25 16:48:11 +00:00
wxStaticBoxSizer * sbSizer4 ;
sbSizer4 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Editing " ) ) , wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2019-08-15 11:52:38 +00:00
m_warpMouseOnMove = new wxCheckBox ( sbSizer4 - > GetStaticBox ( ) , wxID_ANY , _ ( " Warp mouse to origin of moved object " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbSizer4 - > Add ( m_warpMouseOnMove , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2019-07-25 16:48:11 +00:00
m_NonImmediateActions = new wxCheckBox ( sbSizer4 - > GetStaticBox ( ) , wxID_ANY , _ ( " First hotkey selects tool " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_NonImmediateActions - > SetToolTip ( _ ( " If not checked, hotkeys will immediately perform an action even if the relevant tool was not previously selected. " ) ) ;
2019-11-12 12:47:35 +00:00
2019-07-25 16:48:11 +00:00
sbSizer4 - > Add ( m_NonImmediateActions , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2020-07-03 13:40:31 +00:00
rightSizer - > Add ( sbSizer4 , 0 , wxEXPAND | wxALL , 5 ) ;
wxStaticBoxSizer * sbSizer41 ;
sbSizer41 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Project Backup " ) ) , wxVERTICAL ) ;
wxGridBagSizer * gbSizer3 ;
gbSizer3 = new wxGridBagSizer ( 0 , 0 ) ;
gbSizer3 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer3 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_cbBackupEnabled = new wxCheckBox ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " Automatically backup projects " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbBackupEnabled - > SetToolTip ( _ ( " Automatically create backup archives of the current project when saving files " ) ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_cbBackupEnabled , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 3 ) , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_cbBackupAutosave = new wxCheckBox ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " Create backups when auto save occurs " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbBackupAutosave - > SetToolTip ( _ ( " Create backups when the auto save feature is enabled. If not checked, backups will only be created when you manually save a file. " ) ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_cbBackupAutosave , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 3 ) , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_staticText9 = new wxStaticText ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " Maximum backups to keep: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText9 - > Wrap ( - 1 ) ;
m_staticText9 - > SetToolTip ( _ ( " How many backup files total to keep (set to 0 for no limit) " ) ) ;
gbSizer3 - > Add ( m_staticText9 , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_backupLimitTotalFiles = new wxSpinCtrl ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_backupLimitTotalFiles , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_staticText10 = new wxStaticText ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " Maximum backups per day: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText10 - > Wrap ( - 1 ) ;
m_staticText10 - > SetToolTip ( _ ( " How many backup files to keep each day (set to 0 for no limit) " ) ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_staticText10 , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_backupLimitDailyFiles = new wxSpinCtrl ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_backupLimitDailyFiles , wxGBPosition ( 3 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_staticText11 = new wxStaticText ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " Minimum time between backups: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText11 - > Wrap ( - 1 ) ;
m_staticText11 - > SetToolTip ( _ ( " Number of minutes since the last backup before another will be created the next time you save (set to 0 for no minimum) " ) ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_staticText11 , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_backupMinInterval = new wxSpinCtrl ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 3600 , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_backupMinInterval , wxGBPosition ( 4 , 1 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-07-03 13:40:31 +00:00
m_staticText15 = new wxStaticText ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " minutes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText15 - > Wrap ( - 1 ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_staticText15 , wxGBPosition ( 4 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_staticText16 = new wxStaticText ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " Maximum total backup size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText16 - > Wrap ( - 1 ) ;
m_staticText16 - > SetToolTip ( _ ( " If the total size of backup files grows above this limit, old backups will be deleted (set to 0 for no limit) " ) ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_staticText16 , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_backupLimitTotalSize = new wxSpinCtrl ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 0 ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_backupLimitTotalSize , wxGBPosition ( 5 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2020-07-03 13:40:31 +00:00
m_staticText17 = new wxStaticText ( sbSizer41 - > GetStaticBox ( ) , wxID_ANY , _ ( " MB " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText17 - > Wrap ( - 1 ) ;
2020-09-20 11:57:55 +00:00
gbSizer3 - > Add ( m_staticText17 , wxGBPosition ( 5 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2020-09-20 11:57:55 +00:00
sbSizer41 - > Add ( gbSizer3 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2020-07-03 13:40:31 +00:00
2020-09-20 11:57:55 +00:00
rightSizer - > Add ( sbSizer41 , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2020-08-24 02:01:14 +00:00
wxStaticBoxSizer * sbSizer5 ;
sbSizer5 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Session " ) ) , wxVERTICAL ) ;
m_cbRememberOpenFiles = new wxCheckBox ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " Remember open files for next project launch " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbRememberOpenFiles - > SetValue ( true ) ;
m_cbRememberOpenFiles - > SetToolTip ( _ ( " If checked, launching a project will also launch tools such as eeschema and pcbnew with previously open files " ) ) ;
2020-09-20 11:57:55 +00:00
sbSizer5 - > Add ( m_cbRememberOpenFiles , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-08-24 02:01:14 +00:00
2020-09-20 11:57:55 +00:00
rightSizer - > Add ( sbSizer5 , 1 , wxALL | wxEXPAND , 5 ) ;
2020-08-24 02:01:14 +00:00
2019-11-12 12:47:35 +00:00
2020-09-20 11:57:55 +00:00
bPanelSizer - > Add ( rightSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
this - > SetSizer ( bPanelSizer ) ;
this - > Layout ( ) ;
2020-09-20 11:57:55 +00:00
bPanelSizer - > Fit ( this ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
// Connect Events
m_textEditorBtn - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnTextEditorClick ) , NULL , this ) ;
2018-11-22 16:11:49 +00:00
m_PDFViewerPath - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_COMMON_SETTINGS_BASE : : onUpdateUIPdfPath ) , NULL , this ) ;
2018-05-14 17:34:18 +00:00
m_pdfViewerBtn - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnPDFViewerClick ) , NULL , this ) ;
2018-11-22 16:11:49 +00:00
m_pdfViewerBtn - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_COMMON_SETTINGS_BASE : : onUpdateUIPdfPath ) , NULL , this ) ;
2019-03-22 21:15:26 +00:00
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_TOP , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_BOTTOM , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_LINEUP , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_LINEDOWN , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_PAGEUP , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_PAGEDOWN , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_THUMBTRACK , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_THUMBRELEASE , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Connect ( wxEVT_SCROLL_CHANGED , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleAuto - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnIconScaleAuto ) , NULL , this ) ;
m_canvasScaleAuto - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnCanvasScaleAuto ) , NULL , this ) ;
2018-05-14 17:34:18 +00:00
}
PANEL_COMMON_SETTINGS_BASE : : ~ PANEL_COMMON_SETTINGS_BASE ( )
{
// Disconnect Events
m_textEditorBtn - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnTextEditorClick ) , NULL , this ) ;
2018-11-22 16:11:49 +00:00
m_PDFViewerPath - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_COMMON_SETTINGS_BASE : : onUpdateUIPdfPath ) , NULL , this ) ;
2018-05-14 17:34:18 +00:00
m_pdfViewerBtn - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnPDFViewerClick ) , NULL , this ) ;
2018-11-22 16:11:49 +00:00
m_pdfViewerBtn - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( PANEL_COMMON_SETTINGS_BASE : : onUpdateUIPdfPath ) , NULL , this ) ;
2019-03-22 21:15:26 +00:00
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_TOP , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_BOTTOM , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_LINEUP , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_LINEDOWN , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_PAGEUP , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_PAGEDOWN , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_THUMBTRACK , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_THUMBRELEASE , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleSlider - > Disconnect ( wxEVT_SCROLL_CHANGED , wxScrollEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnScaleSlider ) , NULL , this ) ;
m_iconScaleAuto - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnIconScaleAuto ) , NULL , this ) ;
m_canvasScaleAuto - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnCanvasScaleAuto ) , NULL , this ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
}