本文整理汇总了C++中ProjectPtr::GetPluginData方法的典型用法代码示例。如果您正苦于以下问题:C++ ProjectPtr::GetPluginData方法的具体用法?C++ ProjectPtr::GetPluginData怎么用?C++ ProjectPtr::GetPluginData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjectPtr
的用法示例。
在下文中一共展示了ProjectPtr::GetPluginData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoGetData
bool QMakePlugin::DoGetData(const wxString& project, const wxString& conf, QmakePluginData::BuildConfPluginData &bcpd)
{
wxString errMsg;
ProjectPtr p = m_mgr->GetWorkspace()->FindProjectByName(project, errMsg);
if ( p ) {
wxString rawData = p->GetPluginData(wxT("qmake"));
QmakePluginData pd( rawData );
return pd.GetDataForBuildConf(conf, bcpd);
}
return false;
}
示例2: Save
void QMakeTab::Save(IManager *manager, const wxString& projectName, const wxString& confgName)
{
wxString errMsg;
ProjectPtr p = manager->GetWorkspace()->FindProjectByName(projectName, errMsg);
if ( p ) {
wxString data = p->GetPluginData(wxT("qmake"));
QmakePluginData pd( data );
QmakePluginData::BuildConfPluginData bcpd;
bcpd.m_buildConfName = confgName;
bcpd.m_enabled = m_checkBoxUseQmake->IsChecked();
bcpd.m_freeText = m_textCtrlFreeText->GetValue();
bcpd.m_qmakeConfig = m_choiceQmakeSettings->GetStringSelection();
bcpd.m_qmakeExecutionLine = m_textCtrlQmakeExeLine->GetValue();
pd.SetDataForBuildConf(confgName, bcpd);
p->SetPluginData(wxT("qmake"), pd.ToString());
}
}
示例3: Load
void QMakeTab::Load(IManager* manager, const wxString& projectName, const wxString& confgName)
{
wxString errMsg;
ProjectPtr p = manager->GetWorkspace()->FindProjectByName(projectName, errMsg);
if ( p ) {
wxString data = p->GetPluginData(wxT("qmake"));
QmakePluginData pd( data );
QmakePluginData::BuildConfPluginData bcpd;
if (pd.GetDataForBuildConf(confgName, bcpd)) {
m_textCtrlQmakeExeLine->SetValue( bcpd.m_qmakeExecutionLine );
int where = m_choiceQmakeSettings->FindString( bcpd.m_qmakeConfig );
if ( where != wxNOT_FOUND ) {
m_choiceQmakeSettings->SetSelection(where);
}
m_textCtrlFreeText->SetValue( bcpd.m_freeText );
m_checkBoxUseQmake->SetValue( bcpd.m_enabled );
}
}
}
示例4: LoadProjectSpecificSettings
void CppCheckSettings::LoadProjectSpecificSettings(ProjectPtr project)
{
wxString rawData;
wxArrayString definitions, undefines;
if(project) {
rawData = project->GetPluginData("CppCheck");
}
wxArrayString configurations = wxStringTokenize(rawData, ";", wxTOKEN_RET_EMPTY_ALL);
if(configurations.GetCount() == 2) { // It'll either be empty or 2
if(!configurations.Item(0).empty()) {
definitions = wxStringTokenize(configurations.Item(0), ",");
}
if(!configurations.Item(1).empty()) {
undefines = wxStringTokenize(configurations.Item(1), ",");
}
}
// Note that we set these even if project == NULL, as this will clear any stale values
SetDefinitions(definitions);
SetUndefines(undefines);
}