void QMakePlugin::OnSaveConfig(clProjectSettingsEvent& event) { event.Skip(); wxString conf, project; project = event.GetProjectName(); conf = event.GetConfigName(); QMakeTab* tab = DoGetQmakeTab(conf); if(!tab) { return; } tab->Save(m_mgr, project, conf); }
void QMakePlugin::HookProjectSettingsTab(wxBookCtrlBase* book, const wxString &projectName, const wxString &configName) { if ( !book ) return; DoUnHookAllTabs(book); QMakeTab *page = DoGetQmakeTab(configName); if (! page ) { page = new QMakeTab(book, m_conf); page->Load(m_mgr, projectName, configName); m_pages[configName] = page; } book->AddPage(page, wxT("QMake"), true, wxNOT_FOUND); }
void QMakePlugin::OnSaveConfig(wxCommandEvent& event) { event.Skip(); wxString *proj = (wxString *)event.GetClientData(); wxString conf, project; project = *proj; conf = event.GetString(); QMakeTab *tab = DoGetQmakeTab( conf ); if ( !tab ) { return; } tab->Save(m_mgr, project, conf); }