2018-05-14 17:34:18 +00:00
///////////////////////////////////////////////////////////////////////////
2024-02-13 18:59:13 +00:00
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf-dirty)
2018-05-14 17:34:18 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
2022-12-13 20:47:28 +00:00
# include "widgets/std_bitmap_button.h"
2018-05-14 17:34:18 +00:00
# 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
2023-01-11 01:00:47 +00:00
m_staticText20 = new wxStaticText ( this , wxID_ANY , _ ( " Antialiasing " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText20 - > Wrap ( - 1 ) ;
bLeftSizer - > Add ( m_staticText20 , 0 , wxTOP | wxRIGHT | wxLEFT | wxEXPAND , 13 ) ;
m_staticline3 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bLeftSizer - > Add ( m_staticline3 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
wxBoxSizer * bAntialiasingSizer ;
bAntialiasingSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2021-09-16 17:29:29 +00:00
wxGridBagSizer * gbSizer11 ;
gbSizer11 = new wxGridBagSizer ( 6 , 4 ) ;
gbSizer11 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer11 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
gbSizer11 - > SetEmptyCellSize ( wxSize ( - 1 , 2 ) ) ;
2020-08-09 10:41:45 +00:00
2018-09-04 00:00:17 +00:00
wxStaticText * antialiasingLabel ;
2023-01-11 01:00:47 +00:00
antialiasingLabel = new wxStaticText ( this , wxID_ANY , _ ( " Accelerated graphics: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-09-04 00:00:17 +00:00
antialiasingLabel - > Wrap ( - 1 ) ;
2021-10-21 12:59:55 +00:00
gbSizer11 - > Add ( antialiasingLabel , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2021-06-09 00:20:41 +00:00
wxString m_antialiasingChoices [ ] = { _ ( " No Antialiasing " ) , _ ( " Fast Antialiasing " ) , _ ( " High Quality Antialiasing " ) } ;
2018-09-04 00:00:17 +00:00
int m_antialiasingNChoices = sizeof ( m_antialiasingChoices ) / sizeof ( wxString ) ;
2023-01-11 01:00:47 +00:00
m_antialiasing = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_antialiasingNChoices , m_antialiasingChoices , 0 ) ;
2018-09-04 00:00:17 +00:00
m_antialiasing - > SetSelection ( 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer11 - > Add ( m_antialiasing , wxGBPosition ( 0 , 1 ) , wxGBSpan ( 1 , 2 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_antialiasingFallbackLabel = new wxStaticText ( this , wxID_ANY , _ ( " Fallback graphics: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-20 11:57:55 +00:00
m_antialiasingFallbackLabel - > Wrap ( - 1 ) ;
2021-10-21 12:59:55 +00:00
gbSizer11 - > Add ( m_antialiasingFallbackLabel , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2021-06-09 00:20:41 +00:00
wxString m_antialiasingFallbackChoices [ ] = { _ ( " No Antialiasing " ) , _ ( " Fast Antialiasing " ) , _ ( " High Quality Antialiasing " ) } ;
2018-01-04 12:13:00 +00:00
int m_antialiasingFallbackNChoices = sizeof ( m_antialiasingFallbackChoices ) / sizeof ( wxString ) ;
2023-01-11 01:00:47 +00:00
m_antialiasingFallback = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_antialiasingFallbackNChoices , m_antialiasingFallbackChoices , 0 ) ;
2018-01-04 12:13:00 +00:00
m_antialiasingFallback - > SetSelection ( 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer11 - > Add ( m_antialiasingFallback , wxGBPosition ( 1 , 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
2021-09-16 17:29:29 +00:00
gbSizer11 - > AddGrowableCol ( 1 ) ;
2023-02-04 16:45:39 +00:00
bAntialiasingSizer - > Add ( gbSizer11 , 0 , wxTOP | wxBOTTOM , 5 ) ;
2023-01-11 01:00:47 +00:00
2023-05-29 13:23:06 +00:00
bLeftSizer - > Add ( bAntialiasingSizer , 0 , wxTOP | wxLEFT | wxEXPAND , 5 ) ;
2023-01-11 01:00:47 +00:00
2019-11-12 12:47:35 +00:00
2023-02-04 16:45:39 +00:00
bLeftSizer - > Add ( 0 , 15 , 0 , 0 , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_staticText21 = new wxStaticText ( this , wxID_ANY , _ ( " Helper Applications " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText21 - > Wrap ( - 1 ) ;
2023-02-04 16:45:39 +00:00
bLeftSizer - > Add ( m_staticText21 , 0 , wxTOP | wxRIGHT | wxLEFT , 13 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bLeftSizer - > Add ( m_staticline2 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
wxBoxSizer * bHelperAppsSizer ;
bHelperAppsSizer = new wxBoxSizer ( 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 ;
2023-01-11 01:00:47 +00:00
textEditorLabel = new wxStaticText ( this , 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
2023-01-11 01:00:47 +00:00
m_textEditorPath = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-05-29 13:23:06 +00:00
bSizer61 - > Add ( m_textEditorPath , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_textEditorBtn = new STD_BITMAP_BUTTON ( this , 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 ) ;
2023-02-04 16:45:39 +00:00
bHelperAppsSizer - > Add ( bSizer61 , 0 , wxTOP | wxRIGHT | wxEXPAND , 5 ) ;
2021-01-09 12:57:18 +00:00
2023-01-11 01:00:47 +00:00
bHelperAppsSizer - > Add ( 0 , 12 , 0 , wxEXPAND , 5 ) ;
2021-01-09 12:57:18 +00:00
wxBoxSizer * bSizer8 ;
bSizer8 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_defaultPDFViewer = new wxRadioButton ( this , wxID_ANY , _ ( " System default PDF viewer " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-02-04 16:45:39 +00:00
bSizer8 - > Add ( m_defaultPDFViewer , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2021-01-09 12:57:18 +00:00
2023-05-29 13:23:06 +00:00
bHelperAppsSizer - > Add ( bSizer8 , 0 , wxBOTTOM | wxEXPAND , 3 ) ;
2021-01-09 12:57:18 +00:00
wxBoxSizer * bSizer7 ;
bSizer7 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_otherPDFViewer = new wxRadioButton ( this , 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
2023-01-11 01:00:47 +00:00
m_PDFViewerPath = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-05-29 13:23:06 +00:00
bSizer7 - > Add ( m_PDFViewerPath , 1 , wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_pdfViewerBtn = new STD_BITMAP_BUTTON ( this , 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
2023-02-04 16:45:39 +00:00
bHelperAppsSizer - > Add ( bSizer7 , 0 , wxBOTTOM | wxRIGHT | wxEXPAND , 5 ) ;
2023-01-11 01:00:47 +00:00
2023-05-29 13:23:06 +00:00
bLeftSizer - > Add ( bHelperAppsSizer , 0 , wxTOP | wxLEFT | wxEXPAND , 5 ) ;
2023-01-11 01:00:47 +00:00
2023-02-04 16:45:39 +00:00
bLeftSizer - > Add ( 0 , 15 , 0 , 0 , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_staticText22 = new wxStaticText ( this , wxID_ANY , _ ( " User Interface " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText22 - > Wrap ( - 1 ) ;
2023-02-04 16:45:39 +00:00
bLeftSizer - > Add ( m_staticText22 , 0 , wxTOP | wxRIGHT | wxLEFT , 13 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bLeftSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
wxBoxSizer * bUserInterfaceSizer ;
bUserInterfaceSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-12 12:47:35 +00:00
2023-02-04 16:45:39 +00:00
wxBoxSizer * bSizer14 ;
bSizer14 = new wxBoxSizer ( wxVERTICAL ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_checkBoxIconsInMenus = new wxCheckBox ( this , wxID_ANY , _ ( " Show icons in menus " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-02-04 16:45:39 +00:00
bSizer14 - > Add ( m_checkBoxIconsInMenus , 0 , wxALL , 5 ) ;
2022-08-21 12:39:55 +00:00
2023-01-11 01:00:47 +00:00
m_showScrollbars = new wxCheckBox ( this , wxID_ANY , _ ( " Show scrollbars in editors " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-08-21 12:39:55 +00:00
m_showScrollbars - > SetValue ( true ) ;
m_showScrollbars - > SetToolTip ( _ ( " This change takes effect when relaunching the editor. " ) ) ;
2023-02-04 16:45:39 +00:00
bSizer14 - > Add ( m_showScrollbars , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2022-08-21 12:39:55 +00:00
2023-01-11 01:00:47 +00:00
m_focusFollowSchPcb = new wxCheckBox ( this , wxID_ANY , _ ( " Focus follows mouse between schematic and PCB editors " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2022-09-30 18:32:06 +00:00
m_focusFollowSchPcb - > SetToolTip ( _ ( " If the mouse cursor is moved over the canvas of a schematic or PCB editor window, that window is raised. " ) ) ;
2023-02-04 16:45:39 +00:00
bSizer14 - > Add ( m_focusFollowSchPcb , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2023-05-31 02:06:49 +00:00
m_hotkeyFeedback = new wxCheckBox ( this , wxID_ANY , _ ( " Show popup indicator when toggling settings with hotkeys " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_hotkeyFeedback - > SetToolTip ( _ ( " When enabled, certain hotkeys that cycle between settings will show a popup indicator briefly to indicate the change in settings. " ) ) ;
bSizer14 - > Add ( m_hotkeyFeedback , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2024-02-13 18:59:13 +00:00
m_gridStriping = new wxCheckBox ( this , wxID_ANY , _ ( " Use alternating row colors in tables " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_gridStriping - > SetToolTip ( _ ( " When enabled, use a different color for every other table row " ) ) ;
bSizer14 - > Add ( m_gridStriping , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2023-02-04 16:45:39 +00:00
bUserInterfaceSizer - > Add ( bSizer14 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizerIconsTheme ;
bSizerIconsTheme = new wxBoxSizer ( wxHORIZONTAL ) ;
2021-09-16 22:45:28 +00:00
2023-01-11 01:00:47 +00:00
m_stIconTheme = new wxStaticText ( this , wxID_ANY , _ ( " Icon theme: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_stIconTheme - > Wrap ( - 1 ) ;
2023-02-04 16:45:39 +00:00
bSizerIconsTheme - > Add ( m_stIconTheme , 0 , wxALL , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_rbIconThemeLight = new wxRadioButton ( this , wxID_ANY , _ ( " Light " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
2021-09-16 17:29:29 +00:00
m_rbIconThemeLight - > SetToolTip ( _ ( " Use icons designed for light window backgrounds " ) ) ;
2023-02-04 16:45:39 +00:00
bSizerIconsTheme - > Add ( m_rbIconThemeLight , 0 , wxALL , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_rbIconThemeDark = new wxRadioButton ( this , wxID_ANY , _ ( " Dark " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_rbIconThemeDark - > SetToolTip ( _ ( " Use icons designed for dark window backgrounds " ) ) ;
2023-02-04 16:45:39 +00:00
bSizerIconsTheme - > Add ( m_rbIconThemeDark , 0 , wxALL , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_rbIconThemeAuto = new wxRadioButton ( this , wxID_ANY , _ ( " Automatic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_rbIconThemeAuto - > SetValue ( true ) ;
m_rbIconThemeAuto - > SetToolTip ( _ ( " Automatically choose light or dark icons based on the system color theme " ) ) ;
2023-02-04 16:45:39 +00:00
bSizerIconsTheme - > Add ( m_rbIconThemeAuto , 0 , wxALL , 5 ) ;
2023-05-29 13:23:06 +00:00
bUserInterfaceSizer - > Add ( bSizerIconsTheme , 0 , wxEXPAND , 5 ) ;
2023-02-04 16:45:39 +00:00
2023-10-22 00:41:02 +00:00
wxBoxSizer * bSizerToolbarSize ;
bSizerToolbarSize = new wxBoxSizer ( wxHORIZONTAL ) ;
m_stToolbarIconSize = new wxStaticText ( this , wxID_ANY , _ ( " Toolbar icon size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stToolbarIconSize - > Wrap ( - 1 ) ;
bSizerToolbarSize - > Add ( m_stToolbarIconSize , 0 , wxALL , 5 ) ;
2023-11-01 00:15:32 +00:00
m_rbIconSizeSmall = new wxRadioButton ( this , wxID_ANY , _ ( " Small " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
2023-10-22 00:41:02 +00:00
m_rbIconSizeSmall - > SetToolTip ( _ ( " Use compact icons in the toolbars " ) ) ;
bSizerToolbarSize - > Add ( m_rbIconSizeSmall , 0 , wxALL , 5 ) ;
m_rbIconSizeNormal = new wxRadioButton ( this , wxID_ANY , _ ( " Normal " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rbIconSizeNormal - > SetToolTip ( _ ( " Use the default KiCad icon size in the toolbars " ) ) ;
bSizerToolbarSize - > Add ( m_rbIconSizeNormal , 0 , wxALL , 5 ) ;
m_rbIconSizeLarge = new wxRadioButton ( this , wxID_ANY , _ ( " Large " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rbIconSizeLarge - > SetToolTip ( _ ( " Use larger icons in the toolbars " ) ) ;
bSizerToolbarSize - > Add ( m_rbIconSizeLarge , 0 , wxALL , 5 ) ;
bUserInterfaceSizer - > Add ( bSizerToolbarSize , 0 , wxEXPAND , 5 ) ;
2023-02-04 16:45:39 +00:00
m_gbUserInterface = new wxGridBagSizer ( 5 , 0 ) ;
m_gbUserInterface - > SetFlexibleDirection ( wxVERTICAL ) ;
m_gbUserInterface - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_ALL ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_staticTextCanvasScale = new wxStaticText ( this , wxID_ANY , _ ( " Canvas scale: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-03-22 21:15:26 +00:00
m_staticTextCanvasScale - > Wrap ( - 1 ) ;
2023-02-04 16:45:39 +00:00
m_gbUserInterface - > Add ( m_staticTextCanvasScale , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_canvasScaleCtrl = new wxSpinCtrlDouble ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 100 , 0 , 1 ) ;
2019-11-12 12:47:35 +00:00
m_canvasScaleCtrl - > SetDigits ( 0 ) ;
2023-02-04 16:45:39 +00:00
m_gbUserInterface - > Add ( m_canvasScaleCtrl , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2021-03-09 22:47:24 +00:00
2023-01-11 01:00:47 +00:00
m_canvasScaleAuto = new wxCheckBox ( this , wxID_ANY , _ ( " Automatic " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-02-04 16:45:39 +00:00
m_gbUserInterface - > Add ( m_canvasScaleAuto , wxGBPosition ( 1 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxLEFT , 15 ) ;
2021-03-09 22:47:24 +00:00
2023-02-04 16:45:39 +00:00
bUserInterfaceSizer - > Add ( m_gbUserInterface , 0 , wxTOP | wxBOTTOM | wxLEFT | wxEXPAND , 5 ) ;
2021-03-09 22:47:24 +00:00
2023-01-11 01:00:47 +00:00
bUserInterfaceSizer - > Add ( 0 , 10 , 0 , wxEXPAND , 5 ) ;
2020-09-20 11:57:55 +00:00
2023-01-11 01:00:47 +00:00
m_scaleFonts = new wxCheckBox ( this , wxID_ANY , _ ( " Apply icon scaling to fonts " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bUserInterfaceSizer - > Add ( m_scaleFonts , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_fontScalingHelp = new wxStaticText ( this , wxID_ANY , _ ( " (This workaround will improve some GTK HiDPI font scaling issues.) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 22:45:28 +00:00
m_fontScalingHelp - > Wrap ( - 1 ) ;
2023-01-11 01:00:47 +00:00
bUserInterfaceSizer - > Add ( m_fontScalingHelp , 0 , wxBOTTOM | wxLEFT , 8 ) ;
2020-05-28 17:10:52 +00:00
2021-11-05 23:35:10 +00:00
wxBoxSizer * bSizerHighContrast ;
bSizerHighContrast = new wxBoxSizer ( wxHORIZONTAL ) ;
2023-01-11 01:00:47 +00:00
m_highContrastLabel = new wxStaticText ( this , wxID_ANY , _ ( " High-contrast mode dimming factor: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-11-05 23:35:10 +00:00
m_highContrastLabel - > Wrap ( - 1 ) ;
2023-02-03 14:59:34 +00:00
bSizerHighContrast - > Add ( m_highContrastLabel , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2021-11-05 23:35:10 +00:00
2023-01-11 01:00:47 +00:00
m_highContrastCtrl = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-11-05 23:35:10 +00:00
bSizerHighContrast - > Add ( m_highContrastCtrl , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2023-01-11 01:00:47 +00:00
m_highContrastUnits = new wxStaticText ( this , wxID_ANY , _ ( " % " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-11-05 23:35:10 +00:00
m_highContrastUnits - > Wrap ( - 1 ) ;
bSizerHighContrast - > Add ( m_highContrastUnits , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2023-01-11 01:00:47 +00:00
bUserInterfaceSizer - > Add ( bSizerHighContrast , 0 , wxBOTTOM | wxEXPAND , 5 ) ;
2021-11-05 23:35:10 +00:00
2023-02-04 16:45:39 +00:00
bLeftSizer - > Add ( bUserInterfaceSizer , 0 , wxTOP | wxLEFT | wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-05-29 13:23:06 +00:00
bPanelSizer - > Add ( bLeftSizer , 0 , wxRIGHT , 20 ) ;
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
2023-01-11 01:00:47 +00:00
m_staticText23 = new wxStaticText ( this , wxID_ANY , _ ( " Editing " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText23 - > Wrap ( - 1 ) ;
rightSizer - > Add ( m_staticText23 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 13 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_staticline6 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
rightSizer - > Add ( m_staticline6 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
wxBoxSizer * bEditingSizer ;
bEditingSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_warpMouseOnMove = new wxCheckBox ( this , wxID_ANY , _ ( " Warp mouse to origin of moved object " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-10-21 12:59:55 +00:00
m_warpMouseOnMove - > SetValue ( true ) ;
2023-01-11 01:00:47 +00:00
bEditingSizer - > Add ( m_warpMouseOnMove , 0 , wxALL , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
m_NonImmediateActions = new wxCheckBox ( this , wxID_ANY , _ ( " First hotkey selects tool " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-07-25 16:48:11 +00:00
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
2023-01-11 01:00:47 +00:00
bEditingSizer - > Add ( m_NonImmediateActions , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
rightSizer - > Add ( bEditingSizer , 0 , wxEXPAND | wxTOP | wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-01-11 01:00:47 +00:00
rightSizer - > Add ( 0 , 15 , 0 , wxEXPAND , 5 ) ;
2019-11-12 12:47:35 +00:00
2023-12-14 02:21:15 +00:00
m_staticText24 = new wxStaticText ( this , wxID_ANY , _ ( " Session " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-01-11 01:00:47 +00:00
m_staticText24 - > Wrap ( - 1 ) ;
rightSizer - > Add ( m_staticText24 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 13 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_staticline5 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
rightSizer - > Add ( m_staticline5 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
wxBoxSizer * bSessionSizer ;
bSessionSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_cbRememberOpenFiles = new wxCheckBox ( this , wxID_ANY , _ ( " Remember open files for next project launch " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_cbRememberOpenFiles - > SetValue ( true ) ;
2022-12-04 21:41:11 +00:00
m_cbRememberOpenFiles - > SetToolTip ( _ ( " If checked, launching a project will also launch tools such as the schematic and board editors with previously open files " ) ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
bSessionSizer - > Add ( m_cbRememberOpenFiles , 0 , wxALL , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
bSessionSizer - > Add ( 0 , 5 , 0 , 0 , 5 ) ;
2021-09-16 17:29:29 +00:00
wxGridBagSizer * gbSizer1 ;
gbSizer1 = new wxGridBagSizer ( 4 , 5 ) ;
gbSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
gbSizer1 - > SetEmptyCellSize ( wxSize ( - 1 , 2 ) ) ;
2023-01-11 01:00:47 +00:00
m_staticTextautosave = new wxStaticText ( this , wxID_ANY , _ ( " &Auto save: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_staticTextautosave - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_staticTextautosave , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2023-01-11 01:00:47 +00:00
m_SaveTime = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 10 , 0 ) ;
2021-09-16 17:29:29 +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 " ) ) ;
gbSizer1 - > Add ( m_SaveTime , wxGBPosition ( 0 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
wxStaticText * minutesLabel ;
2023-01-11 01:00:47 +00:00
minutesLabel = new wxStaticText ( this , wxID_ANY , _ ( " minutes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
minutesLabel - > Wrap ( - 1 ) ;
2021-10-21 12:59:55 +00:00
gbSizer1 - > Add ( minutesLabel , wxGBPosition ( 0 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_staticTextFileHistorySize = new wxStaticText ( this , wxID_ANY , _ ( " File history size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_staticTextFileHistorySize - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_staticTextFileHistorySize , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2023-01-11 01:00:47 +00:00
m_fileHistorySize = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 1 , 100 , 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer1 - > Add ( m_fileHistorySize , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2023-01-11 01:00:47 +00:00
m_staticTextClear3DCache = new wxStaticText ( this , wxID_ANY , _ ( " 3D cache file duration: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_staticTextClear3DCache - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_staticTextClear3DCache , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
2023-01-11 01:00:47 +00:00
m_Clear3DCacheFilesOlder = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 120 , 30 ) ;
2021-09-16 17:29:29 +00:00
m_Clear3DCacheFilesOlder - > SetToolTip ( _ ( " 3D cache files older than this are deleted. \n If set to 0, cache clearing is disabled " ) ) ;
gbSizer1 - > Add ( m_Clear3DCacheFilesOlder , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2023-01-11 01:00:47 +00:00
m_staticTextDays = new wxStaticText ( this , wxID_ANY , _ ( " days " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-16 17:29:29 +00:00
m_staticTextDays - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_staticTextDays , wxGBPosition ( 2 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL , 5 ) ;
gbSizer1 - > AddGrowableCol ( 1 ) ;
2023-01-11 01:00:47 +00:00
bSessionSizer - > Add ( gbSizer1 , 0 , wxALL , 5 ) ;
2023-02-04 16:45:39 +00:00
rightSizer - > Add ( bSessionSizer , 0 , wxTOP | wxLEFT | wxEXPAND , 5 ) ;
2023-01-11 01:00:47 +00:00
rightSizer - > Add ( 0 , 15 , 0 , wxEXPAND , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_staticText25 = new wxStaticText ( this , wxID_ANY , _ ( " Project Backup " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText25 - > Wrap ( - 1 ) ;
rightSizer - > Add ( m_staticText25 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 13 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
m_staticline4 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
rightSizer - > Add ( m_staticline4 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2021-09-16 17:29:29 +00:00
2023-01-11 01:00:47 +00:00
wxBoxSizer * bProjectBackupSizer ;
bProjectBackupSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-07-03 13:40:31 +00:00
wxGridBagSizer * gbSizer3 ;
gbSizer3 = new wxGridBagSizer ( 0 , 0 ) ;
gbSizer3 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer3 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2023-01-11 01:00:47 +00:00
m_cbBackupEnabled = new wxCheckBox ( this , wxID_ANY , _ ( " Automatically backup projects " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
m_cbBackupEnabled - > SetToolTip ( _ ( " Automatically create backup archives of the current project when saving files " ) ) ;
2021-10-21 12:59:55 +00:00
gbSizer3 - > Add ( m_cbBackupEnabled , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 3 ) , wxBOTTOM | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_cbBackupAutosave = new wxCheckBox ( this , wxID_ANY , _ ( " Create backups when auto save occurs " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
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. " ) ) ;
2021-10-21 12:59:55 +00:00
gbSizer3 - > Add ( m_cbBackupAutosave , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 3 ) , wxBOTTOM | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_staticText9 = new wxStaticText ( this , wxID_ANY , _ ( " Maximum backups to keep: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
m_staticText9 - > Wrap ( - 1 ) ;
m_staticText9 - > SetToolTip ( _ ( " How many backup files total to keep (set to 0 for no limit) " ) ) ;
2023-01-11 01:00:47 +00:00
gbSizer3 - > Add ( m_staticText9 , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_backupLimitTotalFiles = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer3 - > Add ( m_backupLimitTotalFiles , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_staticText10 = new wxStaticText ( this , wxID_ANY , _ ( " Maximum backups per day: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
m_staticText10 - > Wrap ( - 1 ) ;
m_staticText10 - > SetToolTip ( _ ( " How many backup files to keep each day (set to 0 for no limit) " ) ) ;
2023-01-11 01:00:47 +00:00
gbSizer3 - > Add ( m_staticText10 , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_backupLimitDailyFiles = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer3 - > Add ( m_backupLimitDailyFiles , wxGBPosition ( 3 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_staticText11 = new wxStaticText ( this , wxID_ANY , _ ( " Minimum time between backups: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
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) " ) ) ;
2023-01-11 01:00:47 +00:00
gbSizer3 - > Add ( m_staticText11 , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_backupMinInterval = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 3600 , 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer3 - > Add ( m_backupMinInterval , wxGBPosition ( 4 , 1 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_staticText15 = new wxStaticText ( this , wxID_ANY , _ ( " minutes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
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
2023-01-11 01:00:47 +00:00
m_staticText16 = new wxStaticText ( this , wxID_ANY , _ ( " Maximum total backup size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
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) " ) ) ;
2023-01-11 01:00:47 +00:00
gbSizer3 - > Add ( m_staticText16 , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_backupLimitTotalSize = new wxSpinCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1000 , 0 ) ;
2021-09-16 17:29:29 +00:00
gbSizer3 - > Add ( m_backupLimitTotalSize , wxGBPosition ( 5 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2020-07-03 13:40:31 +00:00
2023-01-11 01:00:47 +00:00
m_staticText17 = new wxStaticText ( this , wxID_ANY , _ ( " MB " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-07-03 13:40:31 +00:00
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
2021-09-16 17:29:29 +00:00
gbSizer3 - > AddGrowableCol ( 1 ) ;
2020-08-24 02:01:14 +00:00
2023-01-11 01:00:47 +00:00
bProjectBackupSizer - > Add ( gbSizer3 , 0 , wxALL , 5 ) ;
2020-08-24 02:01:14 +00:00
2023-01-11 01:00:47 +00:00
rightSizer - > Add ( bProjectBackupSizer , 0 , wxEXPAND | wxTOP | wxLEFT , 5 ) ;
2020-08-24 02:01:14 +00:00
2019-11-12 12:47:35 +00:00
2023-05-29 13:23:06 +00:00
bPanelSizer - > Add ( rightSizer , 0 , wxLEFT , 5 ) ;
2019-11-12 12:47:35 +00:00
2018-05-14 17:34:18 +00:00
this - > SetSizer ( bPanelSizer ) ;
this - > Layout ( ) ;
2023-05-10 15:51:03 +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 ) ;
2021-12-30 16:36:01 +00:00
m_defaultPDFViewer - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnRadioButtonPdfViewer ) , NULL , this ) ;
m_otherPDFViewer - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnRadioButtonPdfViewer ) , 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 ) ;
2019-03-22 21:15:26 +00:00
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 ) ;
2021-12-30 16:36:01 +00:00
m_defaultPDFViewer - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnRadioButtonPdfViewer ) , NULL , this ) ;
m_otherPDFViewer - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( PANEL_COMMON_SETTINGS_BASE : : OnRadioButtonPdfViewer ) , 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 ) ;
2019-03-22 21:15:26 +00:00
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
}