42 m_refRAName->SetLabelText( data->m_refRA->m_zone->GetZoneName() );
44 for(
auto& ra : data->m_compatMap )
48 ent.m_doCopy = ra.second.m_isOk;
49 ent.m_errMsg = ra.second.m_errorMsg;
50 ent.m_isOK = ra.second.m_isOk;
51 ent.m_raName = ra.first->m_ruleName;
52 ent.m_targetRA = ra.first;
54 m_targetRAs.push_back( ent );
60 if ( !a.m_isOK && b.m_isOK )
62 else if ( a.m_isOK && !b.m_isOK )
65 return a.m_raName < b.m_raName;
74 m_raGrid->SetColLabelValue( 0, wxT(
"Copy") );
75 m_raGrid->SetColLabelValue( 1, wxT(
"Target Rule Area") );
76 m_raGrid->SetColLabelValue( 2, wxT(
"Status") );
77 m_raGrid->SetColLabelValue( 3, wxT(
"RefFp" ) );
83 m_raGrid->SetCellValue( i, 1, entry.m_raName );
84 m_raGrid->SetCellValue( i, 2, entry.m_isOK ? _(
"OK") : entry.m_errMsg );
85 m_raGrid->SetCellRenderer( i, 0, new wxGridCellBoolRenderer);
86 m_raGrid->SetCellEditor( i, 0, new wxGridCellBoolEditor);
87 m_raGrid->SetCellValue( i, 0, entry.m_doCopy ? wxT(
"1") : wxT(
"") );
91 m_raGrid->SetMaxSize( wxSize( -1, 400 ) );
94 wxArrayString refFpNames;
95 refFpNames.push_back(
"" );
97 for(
FOOTPRINT* fp : data->m_refRA->m_components )
127 wxString doCopy =
m_raGrid->GetCellValue( i, 0 );
129 data->m_compatMap[
m_targetRAs[i].m_targetRA].m_doCopy =
130 !doCopy.CompareTo( wxT(
"1" ) ) ? true :
false;
142 data->m_options.m_anchorFp =
nullptr;
149 data->m_options.m_anchorFp = fp;
DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Repeat Multichannel Layout"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)