14DIALOG_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 )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxFlexGridSizer* fgSizer3;
22 fgSizer3 =
new wxFlexGridSizer( 0, 1, 0, 0 );
23 fgSizer3->AddGrowableCol( 0 );
24 fgSizer3->AddGrowableRow( 1 );
25 fgSizer3->SetFlexibleDirection( wxBOTH );
26 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
28 fgSizer3->SetMinSize( wxSize( 600,-1 ) );
29 wxFlexGridSizer* fgSizer2;
30 fgSizer2 =
new wxFlexGridSizer( 0, 2, 5, 5 );
31 fgSizer2->SetFlexibleDirection( wxBOTH );
32 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
34 wxStaticText* referenceAreaLabel;
35 referenceAreaLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Reference rule area:"), wxDefaultPosition, wxDefaultSize, 0 );
36 referenceAreaLabel->Wrap( -1 );
37 fgSizer2->Add( referenceAreaLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
39 m_refRAName =
new wxStaticText(
this, wxID_ANY,
_(
"MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_refRAName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL,
false, wxEmptyString ) );
43 fgSizer2->Add(
m_refRAName, 0, wxALIGN_CENTER_VERTICAL, 5 );
45 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Anchor footprint:"), wxDefaultPosition, wxDefaultSize, 0 );
47 fgSizer2->Add(
m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
49 wxArrayString m_refAnchorFpChoices;
50 m_refAnchorFp =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_refAnchorFpChoices, 0 );
52 m_refAnchorFp->SetToolTip(
_(
"Optional, use for precise and/or rotated placement.\nSelect reference rule area footprint, place corresponding\ntarget rule area footprint(s).") );
55 fgSizer2->Add(
m_refAnchorFp, 0, wxALIGN_CENTER_VERTICAL, 5 );
58 fgSizer3->Add( fgSizer2, 1, wxEXPAND|wxALL, 5 );
60 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"Target areas:"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_raGrid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
70 m_raGrid->EnableDragGridSize(
false );
75 m_raGrid->EnableDragColMove(
false );
77 m_raGrid->SetColLabelSize( wxGRID_AUTOSIZE );
78 m_raGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
83 m_raGrid->SetRowLabelSize( wxGRID_AUTOSIZE );
84 m_raGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
89 m_raGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
90 fgSizer3->Add(
m_raGrid, 1, wxALL|wxEXPAND, 5 );
93 bSizer13 =
new wxBoxSizer( wxVERTICAL );
95 m_cbCopyPlacement =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy footprint placement"), wxDefaultPosition, wxDefaultSize, 0 );
98 m_cbCopyRouting =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy routing"), wxDefaultPosition, wxDefaultSize, 0 );
101 m_cbCopyOnlyConnectedRouting =
new wxCheckBox(
this, wxID_ANY,
_(
"Restrict to routing connected within the area"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_cbCopyOtherItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy other items"), wxDefaultPosition, wxDefaultSize, 0 );
108 m_cbCopyOtherItems->SetToolTip(
_(
"Copy text, shapes, zones, and other items inside the source rule area") );
113 bSizer13->Add( 0, 10, 1, wxEXPAND, 5 );
115 m_cbGroupItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Group items with their target rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
124 fgSizer3->Add( bSizer13, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
126 wxBoxSizer* bottomButtonsSizer;
127 bottomButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
130 bottomButtonsSizer->Add( 10, 0, 0, 0, 5 );
142 fgSizer3->Add( bottomButtonsSizer, 0, wxEXPAND|wxLEFT, 5 );
145 bMainSizer->Add( fgSizer3, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
148 this->SetSizer( bMainSizer );
150 bMainSizer->Fit(
this );