本文整理汇总了C++中CScopeConfData::GetBuildRevertedIndexOption方法的典型用法代码示例。如果您正苦于以下问题:C++ CScopeConfData::GetBuildRevertedIndexOption方法的具体用法?C++ CScopeConfData::GetBuildRevertedIndexOption怎么用?C++ CScopeConfData::GetBuildRevertedIndexOption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CScopeConfData
的用法示例。
在下文中一共展示了CScopeConfData::GetBuildRevertedIndexOption方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCreateDB
void Cscope::OnCreateDB(wxCommandEvent& e)
{
// sanity
if(m_mgr->IsWorkspaceOpen() == false) {
return;
}
m_cscopeWin->Clear();
wxString list_file = DoCreateListFile(true);
// get the reverted index option
wxString command;
wxString endMsg;
CScopeConfData settings;
command << GetCscopeExeName();
m_mgr->GetConfigTool()->ReadObject(wxT("CscopeSettings"), &settings);
if(settings.GetBuildRevertedIndexOption()) {
command << wxT(" -q");
endMsg << _("Recreated inverted CScope DB");
} else {
command << wxT(" -b");
endMsg << _("Recreated CScope DB");
}
// Do the actual create db
// since the process is always running from the workspace
// directory, there is no need to specify the full path of the list file
command << wxT(" -L -i cscope_file.list");
DoCscopeCommand(command, wxEmptyString, endMsg);
}
示例2: CscopeTabBase
CscopeTab::CscopeTab( wxWindow* parent, IManager *mgr )
: CscopeTabBase( parent )
, m_table(NULL)
, m_mgr(mgr)
{
m_bitmaps = clGetManager()->GetStdIcons()->MakeStandardMimeMap();
CScopeConfData data;
m_mgr->GetConfigTool()->ReadObject(wxT("CscopeSettings"), &data);
const wxString SearchScope[] = { wxTRANSLATE("Entire Workspace"), wxTRANSLATE("Active Project") };
m_stringManager.AddStrings(sizeof(SearchScope)/sizeof(wxString), SearchScope, data.GetScanScope(), m_choiceSearchScope);
wxFont defFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_font = wxFont( defFont.GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
m_checkBoxUpdateDb->SetValue(data.GetRebuildOption());
m_checkBoxRevertedIndex->SetValue(data.GetBuildRevertedIndexOption());
SetMessage(_("Ready"), 0);
Clear(); // To make the Clear button UpdateUI work initially
EventNotifier::Get()->Connect(wxEVT_CL_THEME_CHANGED, wxCommandEventHandler(CscopeTab::OnThemeChanged), NULL, this);
}