LandscapeMgr.cpp   LandscapeMgr.cpp 
skipping to change at line 302 skipping to change at line 302
defaultLandscapeID = conf->value("init_location/landscape_name").toS tring(); defaultLandscapeID = conf->value("init_location/landscape_name").toS tring();
setCurrentLandscapeID(defaultLandscapeID); setCurrentLandscapeID(defaultLandscapeID);
setFlagLandscape(conf->value("landscape/flag_landscape", conf->value ("landscape/flag_ground", true).toBool()).toBool()); setFlagLandscape(conf->value("landscape/flag_landscape", conf->value ("landscape/flag_ground", true).toBool()).toBool());
setFlagFog(conf->value("landscape/flag_fog",true).toBool()); setFlagFog(conf->value("landscape/flag_fog",true).toBool());
setFlagAtmosphere(conf->value("landscape/flag_atmosphere", true).toB ool()); setFlagAtmosphere(conf->value("landscape/flag_atmosphere", true).toB ool());
setAtmosphereFadeDuration(conf->value("landscape/atmosphere_fade_dur ation",0.5).toFloat()); setAtmosphereFadeDuration(conf->value("landscape/atmosphere_fade_dur ation",0.5).toFloat());
setAtmosphereLightPollutionLuminance(conf->value("viewing/light_poll ution_luminance",0.0).toFloat()); setAtmosphereLightPollutionLuminance(conf->value("viewing/light_poll ution_luminance",0.0).toFloat());
cardinalsPoints = new Cardinals(); cardinalsPoints = new Cardinals();
cardinalsPoints->setFlagShow(conf->value("viewing/flag_cardinal_poin ts",true).toBool()); cardinalsPoints->setFlagShow(conf->value("viewing/flag_cardinal_poin ts",true).toBool());
setFlagLandscapeSetsLocation(conf->value("landscape/flag_landscape_s ets_location",false).toBool()); setFlagLandscapeSetsLocation(conf->value("landscape/flag_landscape_s ets_location",false).toBool());
setFlagLandscapeAutoSelection(conf->value("viewing/flag_landscape_au toselection", false).toBool());
// Set initial brightness for landscape. This feature has been added for folks which say "landscape is super dark, please add light". --AW // Set initial brightness for landscape. This feature has been added for folks which say "landscape is super dark, please add light". --AW
setInitialLandscapeBrightness(conf->value("landscape/initial_brightn ess", 0.01).toFloat()); setInitialLandscapeBrightness(conf->value("landscape/initial_brightn ess", 0.01).toFloat());
bool ok =true; bool ok =true;
setAtmosphereBortleLightPollution(conf->value("stars/init_bortle_sca le",3).toInt(&ok)); setAtmosphereBortleLightPollution(conf->value("stars/init_bortle_sca le",3).toInt(&ok));
if (!ok) if (!ok)
{ {
conf->setValue("stars/init_bortle_scale",3); conf->setValue("stars/init_bortle_scale",3);
setAtmosphereBortleLightPollution(3); setAtmosphereBortleLightPollution(3);
ok = true; ok = true;
skipping to change at line 458 skipping to change at line 459
landscape->setFlagShowFog(displayed); landscape->setFlagShowFog(displayed);
emit fogDisplayedChanged(displayed); emit fogDisplayedChanged(displayed);
} }
} }
bool LandscapeMgr::getFlagFog() const bool LandscapeMgr::getFlagFog() const
{ {
return landscape->getFlagShowFog(); return landscape->getFlagShowFog();
} }
void LandscapeMgr::setFlagLandscapeAutoSelection(bool enableAutoSelect)
{
flagLandscapeAutoSelection = enableAutoSelect;
}
bool LandscapeMgr::getFlagLandscapeAutoSelection() const
{
return flagLandscapeAutoSelection;
}
/********************************************************************* /*********************************************************************
Retrieve list of the names of all the available landscapes Retrieve list of the names of all the available landscapes
*********************************************************************/ *********************************************************************/
QStringList LandscapeMgr::getAllLandscapeNames() const QStringList LandscapeMgr::getAllLandscapeNames() const
{ {
QMap<QString,QString> nameToDirMap = getNameToDirMap(); QMap<QString,QString> nameToDirMap = getNameToDirMap();
QStringList result; QStringList result;
// We just look over the map of names to IDs and extract the keys // We just look over the map of names to IDs and extract the keys
foreach (QString i, nameToDirMap.keys()) foreach (QString i, nameToDirMap.keys())
 End of changes. 2 change blocks. 
0 lines changed or deleted 11 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/