Exoplanets.cpp   Exoplanets.cpp 
skipping to change at line 19 skipping to change at line 19
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "config.h"
#include "StelProjector.hpp" #include "StelProjector.hpp"
#include "StelPainter.hpp" #include "StelPainter.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelCore.hpp" #include "StelCore.hpp"
#include "StelGui.hpp" #include "StelGui.hpp"
#include "StelGuiItems.hpp" #include "StelGuiItems.hpp"
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelObjectMgr.hpp" #include "StelObjectMgr.hpp"
#include "StelTextureMgr.hpp" #include "StelTextureMgr.hpp"
skipping to change at line 399 skipping to change at line 397
if (result.size()>maxNbItem) if (result.size()>maxNbItem)
result.erase(result.begin()+maxNbItem, result.end()); result.erase(result.begin()+maxNbItem, result.end());
return result; return result;
} }
QStringList Exoplanets::listAllObjects(bool inEnglish) const QStringList Exoplanets::listAllObjects(bool inEnglish) const
{ {
QStringList result; QStringList result;
if (!flagShowExoplanets)
return result;
if (inEnglish) if (inEnglish)
{ {
foreach (const ExoplanetP& planet, ep) foreach (const ExoplanetP& planet, ep)
{ {
result << planet->getEnglishName(); result << planet->getEnglishName();
} }
} }
else else
{ {
foreach (const ExoplanetP& planet, ep) foreach (const ExoplanetP& planet, ep)
skipping to change at line 842 skipping to change at line 843
} }
void Exoplanets::setMarkerColor(QString c, bool h) void Exoplanets::setMarkerColor(QString c, bool h)
{ {
Vec3f nc = StelUtils::strToVec3f(c); Vec3f nc = StelUtils::strToVec3f(c);
if (h) if (h)
Exoplanet::habitableExoplanetMarkerColor = nc; Exoplanet::habitableExoplanetMarkerColor = nc;
else else
Exoplanet::exoplanetMarkerColor = nc; Exoplanet::exoplanetMarkerColor = nc;
} }
void Exoplanets::translations()
{
#if 0
// TRANSLATORS: Habitable zone
N_("Hot");
// TRANSLATORS: Habitable zone
N_("Warm");
// TRANSLATORS: Habitable zone
N_("Cold");
// TRANSLATORS: Planet size
N_("Miniterran");
// TRANSLATORS: Planet size
N_("Subterran");
// TRANSLATORS: Planet size
N_("Terran");
// TRANSLATORS: Planet size
N_("Superterran");
// TRANSLATORS: Planet size
N_("Jovian");
// TRANSLATORS: Planet size
N_("Neptunian");
/* For copy/paste:
// TRANSLATORS:
N_("");
*/
#endif
}
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 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/