本文整理汇总了C++中ProjectPtr::GetReconciliationData方法的典型用法代码示例。如果您正苦于以下问题:C++ ProjectPtr::GetReconciliationData方法的具体用法?C++ ProjectPtr::GetReconciliationData怎么用?C++ ProjectPtr::GetReconciliationData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjectPtr
的用法示例。
在下文中一共展示了ProjectPtr::GetReconciliationData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnIgnoreBrowse
void ReconcileProjectFiletypesDlg::OnIgnoreBrowse(wxCommandEvent& WXUNUSED(event))
{
ProjectPtr proj = ManagerST::Get()->GetProject(m_projname);
wxCHECK_RET(proj, "Can't find a Project with the supplied name");
wxString topleveldir, types;
wxArrayString ignorefiles, excludes, regexes;
proj->GetReconciliationData(topleveldir, types, ignorefiles, excludes, regexes);
if (topleveldir.empty()) {
topleveldir = proj->GetFileName().GetPath();
}
wxFileName tld(topleveldir);
if ( tld.IsRelative() ) {
tld.MakeAbsolute( proj->GetFileName().GetPath() );
}
wxString new_exclude = wxDirSelector(_("Select a directory to ignore:"), tld.GetFullPath(), wxDD_DEFAULT_STYLE, wxDefaultPosition, this);
if (!new_exclude.empty()) {
wxFileName fn = wxFileName::DirName(new_exclude);
fn.MakeRelativeTo(topleveldir);
new_exclude = fn.GetFullPath();
if (m_listExclude->FindString(new_exclude) == wxNOT_FOUND) {
m_listExclude->Append(new_exclude);
}
}
}
示例2: SetData
void ReconcileProjectFiletypesDlg::SetData()
{
ProjectPtr proj = ManagerST::Get()->GetProject(m_projname);
wxCHECK_RET(proj, "Can't find a Project with the supplied name");
wxString topleveldir, types;
wxArrayString ignorefiles, excludes, regexes;
proj->GetReconciliationData(topleveldir, types, ignorefiles, excludes, regexes);
if (topleveldir.empty()) {
topleveldir = proj->GetFileName().GetPath();
}
wxFileName tld(topleveldir);
if ( tld.IsRelative() ) {
tld.MakeAbsolute( proj->GetFileName().GetPath() );
}
m_dirPickerToplevel->SetPath(tld.GetFullPath());
if (types.empty()) {
types << "cpp;c;h;hpp;xrc;wxcp;fbp";
}
m_textExtensions->ChangeValue(types);
m_listIgnoreFiles->Clear();
m_listIgnoreFiles->Append(ignorefiles);
m_listExclude->Clear();
m_listExclude->Append(excludes);
m_listCtrlRegexes->DeleteAllItems();
for (size_t n = 0; n < regexes.GetCount(); ++n) {
SetRegex(regexes[n]);
}
}