StelObjectMgr.cpp   StelObjectMgr.cpp 
skipping to change at line 244 skipping to change at line 244
// 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;
} }
/*************************************************************************
Find and return the list of at most maxNbItem objects auto-completing
passed object English name
*************************************************************************/
QStringList StelObjectMgr::listMatchingObjects(const QString& objPrefix, un
signed int maxNbItem) const
{
QStringList result;
// For all StelObjectmodules..
foreach (const StelObjectModule* m, objectsModule)
{
// Get matching object for this module
QStringList matchingObj = m->listMatchingObjects(objPrefix,
maxNbItem);
result += matchingObj;
maxNbItem-=matchingObj.size();
}
result.sort();
return result;
}
QStringList StelObjectMgr::listAllModuleObjects(const QString &moduleId, bo ol inEnglish) const QStringList StelObjectMgr::listAllModuleObjects(const QString &moduleId, bo ol inEnglish) const
{ {
// search for module // search for module
StelObjectModule* module = NULL; StelObjectModule* module = NULL;
foreach(StelObjectModule* m, objectsModule) foreach(StelObjectModule* m, objectsModule)
{ {
if (m->objectName() == moduleId) if (m->objectName() == moduleId)
{ {
module = m; module = m;
break; break;
 End of changes. 1 change blocks. 
0 lines changed or deleted 23 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/