2018-04-28 15:22:25 +00:00
///////////////////////////////////////////////////////////////////////////
2024-06-05 15:32:27 +00:00
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf-dirty)
2018-04-28 15:22:25 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "pcb_layer_box_selector.h"
2022-01-11 15:34:24 +00:00
# include "widgets/font_choice.h"
2018-04-28 15:22:25 +00:00
# include "dialog_global_edit_text_and_graphics_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
wxBoxSizer * bSizerTop ;
bSizerTop = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
wxStaticBoxSizer * sbScope ;
sbScope = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Scope " ) ) , wxVERTICAL ) ;
2020-03-17 16:08:29 +00:00
m_references = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Reference designators " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-03-05 15:18:24 +00:00
sbScope - > Add ( m_references , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
2020-03-17 16:08:29 +00:00
m_values = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Values " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-03-05 15:18:24 +00:00
sbScope - > Add ( m_values , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
2020-03-17 16:08:29 +00:00
2024-06-05 15:32:27 +00:00
m_footprintFields = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Footprint fields " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_footprintFields - > SetToolTip ( _ ( " Footprint fields that are not the reference designator or value field " ) ) ;
sbScope - > Add ( m_footprintFields , 0 , wxALL , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_footprintGraphics = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Footprint graphic items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-03-05 15:18:24 +00:00
sbScope - > Add ( m_footprintGraphics , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
m_footprintDimensions = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Footprint dimension items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbScope - > Add ( m_footprintDimensions , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
2020-03-17 16:08:29 +00:00
2024-06-05 15:32:27 +00:00
m_otherFootprintTexts = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " Other footprint text items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_otherFootprintTexts - > SetToolTip ( _ ( " Footprint text items not associated with a field " ) ) ;
sbScope - > Add ( m_otherFootprintTexts , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
sbScope - > Add ( 0 , 0 , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
m_boardGraphics = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " PCB graphic items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-03-05 15:18:24 +00:00
sbScope - > Add ( m_boardGraphics , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
m_boardText = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " PCB text items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-03-05 15:18:24 +00:00
sbScope - > Add ( m_boardText , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
m_boardDimensions = new wxCheckBox ( sbScope - > GetStaticBox ( ) , wxID_ANY , _ ( " PCB dimension items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
sbScope - > Add ( m_boardDimensions , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 4 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
bSizerTop - > Add ( sbScope , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
wxStaticBoxSizer * sbFilters ;
sbFilters = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Filters " ) ) , wxVERTICAL ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
wxFlexGridSizer * fgSizer2 ;
2019-04-11 18:58:47 +00:00
fgSizer2 = new wxFlexGridSizer ( 0 , 2 , 4 , 0 ) ;
2018-04-28 15:22:25 +00:00
fgSizer2 - > AddGrowableCol ( 1 ) ;
fgSizer2 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer2 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_layerFilterOpt = new wxCheckBox ( sbFilters - > GetStaticBox ( ) , wxID_ANY , _ ( " Filter items by layer: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer2 - > Add ( m_layerFilterOpt , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
m_layerFilter = new PCB_LAYER_BOX_SELECTOR ( sbFilters - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
2019-02-28 17:56:37 +00:00
fgSizer2 - > Add ( m_layerFilter , 0 , wxEXPAND | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
fgSizer2 - > Add ( 0 , 0 , 1 , wxEXPAND | wxTOP | wxBOTTOM , 3 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
fgSizer2 - > Add ( 0 , 0 , 1 , wxEXPAND | wxTOP | wxBOTTOM , 3 ) ;
2020-03-17 16:08:29 +00:00
m_referenceFilterOpt = new wxCheckBox ( sbFilters - > GetStaticBox ( ) , wxID_ANY , _ ( " Filter items by parent reference designator: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-28 17:56:37 +00:00
fgSizer2 - > Add ( m_referenceFilterOpt , 0 , wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-11-11 12:24:34 +00:00
m_referenceFilter = new wxTextCtrl ( sbFilters - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-28 17:56:37 +00:00
fgSizer2 - > Add ( m_referenceFilter , 0 , wxEXPAND | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
m_footprintFilterOpt = new wxCheckBox ( sbFilters - > GetStaticBox ( ) , wxID_ANY , _ ( " Filter items by parent footprint library id: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-28 17:56:37 +00:00
fgSizer2 - > Add ( m_footprintFilterOpt , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_footprintFilter = new wxTextCtrl ( sbFilters - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-28 17:56:37 +00:00
fgSizer2 - > Add ( m_footprintFilter , 0 , wxBOTTOM | wxEXPAND | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2023-05-12 21:03:54 +00:00
m_selectedItemsFilter = new wxCheckBox ( sbFilters - > GetStaticBox ( ) , wxID_ANY , _ ( " Selected items only " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2021-02-16 03:14:28 +00:00
fgSizer2 - > Add ( m_selectedItemsFilter , 0 , wxALL , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
sbFilters - > Add ( fgSizer2 , 1 , wxEXPAND | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
bSizerTop - > Add ( sbFilters , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2020-03-17 16:08:29 +00:00
2022-07-13 23:43:33 +00:00
bMainSizer - > Add ( bSizerTop , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-02-28 11:28:15 +00:00
bMainSizer - > Add ( 0 , 0 , 0 , wxTOP , 5 ) ;
2020-03-17 16:08:29 +00:00
2019-04-11 18:58:47 +00:00
bMainSizer - > Add ( 0 , 0 , 0 , wxTOP , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
wxStaticBoxSizer * sbAction ;
sbAction = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Action " ) ) , wxVERTICAL ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_setToSpecifiedValues = new wxRadioButton ( sbAction - > GetStaticBox ( ) , ID_SPECIFIED_NET_TO_NETCLASS_VALUES , _ ( " Set to specified values: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-03-17 16:08:29 +00:00
m_setToSpecifiedValues - > SetValue ( true ) ;
2019-02-28 17:56:37 +00:00
sbAction - > Add ( m_setToSpecifiedValues , 0 , wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-08-02 17:00:41 +00:00
m_specifiedValues = new wxPanel ( sbAction - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2018-04-28 15:22:25 +00:00
wxBoxSizer * bSizer2 ;
bSizer2 = new wxBoxSizer ( wxVERTICAL ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
wxFlexGridSizer * fgSizer1 ;
2019-02-28 11:28:15 +00:00
fgSizer1 = new wxFlexGridSizer ( 0 , 5 , 2 , 0 ) ;
2020-05-05 15:40:18 +00:00
fgSizer1 - > AddGrowableCol ( 1 ) ;
fgSizer1 - > AddGrowableCol ( 4 ) ;
2018-04-28 15:22:25 +00:00
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_LayerLabel = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " Layer: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_LayerLabel - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_LayerLabel , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
m_LayerCtrl = new PCB_LAYER_BOX_SELECTOR ( m_specifiedValues , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
2018-08-02 17:00:41 +00:00
fgSizer1 - > Add ( m_LayerCtrl , 0 , wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-10-04 13:45:07 +00:00
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2020-05-05 15:40:18 +00:00
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2024-04-28 18:48:15 +00:00
m_visible = new wxCheckBox ( m_specifiedValues , wxID_ANY , _ ( " Visible (text only) " ) , wxDefaultPosition , wxDefaultSize , wxCHK_3STATE | wxCHK_ALLOW_3RD_STATE_FOR_USER ) ;
2022-01-11 15:34:24 +00:00
m_visible - > SetValue ( true ) ;
2024-04-28 18:48:15 +00:00
fgSizer1 - > Add ( m_visible , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 120 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_lineWidthLabel = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " Line thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_lineWidthLabel - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_lineWidthLabel , 0 , wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_LineWidthCtrl = new wxTextCtrl ( m_specifiedValues , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-28 17:56:37 +00:00
fgSizer1 - > Add ( m_LineWidthCtrl , 0 , wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_lineWidthUnits = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " unit " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_lineWidthUnits - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_lineWidthUnits , 0 , wxRIGHT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND | wxTOP , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2022-01-11 15:34:24 +00:00
m_fontLabel = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " Font: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_fontLabel - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_fontLabel , 0 , wxTOP | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
wxString m_fontCtrlChoices [ ] = { _ ( " KiCad Font " ) } ;
int m_fontCtrlNChoices = sizeof ( m_fontCtrlChoices ) / sizeof ( wxString ) ;
m_fontCtrl = new FONT_CHOICE ( m_specifiedValues , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_fontCtrlNChoices , m_fontCtrlChoices , 0 ) ;
m_fontCtrl - > SetSelection ( 0 ) ;
fgSizer1 - > Add ( m_fontCtrl , 0 , wxTOP | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
fgSizer1 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_bold = new wxCheckBox ( m_specifiedValues , wxID_ANY , _ ( " Bold " ) , wxDefaultPosition , wxDefaultSize , wxCHK_3STATE | wxCHK_ALLOW_3RD_STATE_FOR_USER ) ;
fgSizer1 - > Add ( m_bold , 0 , wxEXPAND | wxLEFT | wxALIGN_CENTER_VERTICAL , 120 ) ;
2018-04-28 15:22:25 +00:00
m_SizeXlabel = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " Text width: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_SizeXlabel - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_SizeXlabel , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_SizeXCtrl = new wxTextCtrl ( m_specifiedValues , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_SizeXCtrl - > SetMinSize ( wxSize ( 120 , - 1 ) ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( m_SizeXCtrl , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_SizeXunit = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " unit " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_SizeXunit - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_SizeXunit , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 20 ) ;
2020-03-17 16:08:29 +00:00
2022-01-11 15:34:24 +00:00
m_italic = new wxCheckBox ( m_specifiedValues , wxID_ANY , _ ( " Italic " ) , wxDefaultPosition , wxDefaultSize , wxCHK_3STATE | wxCHK_ALLOW_3RD_STATE_FOR_USER ) ;
fgSizer1 - > Add ( m_italic , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 120 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_SizeYlabel = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " Text height: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_SizeYlabel - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_SizeYlabel , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_SizeYCtrl = new wxTextCtrl ( m_specifiedValues , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer1 - > Add ( m_SizeYCtrl , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_SizeYunit = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " unit " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_SizeYunit - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_SizeYunit , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 20 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_keepUpright = new wxCheckBox ( m_specifiedValues , wxID_ANY , _ ( " Keep upright " ) , wxDefaultPosition , wxDefaultSize , wxCHK_3STATE | wxCHK_ALLOW_3RD_STATE_FOR_USER ) ;
2020-03-17 16:08:29 +00:00
m_keepUpright - > SetValue ( true ) ;
2020-05-05 15:40:18 +00:00
fgSizer1 - > Add ( m_keepUpright , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 120 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_ThicknessLabel = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " Text thickness: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_ThicknessLabel - > Wrap ( - 1 ) ;
2023-07-17 17:30:07 +00:00
fgSizer1 - > Add ( m_ThicknessLabel , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_ThicknessCtrl = new wxTextCtrl ( m_specifiedValues , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-07-17 17:30:07 +00:00
fgSizer1 - > Add ( m_ThicknessCtrl , 0 , wxEXPAND | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_ThicknessUnit = new wxStaticText ( m_specifiedValues , wxID_ANY , _ ( " unit " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_ThicknessUnit - > Wrap ( - 1 ) ;
2023-07-17 17:30:07 +00:00
fgSizer1 - > Add ( m_ThicknessUnit , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2023-11-06 03:18:02 +00:00
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND | wxLEFT | wxRIGHT , 20 ) ;
m_centerOnFP = new wxCheckBox ( m_specifiedValues , wxID_ANY , _ ( " Center on footprint " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer1 - > Add ( m_centerOnFP , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 120 ) ;
2023-11-02 13:37:44 +00:00
bSizer2 - > Add ( fgSizer1 , 1 , wxBOTTOM | wxEXPAND | wxTOP , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_specifiedValues - > SetSizer ( bSizer2 ) ;
m_specifiedValues - > Layout ( ) ;
bSizer2 - > Fit ( m_specifiedValues ) ;
2023-07-17 17:30:07 +00:00
sbAction - > Add ( m_specifiedValues , 0 , wxEXPAND | wxBOTTOM | wxLEFT , 18 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_setToLayerDefaults = new wxRadioButton ( sbAction - > GetStaticBox ( ) , ID_ALL_TRACKS_VIAS , _ ( " Set to layer default values: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2023-03-05 15:18:24 +00:00
sbAction - > Add ( m_setToLayerDefaults , 0 , wxTOP | wxBOTTOM | wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-08-02 17:00:41 +00:00
m_grid = new wxGrid ( sbAction - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxBORDER_SIMPLE ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
// Grid
2020-05-04 23:11:32 +00:00
m_grid - > CreateGrid ( 7 , 7 ) ;
2018-04-28 15:22:25 +00:00
m_grid - > EnableEditing ( false ) ;
m_grid - > EnableGridLines ( true ) ;
m_grid - > EnableDragGridSize ( false ) ;
m_grid - > SetMargins ( 0 , 0 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
// Columns
2019-04-11 18:58:47 +00:00
m_grid - > SetColSize ( 0 , 132 ) ;
m_grid - > SetColSize ( 1 , 116 ) ;
m_grid - > SetColSize ( 2 , 116 ) ;
m_grid - > SetColSize ( 3 , 116 ) ;
m_grid - > SetColSize ( 4 , 116 ) ;
m_grid - > SetColSize ( 5 , 96 ) ;
m_grid - > SetColSize ( 6 , 96 ) ;
2018-04-28 15:22:25 +00:00
m_grid - > EnableDragColMove ( false ) ;
m_grid - > EnableDragColSize ( false ) ;
m_grid - > SetColLabelSize ( 0 ) ;
2019-02-28 17:56:37 +00:00
m_grid - > SetColLabelAlignment ( wxALIGN_CENTER , wxALIGN_CENTER ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
// Rows
m_grid - > EnableDragRowSize ( false ) ;
m_grid - > SetRowLabelSize ( 0 ) ;
2019-02-28 17:56:37 +00:00
m_grid - > SetRowLabelAlignment ( wxALIGN_CENTER , wxALIGN_CENTER ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
// Label Appearance
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
// Cell Defaults
m_grid - > SetDefaultCellBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_BTNFACE ) ) ;
m_grid - > SetDefaultCellFont ( wxFont ( 11 , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
2019-02-28 17:56:37 +00:00
m_grid - > SetDefaultCellAlignment ( wxALIGN_LEFT , wxALIGN_CENTER ) ;
2023-11-02 13:37:44 +00:00
sbAction - > Add ( m_grid , 0 , wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
sbAction - > Add ( 0 , 0 , 0 , wxEXPAND | wxBOTTOM , 5 ) ;
2020-03-17 16:08:29 +00:00
2023-11-02 13:37:44 +00:00
bMainSizer - > Add ( sbAction , 0 , wxEXPAND | wxLEFT | wxRIGHT , 10 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
m_sdbSizerButtons = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerButtonsOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizerButtons - > AddButton ( m_sdbSizerButtonsOK ) ;
2022-07-13 23:43:33 +00:00
m_sdbSizerButtonsApply = new wxButton ( this , wxID_APPLY ) ;
m_sdbSizerButtons - > AddButton ( m_sdbSizerButtonsApply ) ;
2018-04-28 15:22:25 +00:00
m_sdbSizerButtonsCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizerButtons - > AddButton ( m_sdbSizerButtonsCancel ) ;
m_sdbSizerButtons - > Realize ( ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
bMainSizer - > Add ( m_sdbSizerButtons , 0 , wxALL | wxEXPAND , 5 ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
// Connect Events
2023-03-05 15:18:24 +00:00
m_footprintDimensions - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onDimensionItemCheckbox ) , NULL , this ) ;
m_boardDimensions - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onDimensionItemCheckbox ) , NULL , this ) ;
2018-04-28 15:22:25 +00:00
m_layerFilter - > Connect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnLayerFilterSelect ) , NULL , this ) ;
2018-11-11 12:24:34 +00:00
m_referenceFilter - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnReferenceFilterText ) , NULL , this ) ;
2018-04-28 15:22:25 +00:00
m_footprintFilter - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnFootprintFilterText ) , NULL , this ) ;
2021-04-07 16:38:07 +00:00
m_setToSpecifiedValues - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onActionButtonChange ) , NULL , this ) ;
m_LayerLabel - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_LayerCtrl - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
2022-01-11 15:34:24 +00:00
m_visible - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_fontCtrl - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onFontSelected ) , NULL , this ) ;
m_bold - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_italic - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
2021-04-07 16:38:07 +00:00
m_keepUpright - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_setToLayerDefaults - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onActionButtonChange ) , NULL , this ) ;
2018-04-28 15:22:25 +00:00
m_grid - > Connect ( wxEVT_SIZE , wxSizeEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnSizeNetclassGrid ) , NULL , this ) ;
}
DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : ~ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE ( )
{
// Disconnect Events
2023-03-05 15:18:24 +00:00
m_footprintDimensions - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onDimensionItemCheckbox ) , NULL , this ) ;
m_boardDimensions - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onDimensionItemCheckbox ) , NULL , this ) ;
2018-04-28 15:22:25 +00:00
m_layerFilter - > Disconnect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnLayerFilterSelect ) , NULL , this ) ;
2018-11-11 12:24:34 +00:00
m_referenceFilter - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnReferenceFilterText ) , NULL , this ) ;
2018-04-28 15:22:25 +00:00
m_footprintFilter - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnFootprintFilterText ) , NULL , this ) ;
2021-04-07 16:38:07 +00:00
m_setToSpecifiedValues - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onActionButtonChange ) , NULL , this ) ;
m_LayerLabel - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_LayerCtrl - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
2022-01-11 15:34:24 +00:00
m_visible - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_fontCtrl - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onFontSelected ) , NULL , this ) ;
m_bold - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_italic - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
2021-04-07 16:38:07 +00:00
m_keepUpright - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onSpecifiedValueUpdateUI ) , NULL , this ) ;
m_setToLayerDefaults - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : onActionButtonChange ) , NULL , this ) ;
2018-04-28 15:22:25 +00:00
m_grid - > Disconnect ( wxEVT_SIZE , wxSizeEventHandler ( DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : : OnSizeNetclassGrid ) , NULL , this ) ;
2020-03-17 16:08:29 +00:00
2018-04-28 15:22:25 +00:00
}