LocationService.cpp   LocationService.cpp 
skipping to change at line 76 skipping to change at line 76
QJsonObject obj; QJsonObject obj;
obj.insert("name",str); obj.insert("name",str);
obj.insert("name_i18n",trans.qtranslate(str)); obj.insert("name_i18n",trans.qtranslate(str));
list.append(obj); list.append(obj);
} }
response.writeJSON(QJsonDocument(list)); response.writeJSON(QJsonDocument(list));
} }
else if(operation == "planetlist") else if(operation == "planetlist")
{ {
const StelTranslator& trans = StelApp::getInstance().getLoca QList<PlanetP> ss = ssys->getAllPlanets();
leMgr().getSkyTranslator();
QStringList allPlanets = ssys->getAllPlanetEnglishNames();
QJsonArray list; QJsonArray list;
foreach(QString str, allPlanets) foreach(const PlanetP& p, ss)
{ {
QJsonObject obj; QJsonObject obj;
obj.insert("name",str); obj.insert("name", p->getEnglishName());
obj.insert("name_i18n",trans.qtranslate(str)); obj.insert("name_i18n", p->getNameI18n());
list.append(obj); list.append(obj);
} }
response.writeJSON(QJsonDocument(list)); response.writeJSON(QJsonDocument(list));
} }
else if(operation=="planetimage") else if(operation=="planetimage")
{ {
//return the image file for the specified planet //return the image file for the specified planet
//logic from LocationDialog //logic from LocationDialog
 End of changes. 3 change blocks. 
7 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/