StelObjectMgr.cpp   StelObjectMgr.cpp 
skipping to change at line 243 skipping to change at line 243
{ {
// Get matching object for this module // Get matching object for this module
QStringList matchingObj = m->listMatchingObjectsI18n(objPref ix, maxNbItem); QStringList matchingObj = m->listMatchingObjectsI18n(objPref ix, maxNbItem);
result += matchingObj; result += matchingObj;
maxNbItem-=matchingObj.size(); maxNbItem-=matchingObj.size();
} }
result.sort(); result.sort();
return result; return result;
} }
QStringList StelObjectMgr::listAllModuleObjects(const QString &moduleId, bo
ol inEnglish) const
{
// search for module
StelObjectModule* module = NULL;
foreach(StelObjectModule* m, objectsModule)
{
if (m->objectName() == moduleId)
{
module = m;
break;
}
}
if (module == NULL)
{
qWarning() << "Can't find module with id " << moduleId;
return QStringList();
}
return module->listAllObjects(inEnglish);
}
QMap<QString, QString> StelObjectMgr::objectModulesMap() const
{
QMap<QString, QString> result;
foreach(const StelObjectModule* m, objectsModule)
{
result[m->objectName()] = m->getName();
}
return result;
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/