Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
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);
}