[Marble-commits] KDE/kdeedu/marble/src/plugins/render/weather
Bastian Holst
bastianholst at gmx.de
Wed Jul 29 14:51:40 CEST 2009
SVN commit 1004152 by bholst:
Added Marble BBC weather conditions: sandstorm, dense fog
M +4 -0 BBCParser.cpp
M +2 -0 WeatherData.cpp
M +2 -1 WeatherData.h
--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/BBCParser.cpp #1004151:1004152
@@ -344,6 +344,7 @@
dayConditions["mist"] = WeatherData::Mist;
dayConditions["fog"] = WeatherData::Mist;
dayConditions["foggy"] = WeatherData::Mist;
+ dayConditions["dense fog"] = WeatherData::Mist;
dayConditions["tropical storm"] = WeatherData::Thunderstorm;
dayConditions["hazy"] = WeatherData::Mist;
dayConditions["light shower"] = WeatherData::LightShowersDay;
@@ -373,6 +374,7 @@
dayConditions["heavy snow shower"] = WeatherData::Snow;
dayConditions["heavy snow showers"] = WeatherData::Snow;
dayConditions["cloudy with heavy snow"] = WeatherData::Snow;
+ dayConditions["sandstorm"] = WeatherData::SandStorm;
dayConditions["na"] = WeatherData::ConditionNotAvailable;
dayConditions["N/A"] = WeatherData::ConditionNotAvailable;
@@ -389,6 +391,7 @@
nightConditions["mist"] = WeatherData::Mist;
nightConditions["fog"] = WeatherData::Mist;
nightConditions["foggy"] = WeatherData::Mist;
+ nightConditions["dense fog"] = WeatherData::Mist;
nightConditions["tropical storm"] = WeatherData::Thunderstorm;
nightConditions["hazy"] = WeatherData::Mist;
nightConditions["light shower"] = WeatherData::LightShowersNight;
@@ -418,6 +421,7 @@
nightConditions["heavy snow shower"] = WeatherData::Snow;
nightConditions["heavy snow showers"] = WeatherData::Snow;
nightConditions["cloudy with heavy snow"] = WeatherData::Snow;
+ nightConditions["sandstorm"] = WeatherData::SandStorm;
nightConditions["na"] = WeatherData::ConditionNotAvailable;
nightConditions["N/A"] = WeatherData::ConditionNotAvailable;
--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherData.cpp #1004151:1004152
@@ -146,6 +146,8 @@
MarbleDirs::path( "weather/weather-snow-rain.svgz" ) );
s_iconPath.insert( WeatherData::Mist,
MarbleDirs::path( "weather/weather-mist.svgz" ) );
+ s_iconPath.insert( WeatherData::SandStorm,
+ MarbleDirs::path( "weather/weather-none-available.svgz" ) );
}
}
--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherData.h #1004151:1004152
@@ -49,7 +49,8 @@
LightSnow,
Snow,
RainSnow,
- Mist
+ Mist,
+ SandStorm // no icon available
// FreezingDrizzle, would be nice, but no icon for the moment
// Flurries, would be nice, but no icon available
};
More information about the Marble-commits
mailing list