35 m_parentTool( aParentTool )
50 m_sheetGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
54 m_sheetGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
55 m_sheetGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
58 m_sheetGrid->SetColLabelValue( 0, wxT(
"Generate" ) );
59 m_sheetGrid->SetColLabelValue( 1, wxT(
"Sheet Path" ) );
60 m_sheetGrid->SetColLabelValue( 2, wxT(
"Sheet Name" ) );
93 int componentClassRowIdx = 0;
97 if( ruleArea.
m_sourceType == RULE_AREA_PLACEMENT_SOURCE_TYPE::SHEETNAME )
100 componentClassRowIdx++;
103 if( sheetRowIdx > 0 )
106 if( componentClassRowIdx > 0 )
110 componentClassRowIdx = 0;
114 if( ruleArea.
m_sourceType == RULE_AREA_PLACEMENT_SOURCE_TYPE::SHEETNAME )
118 m_sheetGrid->SetCellRenderer( sheetRowIdx, 0,
new wxGridCellBoolRenderer );
119 m_sheetGrid->SetCellEditor( sheetRowIdx, 0,
new wxGridCellBoolEditor );
129 new wxGridCellBoolRenderer );
131 new wxGridCellBoolEditor );
134 componentClassRowIdx++;
160 int componentClassRowIdx = 0;
162 for(
size_t i = 0; i < raData->
m_areas.size(); i++ )
166 if( raData->
m_areas[i].m_sourceType == RULE_AREA_PLACEMENT_SOURCE_TYPE::SHEETNAME )
168 enabled =
m_sheetGrid->GetCellValue( sheetRowIdx, 0 );
174 componentClassRowIdx++;
177 raData->
m_areas[i].m_generateEnabled = ( !enabled.CompareTo( wxT(
"1" ) ) ) ?
true :
false;
Class DIALOG_MULTICHANNEL_GENERATE_RULE_AREAS_BASE.
wxNotebook * m_sourceNotebook
wxCheckBox * m_cbGroupItems
wxCheckBox * m_cbReplaceExisting
DIALOG_MULTICHANNEL_GENERATE_RULE_AREAS(PCB_BASE_FRAME *aFrame, MULTICHANNEL_TOOL *aParentTool)
MULTICHANNEL_TOOL * m_parentTool
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
wxGrid * m_componentClassGrid
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.
REPEAT_LAYOUT_OPTIONS m_options
std::vector< RULE_AREA > m_areas
RULE_AREA_PLACEMENT_SOURCE_TYPE m_sourceType
wxString m_componentClass