StelObjectMgr.cpp   StelObjectMgr.cpp 
skipping to change at line 227 skipping to change at line 227
if ((*iter)->getType()==type) if ((*iter)->getType()==type)
result.push_back(*iter); result.push_back(*iter);
} }
return result; return result;
} }
/************************************************************************* /*************************************************************************
Find and return the list of at most maxNbItem objects auto-completing Find and return the list of at most maxNbItem objects auto-completing
passed object I18 name passed object I18 name
*************************************************************************/ *************************************************************************/
QStringList StelObjectMgr::listMatchingObjectsI18n(const QString& objPrefix , unsigned int maxNbItem) const QStringList StelObjectMgr::listMatchingObjectsI18n(const QString& objPrefix , unsigned int maxNbItem, bool useStartOfWords) const
{ {
QStringList result; QStringList result;
// For all StelObjectmodules.. // For all StelObjectmodules..
foreach (const StelObjectModule* m, objectsModule) foreach (const StelObjectModule* m, objectsModule)
{ {
// 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, useStartOfWords);
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 Find and return the list of at most maxNbItem objects auto-completing
passed object English name passed object English name
*************************************************************************/ *************************************************************************/
QStringList StelObjectMgr::listMatchingObjects(const QString& objPrefix, un signed int maxNbItem) const QStringList StelObjectMgr::listMatchingObjects(const QString& objPrefix, un signed int maxNbItem, bool useStartOfWords) const
{ {
QStringList result; QStringList result;
// For all StelObjectmodules.. // For all StelObjectmodules..
foreach (const StelObjectModule* m, objectsModule) foreach (const StelObjectModule* m, objectsModule)
{ {
// Get matching object for this module // Get matching object for this module
QStringList matchingObj = m->listMatchingObjects(objPrefix, maxNbItem); QStringList matchingObj = m->listMatchingObjects(objPrefix, maxNbItem, useStartOfWords);
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 QStringList StelObjectMgr::listAllModuleObjects(const QString &moduleId, bo ol inEnglish) const
{ {
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 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/