2018-05-14 17:34:18 +00:00
///////////////////////////////////////////////////////////////////////////
2023-12-08 18:08:52 +00:00
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
2018-05-14 17:34:18 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
2020-06-17 20:45:03 +00:00
# include "panel_edit_options_base.h"
2018-05-14 17:34:18 +00:00
///////////////////////////////////////////////////////////////////////////
2021-11-01 11:20:13 +00:00
PANEL_EDIT_OPTIONS_BASE : : PANEL_EDIT_OPTIONS_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 ;
bPanelSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-08-05 15:29:16 +00:00
2018-05-14 17:34:18 +00:00
wxBoxSizer * bMargins ;
bMargins = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-08-05 15:29:16 +00:00
2018-05-14 17:34:18 +00:00
wxBoxSizer * bMiddleLeftSizer ;
bMiddleLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-05 15:29:16 +00:00
2018-05-14 17:34:18 +00:00
wxStaticBoxSizer * bOptionsSizer ;
bOptionsSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Editing Options " ) ) , wxVERTICAL ) ;
2019-08-05 15:29:16 +00:00
2021-01-19 13:16:26 +00:00
wxBoxSizer * bSizerUniversal ;
bSizerUniversal = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-05 15:29:16 +00:00
2022-10-19 10:32:16 +00:00
m_cbConstrainHV45Mode = new wxCheckBox ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Constrain actions to H, V, 45 degrees " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-07-10 16:15:37 +00:00
bSizerUniversal - > Add ( m_cbConstrainHV45Mode , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2022-10-19 10:32:16 +00:00
2021-04-10 00:20:31 +00:00
wxBoxSizer * bSizerRotationStep ;
bSizerRotationStep = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-08-05 15:29:16 +00:00
2022-01-19 13:24:02 +00:00
m_rotationAngleLabel = new wxStaticText ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Step for &rotate commands: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rotationAngleLabel - > Wrap ( - 1 ) ;
2023-01-07 23:19:06 +00:00
bSizerRotationStep - > Add ( m_rotationAngleLabel , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2022-01-19 13:24:02 +00:00
m_rotationAngleCtrl = new wxTextCtrl ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rotationAngleCtrl - > SetToolTip ( _ ( " Set increment (in degrees) for context menu and hotkey rotation. " ) ) ;
m_rotationAngleCtrl - > SetMinSize ( wxSize ( 60 , - 1 ) ) ;
2019-08-05 15:29:16 +00:00
2022-10-19 10:32:16 +00:00
bSizerRotationStep - > Add ( m_rotationAngleCtrl , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2022-01-19 13:24:02 +00:00
m_rotationAngleUnits = new wxStaticText ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " deg " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rotationAngleUnits - > Wrap ( - 1 ) ;
2022-10-19 10:32:16 +00:00
bSizerRotationStep - > Add ( m_rotationAngleUnits , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
2019-08-05 15:29:16 +00:00
2021-04-10 00:20:31 +00:00
bSizerUniversal - > Add ( bSizerRotationStep , 0 , wxEXPAND , 5 ) ;
2022-12-05 18:27:00 +00:00
m_arcEditModeLabel = new wxStaticText ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Arc editing mode: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_arcEditModeLabel - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
bSizerUniversal - > Add ( m_arcEditModeLabel , 0 , wxLEFT , 5 ) ;
2023-01-07 23:19:06 +00:00
2023-07-10 16:15:37 +00:00
bSizerUniversal - > Add ( 0 , 3 , 0 , wxEXPAND , 5 ) ;
2022-12-05 18:27:00 +00:00
wxString m_arcEditModeChoices [ ] = { _ ( " Keep center, adjust radius " ) , _ ( " Keep endpoints or direction of starting point " ) } ;
int m_arcEditModeNChoices = sizeof ( m_arcEditModeChoices ) / sizeof ( wxString ) ;
m_arcEditMode = new wxChoice ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_arcEditModeNChoices , m_arcEditModeChoices , 0 ) ;
m_arcEditMode - > SetSelection ( 0 ) ;
2023-07-10 16:15:37 +00:00
bSizerUniversal - > Add ( m_arcEditMode , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2022-12-05 18:27:00 +00:00
2023-07-10 16:15:37 +00:00
bOptionsSizer - > Add ( bSizerUniversal , 0 , wxEXPAND , 5 ) ;
2022-12-05 18:27:00 +00:00
2023-07-10 16:15:37 +00:00
m_sizerBoardEdit = new wxBoxSizer ( wxVERTICAL ) ;
2022-12-05 18:27:00 +00:00
2023-07-10 16:15:37 +00:00
m_trackMouseDragLabel = new wxStaticText ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Track mouse-drag mode: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_trackMouseDragLabel - > Wrap ( - 1 ) ;
m_sizerBoardEdit - > Add ( m_trackMouseDragLabel , 0 , wxRIGHT | wxLEFT , 5 ) ;
2021-01-19 13:16:26 +00:00
2023-07-10 16:15:37 +00:00
m_sizerBoardEdit - > Add ( 0 , 3 , 1 , wxEXPAND , 5 ) ;
wxString m_trackMouseDragCtrlChoices [ ] = { _ ( " Move " ) , _ ( " Drag (45 degree mode) " ) , _ ( " Drag (free angle) " ) } ;
int m_trackMouseDragCtrlNChoices = sizeof ( m_trackMouseDragCtrlChoices ) / sizeof ( wxString ) ;
m_trackMouseDragCtrl = new wxChoice ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_trackMouseDragCtrlNChoices , m_trackMouseDragCtrlChoices , 0 ) ;
m_trackMouseDragCtrl - > SetSelection ( 0 ) ;
m_sizerBoardEdit - > Add ( m_trackMouseDragCtrl , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
2023-12-08 18:08:52 +00:00
m_flipLeftRight = new wxCheckBox ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Flip board items left/right (default is top/bottom) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-07-10 16:15:37 +00:00
m_sizerBoardEdit - > Add ( m_flipLeftRight , 0 , wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_allowFreePads = new wxCheckBox ( bOptionsSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Allow free pads " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_allowFreePads - > SetToolTip ( _ ( " If checked, pads can be moved with respect to the rest of the footprint. " ) ) ;
m_sizerBoardEdit - > Add ( m_allowFreePads , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2020-12-05 15:04:42 +00:00
2023-07-10 16:15:37 +00:00
bOptionsSizer - > Add ( m_sizerBoardEdit , 0 , wxEXPAND | wxTOP , 5 ) ;
bMiddleLeftSizer - > Add ( bOptionsSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2020-12-05 15:04:42 +00:00
2020-12-19 00:19:47 +00:00
m_mouseCmdsWinLin = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Left Click Mouse Commands " ) ) , wxVERTICAL ) ;
2020-12-05 15:04:42 +00:00
2024-02-01 08:52:57 +00:00
m_staticText181 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Left click (and drag) actions depend on 2 modifier keys: \n Shift and Ctrl " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-05 15:04:42 +00:00
m_staticText181 - > Wrap ( - 1 ) ;
2020-12-19 00:19:47 +00:00
m_mouseCmdsWinLin - > Add ( m_staticText181 , 0 , wxALL , 5 ) ;
2020-12-05 15:04:42 +00:00
2020-12-19 00:19:47 +00:00
wxStaticLine * staticline11 ;
staticline11 = new wxStaticLine ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2023-07-10 16:15:37 +00:00
m_mouseCmdsWinLin - > Add ( staticline11 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2020-12-19 00:19:47 +00:00
wxFlexGridSizer * fgSizerCmdsWinLin ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin = new wxFlexGridSizer ( 0 , 2 , 8 , 0 ) ;
2020-12-19 00:19:47 +00:00
fgSizerCmdsWinLin - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerCmdsWinLin - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
wxStaticText * staticText61 ;
2023-07-10 16:15:37 +00:00
staticText61 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Click " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText61 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText61 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText71 ;
2024-02-01 08:52:57 +00:00
staticText71 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Select item(s) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText71 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText71 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
2021-09-09 17:46:52 +00:00
wxStaticText * staticText611 ;
staticText611 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Long Click " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticText611 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText611 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2021-09-09 17:46:52 +00:00
wxStaticText * staticText711 ;
2024-02-01 08:52:57 +00:00
staticText711 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Clarify selection from menu " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-09 17:46:52 +00:00
staticText711 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText711 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2021-09-09 17:46:52 +00:00
2020-12-19 00:19:47 +00:00
wxStaticText * staticText81 ;
staticText81 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Shift " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticText81 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText81 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText91 ;
2024-02-01 08:52:57 +00:00
staticText91 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Add item(s) to selection " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText91 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText91 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText121 ;
2021-09-09 17:46:52 +00:00
staticText121 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Ctrl+Shift " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText121 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText121 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText131 ;
2024-02-01 08:52:57 +00:00
staticText131 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Remove item(s) from selection " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText131 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText131 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText161 ;
2021-09-09 17:46:52 +00:00
staticText161 = new wxStaticText ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , _ ( " Ctrl " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText161 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsWinLin - > Add ( staticText161 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
2024-02-01 08:52:57 +00:00
wxString m_rbCtrlClickActionChoices [ ] = { _ ( " Toggle selection " ) , _ ( " Highlight net (for pads or tracks) " ) } ;
2022-06-16 17:05:48 +00:00
int m_rbCtrlClickActionNChoices = sizeof ( m_rbCtrlClickActionChoices ) / sizeof ( wxString ) ;
2023-07-10 16:15:37 +00:00
m_rbCtrlClickAction = new wxRadioBox ( m_mouseCmdsWinLin - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , m_rbCtrlClickActionNChoices , m_rbCtrlClickActionChoices , 1 , wxRA_SPECIFY_COLS ) ;
2023-10-19 15:59:35 +00:00
m_rbCtrlClickAction - > SetSelection ( 1 ) ;
fgSizerCmdsWinLin - > Add ( m_rbCtrlClickAction , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2020-12-19 00:19:47 +00:00
2023-07-10 16:15:37 +00:00
m_mouseCmdsWinLin - > Add ( fgSizerCmdsWinLin , 1 , wxEXPAND | wxTOP , 5 ) ;
2020-12-19 00:19:47 +00:00
bMiddleLeftSizer - > Add ( m_mouseCmdsWinLin , 1 , wxEXPAND | wxALL , 5 ) ;
m_mouseCmdsOSX = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Left Click Mouse Commands " ) ) , wxVERTICAL ) ;
2024-02-01 08:52:57 +00:00
m_staticText1811 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Left click (and drag) actions depend on 3 modifier keys: \n Option, Shift and Cmd " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
m_staticText1811 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
m_mouseCmdsOSX - > Add ( m_staticText1811 , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticLine * staticline111 ;
staticline111 = new wxStaticLine ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2023-07-10 16:15:37 +00:00
m_mouseCmdsOSX - > Add ( staticline111 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2020-12-19 00:19:47 +00:00
wxFlexGridSizer * fgSizerCmdsOSX ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX = new wxFlexGridSizer ( 0 , 2 , 8 , 0 ) ;
2020-12-19 00:19:47 +00:00
fgSizerCmdsOSX - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerCmdsOSX - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
wxStaticText * staticText62 ;
2023-07-10 16:15:37 +00:00
staticText62 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Click " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText62 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText62 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText72 ;
2024-02-01 08:52:57 +00:00
staticText72 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Select item(s) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText72 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText72 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
2021-09-09 17:46:52 +00:00
wxStaticText * staticText162 ;
staticText162 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Long Click " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticText162 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText162 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2021-09-09 17:46:52 +00:00
wxStaticText * staticText172 ;
2024-02-01 08:52:57 +00:00
staticText172 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Clarify selection from menu " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-09-09 17:46:52 +00:00
staticText172 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText172 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2021-09-09 17:46:52 +00:00
2020-12-19 00:19:47 +00:00
wxStaticText * staticText82 ;
staticText82 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Shift " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticText82 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText82 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText92 ;
2024-02-01 08:52:57 +00:00
staticText92 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Add item(s) to selection " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText92 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText92 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText122 ;
staticText122 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Shift+Cmd " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticText122 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText122 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText132 ;
2024-02-01 08:52:57 +00:00
staticText132 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Remove item(s) from selection " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText132 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText132 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-19 00:19:47 +00:00
wxStaticText * staticText142 ;
staticText142 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Cmd " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
staticText142 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText142 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-12-05 15:04:42 +00:00
2024-02-01 08:52:57 +00:00
wxString m_rbCtrlClickActionMacChoices [ ] = { _ ( " Toggle selection " ) , _ ( " Highlight net (for pads or tracks) " ) } ;
2022-06-16 17:05:48 +00:00
int m_rbCtrlClickActionMacNChoices = sizeof ( m_rbCtrlClickActionMacChoices ) / sizeof ( wxString ) ;
2023-07-10 16:15:37 +00:00
m_rbCtrlClickActionMac = new wxRadioBox ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , m_rbCtrlClickActionMacNChoices , m_rbCtrlClickActionMacChoices , 1 , wxRA_SPECIFY_COLS ) ;
2022-06-16 17:05:48 +00:00
m_rbCtrlClickActionMac - > SetSelection ( 0 ) ;
2023-10-19 15:59:35 +00:00
fgSizerCmdsOSX - > Add ( m_rbCtrlClickActionMac , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2020-12-05 15:04:42 +00:00
2020-12-19 00:19:47 +00:00
wxStaticText * staticText102 ;
2021-09-09 17:46:52 +00:00
staticText102 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Option " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText102 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText102 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-05 15:04:42 +00:00
2020-12-19 00:19:47 +00:00
wxStaticText * staticText112 ;
2024-02-01 08:52:57 +00:00
staticText112 = new wxStaticText ( m_mouseCmdsOSX - > GetStaticBox ( ) , wxID_ANY , _ ( " Clarify selection from menu " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-19 00:19:47 +00:00
staticText112 - > Wrap ( - 1 ) ;
2023-07-10 16:15:37 +00:00
fgSizerCmdsOSX - > Add ( staticText112 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2020-12-05 15:04:42 +00:00
2023-07-10 16:15:37 +00:00
m_mouseCmdsOSX - > Add ( fgSizerCmdsOSX , 1 , wxEXPAND | wxTOP , 5 ) ;
2019-08-05 15:29:16 +00:00
2020-12-19 00:19:47 +00:00
bMiddleLeftSizer - > Add ( m_mouseCmdsOSX , 1 , wxEXPAND | wxALL , 5 ) ;
2019-08-05 15:29:16 +00:00
2023-02-04 13:36:14 +00:00
bMargins - > Add ( bMiddleLeftSizer , 0 , wxEXPAND | wxTOP | wxRIGHT , 5 ) ;
2019-08-05 15:29:16 +00:00
2020-06-17 20:45:03 +00:00
m_optionsBook = new wxSimplebook ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-10-01 11:11:03 +00:00
wxPanel * fpPage ;
fpPage = new wxPanel ( m_optionsBook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bSizer10 ;
bSizer10 = new wxBoxSizer ( wxVERTICAL ) ;
2022-10-19 10:32:16 +00:00
wxStaticBoxSizer * sbFPMagnets ;
sbFPMagnets = new wxStaticBoxSizer ( new wxStaticBox ( fpPage , wxID_ANY , _ ( " Magnetic Points " ) ) , wxVERTICAL ) ;
2021-10-01 11:11:03 +00:00
2022-10-19 10:32:16 +00:00
m_magneticPads = new wxCheckBox ( sbFPMagnets - > GetStaticBox ( ) , wxID_ANY , _ ( " Magnetic pads " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_magneticPads - > SetValue ( true ) ;
sbFPMagnets - > Add ( m_magneticPads , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2021-10-01 11:11:03 +00:00
2022-10-19 10:32:16 +00:00
m_magneticGraphics = new wxCheckBox ( sbFPMagnets - > GetStaticBox ( ) , wxID_ANY , _ ( " Magnetic graphics " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbFPMagnets - > Add ( m_magneticGraphics , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2021-10-01 11:11:03 +00:00
2022-10-19 10:32:16 +00:00
2023-02-04 13:36:14 +00:00
bSizer10 - > Add ( sbFPMagnets , 0 , wxEXPAND | wxTOP , 5 ) ;
2021-10-01 11:11:03 +00:00
fpPage - > SetSizer ( bSizer10 ) ;
fpPage - > Layout ( ) ;
bSizer10 - > Fit ( fpPage ) ;
m_optionsBook - > AddPage ( fpPage , _ ( " a page " ) , false ) ;
2020-06-17 20:45:03 +00:00
wxPanel * pcbPage ;
pcbPage = new wxPanel ( m_optionsBook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * pcbOptionsSizer ;
pcbOptionsSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-05 15:29:16 +00:00
2019-01-29 14:04:12 +00:00
wxStaticBoxSizer * sbMagnets ;
2020-06-17 20:45:03 +00:00
sbMagnets = new wxStaticBoxSizer ( new wxStaticBox ( pcbPage , wxID_ANY , _ ( " Magnetic Points " ) ) , wxVERTICAL ) ;
2019-08-05 15:29:16 +00:00
2019-01-29 14:04:12 +00:00
wxFlexGridSizer * fgSizer2 ;
2023-07-10 16:15:37 +00:00
fgSizer2 = new wxFlexGridSizer ( 0 , 2 , 5 , 0 ) ;
2019-06-01 10:39:39 +00:00
fgSizer2 - > SetFlexibleDirection ( wxBOTH ) ;
2019-01-29 14:04:12 +00:00
fgSizer2 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
m_staticText2 = new wxStaticText ( sbMagnets - > GetStaticBox ( ) , wxID_ANY , _ ( " Snap to pads: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-01-29 14:04:12 +00:00
m_staticText2 - > Wrap ( - 1 ) ;
m_staticText2 - > SetToolTip ( _ ( " Capture cursor when the mouse enters a pad area " ) ) ;
2019-08-05 15:29:16 +00:00
fgSizer2 - > Add ( m_staticText2 , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2019-01-29 14:04:12 +00:00
wxString m_magneticPadChoiceChoices [ ] = { _ ( " Never " ) , _ ( " When creating tracks " ) , _ ( " Always " ) } ;
int m_magneticPadChoiceNChoices = sizeof ( m_magneticPadChoiceChoices ) / sizeof ( wxString ) ;
m_magneticPadChoice = new wxChoice ( sbMagnets - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_magneticPadChoiceNChoices , m_magneticPadChoiceChoices , 0 ) ;
m_magneticPadChoice - > SetSelection ( 1 ) ;
m_magneticPadChoice - > SetToolTip ( _ ( " Capture cursor when the mouse enters a pad area " ) ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
fgSizer2 - > Add ( m_magneticPadChoice , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
m_staticText21 = new wxStaticText ( sbMagnets - > GetStaticBox ( ) , wxID_ANY , _ ( " Snap to tracks: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-01-29 14:04:12 +00:00
m_staticText21 - > Wrap ( - 1 ) ;
m_staticText21 - > SetToolTip ( _ ( " Capture cursor when the mouse approaches a track " ) ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
fgSizer2 - > Add ( m_staticText21 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-01-29 14:04:12 +00:00
wxString m_magneticTrackChoiceChoices [ ] = { _ ( " Never " ) , _ ( " When creating tracks " ) , _ ( " Always " ) } ;
int m_magneticTrackChoiceNChoices = sizeof ( m_magneticTrackChoiceChoices ) / sizeof ( wxString ) ;
m_magneticTrackChoice = new wxChoice ( sbMagnets - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_magneticTrackChoiceNChoices , m_magneticTrackChoiceChoices , 0 ) ;
m_magneticTrackChoice - > SetSelection ( 1 ) ;
m_magneticTrackChoice - > SetToolTip ( _ ( " Capture cursor when the mouse approaches a track " ) ) ;
2019-08-05 15:29:16 +00:00
2019-01-29 14:04:12 +00:00
fgSizer2 - > Add ( m_magneticTrackChoice , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
m_staticText211 = new wxStaticText ( sbMagnets - > GetStaticBox ( ) , wxID_ANY , _ ( " Snap to graphics: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-01-29 14:04:12 +00:00
m_staticText211 - > Wrap ( - 1 ) ;
m_staticText211 - > SetToolTip ( _ ( " Capture cursor when the mouse approaches graphical control points " ) ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
fgSizer2 - > Add ( m_staticText211 , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-06-01 10:39:39 +00:00
wxString m_magneticGraphicsChoiceChoices [ ] = { _ ( " Always " ) , _ ( " Never " ) } ;
2019-01-29 14:04:12 +00:00
int m_magneticGraphicsChoiceNChoices = sizeof ( m_magneticGraphicsChoiceChoices ) / sizeof ( wxString ) ;
m_magneticGraphicsChoice = new wxChoice ( sbMagnets - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_magneticGraphicsChoiceNChoices , m_magneticGraphicsChoiceChoices , 0 ) ;
m_magneticGraphicsChoice - > SetSelection ( 0 ) ;
m_magneticGraphicsChoice - > SetToolTip ( _ ( " Capture cursor when the mouse approaches graphical control points " ) ) ;
2019-08-05 15:29:16 +00:00
2019-01-29 14:04:12 +00:00
fgSizer2 - > Add ( m_magneticGraphicsChoice , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-07-12 21:02:10 +00:00
sbMagnets - > Add ( fgSizer2 , 1 , wxEXPAND | wxBOTTOM , 5 ) ;
2019-08-05 15:29:16 +00:00
2023-07-10 16:15:37 +00:00
pcbOptionsSizer - > Add ( sbMagnets , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-06-13 00:32:47 +00:00
wxStaticBoxSizer * sbSizer3 ;
2020-06-17 20:45:03 +00:00
sbSizer3 = new wxStaticBoxSizer ( new wxStaticBox ( pcbPage , wxID_ANY , _ ( " Ratsnest " ) ) , wxVERTICAL ) ;
2019-08-05 15:29:16 +00:00
2019-06-13 00:32:47 +00:00
m_showSelectedRatsnest = new wxCheckBox ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , _ ( " Always show selected ratsnest " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-07-12 21:02:10 +00:00
sbSizer3 - > Add ( m_showSelectedRatsnest , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2019-06-13 00:32:47 +00:00
m_OptDisplayCurvedRatsnestLines = new wxCheckBox ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , _ ( " Show ratsnest with curved lines " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-07-12 21:02:10 +00:00
sbSizer3 - > Add ( m_OptDisplayCurvedRatsnestLines , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-08-05 15:29:16 +00:00
2023-05-20 23:06:51 +00:00
wxBoxSizer * bSizer11 ;
bSizer11 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_ratsnestThicknessLabel = new wxStaticText ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , _ ( " Ratsnest line thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_ratsnestThicknessLabel - > Wrap ( - 1 ) ;
2023-06-16 15:47:42 +00:00
bSizer11 - > Add ( m_ratsnestThicknessLabel , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2023-05-20 23:06:51 +00:00
m_ratsnestThickness = new wxSpinCtrlDouble ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0.5 , 10 , 0.5 , 0.5 ) ;
m_ratsnestThickness - > SetDigits ( 1 ) ;
2023-06-16 15:47:42 +00:00
bSizer11 - > Add ( m_ratsnestThickness , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2023-05-20 23:06:51 +00:00
sbSizer3 - > Add ( bSizer11 , 1 , wxEXPAND , 5 ) ;
2019-08-05 15:29:16 +00:00
2023-07-10 16:15:37 +00:00
pcbOptionsSizer - > Add ( sbSizer3 , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2020-06-21 19:39:27 +00:00
2022-10-19 10:32:16 +00:00
wxStaticBoxSizer * sbSizerMisc ;
sbSizerMisc = new wxStaticBoxSizer ( new wxStaticBox ( pcbPage , wxID_ANY , _ ( " Miscellaneous " ) ) , wxVERTICAL ) ;
2021-10-01 11:11:03 +00:00
2022-10-19 10:32:16 +00:00
m_escClearsNetHighlight = new wxCheckBox ( sbSizerMisc - > GetStaticBox ( ) , wxID_ANY , _ ( " <ESC> clears net highlighting " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_escClearsNetHighlight - > SetValue ( true ) ;
sbSizerMisc - > Add ( m_escClearsNetHighlight , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2021-10-01 11:11:03 +00:00
2022-10-19 10:32:16 +00:00
m_showPageLimits = new wxCheckBox ( sbSizerMisc - > GetStaticBox ( ) , wxID_ANY , _ ( " Show page limits " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-04-10 00:20:31 +00:00
m_showPageLimits - > SetValue ( true ) ;
m_showPageLimits - > SetToolTip ( _ ( " Draw an outline to show the sheet size. " ) ) ;
2021-03-17 18:57:07 +00:00
2022-10-19 10:32:16 +00:00
sbSizerMisc - > Add ( m_showPageLimits , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cbCourtyardCollisions = new wxCheckBox ( sbSizerMisc - > GetStaticBox ( ) , wxID_ANY , _ ( " Show courtyard collisions when moving/dragging " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbCourtyardCollisions - > SetValue ( true ) ;
sbSizerMisc - > Add ( m_cbCourtyardCollisions , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-03-17 18:57:07 +00:00
2023-12-08 18:08:52 +00:00
m_autoRefillZones = new wxCheckBox ( sbSizerMisc - > GetStaticBox ( ) , wxID_ANY , _ ( " Automatically refill zones " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-04-10 00:20:31 +00:00
m_autoRefillZones - > SetValue ( true ) ;
2022-11-29 15:21:20 +00:00
m_autoRefillZones - > SetToolTip ( _ ( " If checked, zones will be re-filled after each edit operation " ) ) ;
2021-03-27 14:44:51 +00:00
2022-10-19 10:32:16 +00:00
sbSizerMisc - > Add ( m_autoRefillZones , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2021-03-27 14:44:51 +00:00
2021-03-17 18:57:07 +00:00
2023-07-10 16:15:37 +00:00
pcbOptionsSizer - > Add ( sbSizerMisc , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2019-08-05 15:29:16 +00:00
2020-06-17 20:45:03 +00:00
pcbPage - > SetSizer ( pcbOptionsSizer ) ;
pcbPage - > Layout ( ) ;
pcbOptionsSizer - > Fit ( pcbPage ) ;
m_optionsBook - > AddPage ( pcbPage , _ ( " a page " ) , false ) ;
2019-08-05 15:29:16 +00:00
2023-02-04 13:36:14 +00:00
bMargins - > Add ( m_optionsBook , 0 , wxEXPAND | wxALL , 5 ) ;
2019-08-05 15:29:16 +00:00
2018-07-16 06:25:27 +00:00
bPanelSizer - > Add ( bMargins , 1 , wxRIGHT , 5 ) ;
2019-08-05 15:29:16 +00:00
2018-05-14 17:34:18 +00:00
this - > SetSizer ( bPanelSizer ) ;
this - > Layout ( ) ;
bPanelSizer - > Fit ( this ) ;
}
2020-06-17 20:45:03 +00:00
PANEL_EDIT_OPTIONS_BASE : : ~ PANEL_EDIT_OPTIONS_BASE ( )
2018-05-14 17:34:18 +00:00
{
}