2024-01-03 19:47:35 +01:00
///////////////////////////////////////////////////////////////////////////
2025-04-19 16:33:08 +02:00
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
2024-01-03 19:47:35 +01:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_multichannel_repeat_layout_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : : DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
2025-04-19 16:33:08 +02:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2024-01-03 19:47:35 +01:00
wxFlexGridSizer * fgSizer3 ;
fgSizer3 = new wxFlexGridSizer ( 0 , 1 , 0 , 0 ) ;
fgSizer3 - > AddGrowableCol ( 0 ) ;
2025-04-19 16:33:08 +02:00
fgSizer3 - > AddGrowableRow ( 1 ) ;
2024-01-03 19:47:35 +01:00
fgSizer3 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer3 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2025-04-19 16:33:08 +02:00
fgSizer3 - > SetMinSize ( wxSize ( 600 , - 1 ) ) ;
2024-01-03 19:47:35 +01:00
m_staticText4 = new wxStaticText ( this , wxID_ANY , _ ( " Target areas: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText4 - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticText4 , 0 , wxALL , 5 ) ;
2025-04-19 16:33:08 +02:00
m_raGrid = new wxGrid ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxVSCROLL ) ;
2024-01-03 19:47:35 +01:00
// Grid
m_raGrid - > CreateGrid ( 1 , 3 ) ;
m_raGrid - > EnableEditing ( false ) ;
m_raGrid - > EnableGridLines ( true ) ;
m_raGrid - > EnableDragGridSize ( false ) ;
m_raGrid - > SetMargins ( 0 , 0 ) ;
// Columns
m_raGrid - > AutoSizeColumns ( ) ;
2025-04-19 16:33:08 +02:00
m_raGrid - > EnableDragColMove ( false ) ;
2024-01-03 19:47:35 +01:00
m_raGrid - > EnableDragColSize ( true ) ;
2025-04-19 16:33:08 +02:00
m_raGrid - > SetColLabelSize ( wxGRID_AUTOSIZE ) ;
2024-01-03 19:47:35 +01:00
m_raGrid - > SetColLabelAlignment ( wxALIGN_CENTER , wxALIGN_CENTER ) ;
// Rows
m_raGrid - > AutoSizeRows ( ) ;
m_raGrid - > EnableDragRowSize ( true ) ;
m_raGrid - > SetRowLabelSize ( wxGRID_AUTOSIZE ) ;
m_raGrid - > SetRowLabelAlignment ( wxALIGN_CENTER , wxALIGN_CENTER ) ;
// Label Appearance
// Cell Defaults
m_raGrid - > SetDefaultCellAlignment ( wxALIGN_LEFT , wxALIGN_TOP ) ;
fgSizer3 - > Add ( m_raGrid , 1 , wxALL | wxEXPAND , 5 ) ;
2024-08-13 00:04:09 +02:00
wxBoxSizer * bSizer4 ;
bSizer4 = new wxBoxSizer ( wxHORIZONTAL ) ;
2025-04-27 07:40:40 +02:00
m_staticText1 = new wxStaticText ( this , wxID_ANY , _ ( " Reference rule area: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-08-13 00:04:09 +02:00
m_staticText1 - > Wrap ( - 1 ) ;
bSizer4 - > Add ( m_staticText1 , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_refRAName = new wxStaticText ( this , wxID_ANY , _ ( " MyLabel " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_refRAName - > Wrap ( - 1 ) ;
m_refRAName - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
bSizer4 - > Add ( m_refRAName , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
fgSizer3 - > Add ( bSizer4 , 1 , wxEXPAND , 5 ) ;
2025-04-19 16:33:08 +02:00
wxBoxSizer * bSizer41 ;
bSizer41 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_staticText2 = new wxStaticText ( this , wxID_ANY , _ ( " Anchor footprint: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText2 - > Wrap ( - 1 ) ;
bSizer41 - > Add ( m_staticText2 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
wxArrayString m_refAnchorFpChoices ;
m_refAnchorFp = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_refAnchorFpChoices , 0 ) ;
m_refAnchorFp - > SetSelection ( 0 ) ;
m_refAnchorFp - > SetToolTip ( _ ( " Optional, use for precise and/or rotated placement. \n Select reference rule area footprint, place corresponding \n target rule area footprint(s). " ) ) ;
m_refAnchorFp - > SetMaxSize ( wxSize ( - 1 , 400 ) ) ;
bSizer41 - > Add ( m_refAnchorFp , 0 , wxALL , 5 ) ;
fgSizer3 - > Add ( bSizer41 , 1 , wxEXPAND , 5 ) ;
2024-01-03 19:47:35 +01:00
wxBoxSizer * bSizer13 ;
bSizer13 = new wxBoxSizer ( wxVERTICAL ) ;
2024-11-24 11:29:17 -05:00
m_cbCopyPlacement = new wxCheckBox ( this , wxID_ANY , _ ( " Copy footprint placement " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-01-03 19:47:35 +01:00
bSizer13 - > Add ( m_cbCopyPlacement , 0 , wxALL , 5 ) ;
2025-04-27 07:40:40 +02:00
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxHORIZONTAL ) ;
2024-01-03 19:47:35 +01:00
m_cbCopyRouting = new wxCheckBox ( this , wxID_ANY , _ ( " Copy routing " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2025-04-27 07:40:40 +02:00
bSizer5 - > Add ( m_cbCopyRouting , 0 , wxALL , 5 ) ;
m_cbCopyOnlyConnectedRouting = new wxCheckBox ( this , wxID_ANY , _ ( " Restrict to routing connected within the area " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbCopyOnlyConnectedRouting - > SetValue ( true ) ;
m_cbCopyOnlyConnectedRouting - > SetToolTip ( _ ( " Can be useful if unrelated tracks pass through the area " ) ) ;
bSizer5 - > Add ( m_cbCopyOnlyConnectedRouting , 0 , wxALL , 5 ) ;
bSizer13 - > Add ( bSizer5 , 1 , wxEXPAND , 5 ) ;
2024-01-03 19:47:35 +01:00
2024-11-24 11:29:17 -05:00
m_cbCopyOtherItems = new wxCheckBox ( this , wxID_ANY , _ ( " Copy other items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbCopyOtherItems - > SetToolTip ( _ ( " Copy text, shapes, zones, and other items inside the source rule area " ) ) ;
bSizer13 - > Add ( m_cbCopyOtherItems , 0 , wxALL , 5 ) ;
2025-01-10 11:26:43 +00:00
m_cbIncludeOffRAComponents = new wxCheckBox ( this , wxID_ANY , _ ( " Include footprints outside the reference rule area " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbIncludeOffRAComponents - > Hide ( ) ;
bSizer13 - > Add ( m_cbIncludeOffRAComponents , 0 , wxALL , 5 ) ;
m_cbGroupItems = new wxCheckBox ( this , wxID_ANY , _ ( " Group items with their target rule areas " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2024-01-03 19:47:35 +01:00
bSizer13 - > Add ( m_cbGroupItems , 0 , wxALL , 5 ) ;
2025-04-27 07:40:40 +02:00
m_cbIncludeLockedComponents = new wxCheckBox ( this , wxID_ANY , _ ( " Include locked items " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbIncludeLockedComponents - > SetToolTip ( _ ( " Copy from reference area + delete / update in target area if included " ) ) ;
2024-01-03 19:47:35 +01:00
bSizer13 - > Add ( m_cbIncludeLockedComponents , 0 , wxALL , 5 ) ;
fgSizer3 - > Add ( bSizer13 , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bottomButtonsSizer ;
bottomButtonsSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
bottomButtonsSizer - > Add ( 10 , 0 , 0 , 0 , 5 ) ;
m_sdbSizerStdButtons = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerStdButtonsOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizerStdButtons - > AddButton ( m_sdbSizerStdButtonsOK ) ;
m_sdbSizerStdButtonsCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizerStdButtons - > AddButton ( m_sdbSizerStdButtonsCancel ) ;
m_sdbSizerStdButtons - > Realize ( ) ;
bottomButtonsSizer - > Add ( m_sdbSizerStdButtons , 1 , wxEXPAND | wxALL , 5 ) ;
fgSizer3 - > Add ( bottomButtonsSizer , 0 , wxEXPAND | wxLEFT , 5 ) ;
2025-04-19 16:33:08 +02:00
this - > SetSizer ( fgSizer3 ) ;
2024-01-03 19:47:35 +01:00
this - > Layout ( ) ;
2025-04-19 16:33:08 +02:00
fgSizer3 - > Fit ( this ) ;
2024-01-03 19:47:35 +01:00
// Connect Events
this - > Connect ( wxEVT_INIT_DIALOG , wxInitDialogEventHandler ( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : : OnInitDlg ) ) ;
this - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : : OnUpdateUI ) ) ;
}
DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : : ~ DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_INIT_DIALOG , wxInitDialogEventHandler ( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : : OnInitDlg ) ) ;
this - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : : OnUpdateUI ) ) ;
}