35 m_parentTool( aParentTool )
38 m_refRAName->SetLabelText( data->m_refRA->m_area->GetZoneName() );
40 for(
auto& ra : data->m_compatMap )
46 ent.
m_isOK = ra.second.m_isOk;
56 if ( !a.m_isOK && b.m_isOK )
58 else if ( a.m_isOK && !b.m_isOK )
61 return a.m_raName < b.m_raName;
69 m_raGrid->SetColLabelValue( 0, wxT(
"Copy") );
70 m_raGrid->SetColLabelValue( 1, wxT(
"Target Rule Area") );
71 m_raGrid->SetColLabelValue( 2, wxT(
"Status") );
77 m_raGrid->SetCellValue( i, 1, entry.m_raName );
78 m_raGrid->SetCellValue( i, 2, entry.m_isOK ?
_(
"OK") : entry.m_errMsg );
79 m_raGrid->SetCellRenderer( i, 0,
new wxGridCellBoolRenderer);
80 m_raGrid->SetCellEditor( i, 0,
new wxGridCellBoolEditor);
81 m_raGrid->SetCellValue( i, 0, entry.m_doCopy ? wxT(
"1") : wxT(
"") );
85 m_raGrid->SetMaxSize( wxSize( -1, 800 ) );
107 wxString doCopy =
m_raGrid->GetCellValue( i, 0 );
109 data->m_compatMap[
m_targetRAs[i].m_targetRA].m_doCopy =
110 !doCopy.CompareTo( wxT(
"1" ) ) ? true :
false;
Class DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE.
wxStaticText * m_refRAName
wxCheckBox * m_cbCopyRouting
wxCheckBox * m_cbGroupItems
wxCheckBox * m_cbCopyPlacement
wxCheckBox * m_cbCopyOtherItems
wxCheckBox * m_cbIncludeLockedComponents
wxCheckBox * m_cbIncludeOffRAComponents
bool TransferDataFromWindow() override
std::vector< TABLE_ENTRY > m_targetRAs
MULTICHANNEL_TOOL * m_parentTool
DIALOG_MULTICHANNEL_REPEAT_LAYOUT(PCB_BASE_FRAME *aFrame, MULTICHANNEL_TOOL *aParentTool)
bool TransferDataToWindow() override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.