void PSDebuggerPage::Save(BuildConfigPtr buildConf, ProjectSettingsPtr projSettingsPtr) { buildConf->SetDebuggerStartupCmds(m_textCtrlDbgCmds->GetValue()); buildConf->SetDebuggerPostRemoteConnectCmds(m_textCtrlDbgPostConnectCmds->GetValue()); buildConf->SetIsDbgRemoteTarget(m_checkBoxDbgRemote->IsChecked()); buildConf->SetDbgHostName(m_textCtrl1DbgHost->GetValue()); buildConf->SetDbgHostPort(m_textCtrlDbgPort->GetValue()); buildConf->SetDebuggerPath(m_textCtrlDebuggerPath->GetValue()); wxArrayString searchPaths; int nCount = m_dvListCtrlDebuggerSearchPaths->GetItemCount(); for(int i=0; i<nCount; ++i) { wxVariant colValue; m_dvListCtrlDebuggerSearchPaths->GetValue(colValue, i, 0); if ( !colValue.IsNull() ) { searchPaths.Add( colValue.GetString() ); } } buildConf->SetDebuggerSearchPaths(searchPaths); }