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( 2 );
25 fgSizer3->SetFlexibleDirection( wxBOTH );
26 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
28 wxFlexGridSizer* fgSizer2;
29 fgSizer2 =
new wxFlexGridSizer( 0, 2, 5, 5 );
30 fgSizer2->SetFlexibleDirection( wxBOTH );
31 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 wxStaticText* referenceAreaLabel;
34 referenceAreaLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Reference rule area:"), wxDefaultPosition, wxDefaultSize, 0 );
35 referenceAreaLabel->Wrap( -1 );
36 fgSizer2->Add( referenceAreaLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
38 m_refRAName =
new wxStaticText(
this, wxID_ANY,
_(
"MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_refRAName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL,
false, wxEmptyString ) );
42 fgSizer2->Add(
m_refRAName, 0, wxALIGN_CENTER_VERTICAL, 5 );
44 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Anchor footprint:"), wxDefaultPosition, wxDefaultSize, 0 );
46 fgSizer2->Add(
m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
48 wxArrayString m_refAnchorFpChoices;
49 m_refAnchorFp =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_refAnchorFpChoices, 0 );
51 m_refAnchorFp->SetToolTip(
_(
"Optional, use for precise and/or rotated placement.\nSelect reference rule area footprint, place corresponding\ntarget rule area footprint(s).") );
54 fgSizer2->Add(
m_refAnchorFp, 0, wxALIGN_CENTER_VERTICAL, 5 );
57 fgSizer3->Add( fgSizer2, 1, wxEXPAND|wxALL, 5 );
59 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"Target areas:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_raGrid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxVSCROLL );
69 m_raGrid->EnableDragGridSize(
false );
74 m_raGrid->EnableDragColMove(
false );
76 m_raGrid->SetColLabelValue( 0,
_(
"Copy") );
77 m_raGrid->SetColLabelValue( 1,
_(
"Target Rule Area") );
78 m_raGrid->SetColLabelValue( 2,
_(
"Status") );
79 m_raGrid->SetColLabelValue( 3,
_(
"Details") );
80 m_raGrid->SetColLabelSize( wxGRID_AUTOSIZE );
81 m_raGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
85 m_raGrid->EnableDragRowSize(
false );
87 m_raGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
92 m_raGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
93 m_raGrid->SetMinSize( wxSize( 500,100 ) );
95 fgSizer3->Add(
m_raGrid, 1, wxALL|wxEXPAND, 5 );
98 bSizer13 =
new wxBoxSizer( wxVERTICAL );
100 m_cbCopyPlacement =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy footprint placement"), wxDefaultPosition, wxDefaultSize, 0 );
103 m_cbCopyRouting =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy routing"), wxDefaultPosition, wxDefaultSize, 0 );
106 m_cbCopyOnlyConnectedRouting =
new wxCheckBox(
this, wxID_ANY,
_(
"Restrict to routing connected within the area"), wxDefaultPosition, wxDefaultSize, 0 );
112 m_cbCopyOtherItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy other items"), wxDefaultPosition, wxDefaultSize, 0 );
113 m_cbCopyOtherItems->SetToolTip(
_(
"Copy text, shapes, zones, and other items inside the source rule area") );
118 bSizer13->Add( 0, 10, 1, wxEXPAND, 5 );
120 m_cbGroupItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Group items with their target rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
129 fgSizer3->Add( bSizer13, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
131 wxBoxSizer* bottomButtonsSizer;
132 bottomButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
135 bottomButtonsSizer->Add( 10, 0, 0, 0, 5 );
147 fgSizer3->Add( bottomButtonsSizer, 0, wxEXPAND|wxLEFT, 5 );
150 bMainSizer->Add( fgSizer3, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
153 this->SetSizer( bMainSizer );
155 bMainSizer->Fit(
this );