/*! * \brief Set value of a boolean item. */ bool CNutConfDoc::SetActive(CConfigItem & item, bool bEnabled) { item.SetActive(bEnabled); /* Store settings in the Lua registry. */ CSettings *cfg = wxGetApp().GetSettings(); RegisterSourcePath(m_repository, cfg->m_source_dir.mb_str()); RegisterBuildPath(m_repository, cfg->m_buildpath.mb_str()); RegisterLibPath(m_repository, cfg->m_lib_dir.mb_str()); RegisterSamplePath(m_repository, cfg->m_app_dir.mb_str()); RegisterCompilerPlatform(m_repository, cfg->m_platform.mb_str()); RefreshComponents(m_repository, m_root); Modify(true); CNutConfHint hint(&item, nutExternallyChanged); UpdateAllViews(NULL, &hint); return true; }