本文整理汇总了C++中ProjectPtr::SetModified方法的典型用法代码示例。如果您正苦于以下问题:C++ ProjectPtr::SetModified方法的具体用法?C++ ProjectPtr::SetModified怎么用?C++ ProjectPtr::SetModified使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjectPtr
的用法示例。
在下文中一共展示了ProjectPtr::SetModified方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OpenProjectSettings
void WorkspaceTab::OpenProjectSettings(const wxString& project)
{
if(m_dlg) {
m_dlg->Raise();
return;
}
wxString projectName = project.IsEmpty() ? ManagerST::Get()->GetActiveProjectName() : project;
wxString title(projectName);
title << _(" Project Settings");
// Allow plugins to process this event first
clCommandEvent openEvent(wxEVT_CMD_OPEN_PROJ_SETTINGS);
openEvent.SetString(project);
if(EventNotifier::Get()->ProcessEvent(openEvent)) {
return;
}
// open the project properties dialog
BuildMatrixPtr matrix = ManagerST::Get()->GetWorkspaceBuildMatrix();
#ifdef __WXMAC__
// On OSX we use a modal version of the project settings
// since otherwise we get some weird focus issues when the project
// settings dialog popups helper dialogs
ProjectSettingsDlg dlg(clMainFrame::Get(),
this,
matrix->GetProjectSelectedConf(matrix->GetSelectedConfigurationName(), projectName),
projectName,
title);
dlg.ShowModal();
#else
// Find the project configuration name that matches the workspace selected configuration
m_dlg = new ProjectSettingsDlg(clMainFrame::Get(),
this,
matrix->GetProjectSelectedConf(matrix->GetSelectedConfigurationName(), projectName),
projectName,
title);
m_dlg->Show();
#endif
// Mark this project as modified
ProjectPtr proj = ManagerST::Get()->GetProject(projectName);
if(proj) {
proj->SetModified(true);
}
}
示例2: OnApply
void AdvancedDlg::OnApply(wxCommandEvent& event)
{
// save the build page
m_compilersPage->Save();
m_buildPage->Save();
m_buildSettings->Save();
// mark all the projects as dirty
wxArrayString projects;
clCxxWorkspaceST::Get()->GetProjectList(projects);
for(size_t i = 0; i < projects.size(); i++) {
ProjectPtr proj = ManagerST::Get()->GetProject(projects.Item(i));
if(proj) {
proj->SetModified(true);
}
}
}