38 m_parentTool( aParentTool )
42 m_refRAName->SetLabelText( data->m_refRA->m_area->GetZoneName() );
44 for(
auto& ra : data->m_compatMap )
50 ent.
m_isOK = ra.second.m_isOk;
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_raFootprints )
128 wxString doCopy =
m_raGrid->GetCellValue( i, 0 );
130 data->m_compatMap[
m_targetRAs[i].m_targetRA].m_doCopy =
131 !doCopy.CompareTo( wxT(
"1" ) ) ? true :
false;
144 data->m_options.m_anchorFp =
nullptr;
151 data->m_options.m_anchorFp = fp;
const FOOTPRINTS & Footprints() const
Class DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE.
wxStaticText * m_refRAName
wxCheckBox * m_cbCopyOnlyConnectedRouting
wxCheckBox * m_cbCopyRouting
wxCheckBox * m_cbGroupItems
wxCheckBox * m_cbCopyPlacement
wxCheckBox * m_cbCopyOtherItems
wxCheckBox * m_cbIncludeLockedComponents
wxCheckBox * m_cbIncludeOffRAComponents
bool TransferDataFromWindow() override
~DIALOG_MULTICHANNEL_REPEAT_LAYOUT()
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...
Add mouse and command handling (such as cut, copy, and paste) to a WX_GRID instance.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.