Loading pcbnew/footprint_wizard_frame.cpp +25 −16 Original line number Diff line number Diff line Loading @@ -123,9 +123,11 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( FOOTPRINT_EDIT_FRAME* parent, m_showAxis = true; // true to draw axis. // Give an icon wxIcon icon; icon.CopyFromBitmap( KiBitmap( module_wizard_xpm) ); SetIcon( icon ); // Disabled for now, it raises an assert error in wxwidgets // wxIcon icon; // icon.CopyFromBitmap( KiBitmap( module_wizard_xpm) ); // SetIcon( icon ); m_HotkeysZoomAndGridList = g_Module_Viewer_Hokeys_Descr; m_FootprintWizard = NULL; Loading Loading @@ -187,7 +189,20 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( FOOTPRINT_EDIT_FRAME* parent, m_ParameterGridWindow->SetExtraBorderSize( EXTRA_BORDER_SIZE ); m_ParameterGrid = new wxGrid( m_ParameterGridWindow, ID_FOOTPRINT_WIZARD_PARAMETER_LIST, wxPoint(0,0),wxDefaultSize); wxPoint( 0 , 0 ), wxDefaultSize ); m_ParameterGrid->CreateGrid( 1, 3 ); // Columns m_ParameterGrid->AutoSizeColumns(); m_ParameterGrid->SetColLabelSize( 20 ); m_ParameterGrid->SetColLabelValue( 0, _("Parameter") ); m_ParameterGrid->SetColLabelValue( 1, _("Value") ); m_ParameterGrid->SetColLabelValue( 2, _("Units") ); m_ParameterGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE ); ReCreatePageList(); Loading Loading @@ -406,13 +421,6 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList() m_ParameterGrid->ClearGrid(); // Columns m_ParameterGrid->AutoSizeColumns(); m_ParameterGrid->SetColLabelSize( 20 ); m_ParameterGrid->SetColLabelValue( 0, _("Parameter") ); m_ParameterGrid->SetColLabelValue( 1, _("Value") ); m_ParameterGrid->SetColLabelValue( 2, _("Units") ); m_ParameterGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE ); // Rows m_ParameterGrid->AutoSizeRows(); Loading @@ -426,7 +434,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList() wxArrayString ptList = m_FootprintWizard->GetParameterTypes( page ); // Dimension the wxGrid m_ParameterGrid->CreateGrid(fpList.size(),3); m_ParameterGrid->DeleteRows( 0, m_ParameterGrid->GetNumberRows() ); m_ParameterGrid->AppendRows( fpList.size() ); for (unsigned int i=0; i<fpList.size(); i++) { Loading Loading
pcbnew/footprint_wizard_frame.cpp +25 −16 Original line number Diff line number Diff line Loading @@ -123,9 +123,11 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( FOOTPRINT_EDIT_FRAME* parent, m_showAxis = true; // true to draw axis. // Give an icon wxIcon icon; icon.CopyFromBitmap( KiBitmap( module_wizard_xpm) ); SetIcon( icon ); // Disabled for now, it raises an assert error in wxwidgets // wxIcon icon; // icon.CopyFromBitmap( KiBitmap( module_wizard_xpm) ); // SetIcon( icon ); m_HotkeysZoomAndGridList = g_Module_Viewer_Hokeys_Descr; m_FootprintWizard = NULL; Loading Loading @@ -187,7 +189,20 @@ FOOTPRINT_WIZARD_FRAME::FOOTPRINT_WIZARD_FRAME( FOOTPRINT_EDIT_FRAME* parent, m_ParameterGridWindow->SetExtraBorderSize( EXTRA_BORDER_SIZE ); m_ParameterGrid = new wxGrid( m_ParameterGridWindow, ID_FOOTPRINT_WIZARD_PARAMETER_LIST, wxPoint(0,0),wxDefaultSize); wxPoint( 0 , 0 ), wxDefaultSize ); m_ParameterGrid->CreateGrid( 1, 3 ); // Columns m_ParameterGrid->AutoSizeColumns(); m_ParameterGrid->SetColLabelSize( 20 ); m_ParameterGrid->SetColLabelValue( 0, _("Parameter") ); m_ParameterGrid->SetColLabelValue( 1, _("Value") ); m_ParameterGrid->SetColLabelValue( 2, _("Units") ); m_ParameterGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE ); ReCreatePageList(); Loading Loading @@ -406,13 +421,6 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList() m_ParameterGrid->ClearGrid(); // Columns m_ParameterGrid->AutoSizeColumns(); m_ParameterGrid->SetColLabelSize( 20 ); m_ParameterGrid->SetColLabelValue( 0, _("Parameter") ); m_ParameterGrid->SetColLabelValue( 1, _("Value") ); m_ParameterGrid->SetColLabelValue( 2, _("Units") ); m_ParameterGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE ); // Rows m_ParameterGrid->AutoSizeRows(); Loading @@ -426,7 +434,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList() wxArrayString ptList = m_FootprintWizard->GetParameterTypes( page ); // Dimension the wxGrid m_ParameterGrid->CreateGrid(fpList.size(),3); m_ParameterGrid->DeleteRows( 0, m_ParameterGrid->GetNumberRows() ); m_ParameterGrid->AppendRows( fpList.size() ); for (unsigned int i=0; i<fpList.size(); i++) { Loading