summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-11-17 19:27:30 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-11-17 19:27:30 +0100
commitf71077e871218abd105027d1eb6b9b4033fbe131 (patch)
tree8cb2a9e20e21c97c2742716a634e632d0764ca9f /setup.c
parentf997e3c12313a74339ffa81e7488217f2ec6c06d (diff)
downloadskin-flatplus-f71077e871218abd105027d1eb6b9b4033fbe131.tar.gz
skin-flatplus-f71077e871218abd105027d1eb6b9b4033fbe131.tar.bz2
update widgets files; add weather widget font size
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 0d7e1fd1..23e9b9bb 100644
--- a/setup.c
+++ b/setup.c
@@ -310,6 +310,7 @@ void cFlatSetup::Store(void) {
SetupStore("MainMenuWidgetWeatherType", Config.MainMenuWidgetWeatherType);
SetupStore("ChannelWeatherShow", Config.ChannelWeatherShow);
SetupStore("PlaybackWeatherShow", Config.PlaybackWeatherShow);
+ SetupStore("WeatherFontSize", dtoa(Config.WeatherFontSize));
Config.Init();
}
@@ -485,6 +486,7 @@ bool cFlatSetupGeneral::SetupParse(const char *Name, const char *Value) {
else if (strcmp(Name, "MainMenuWidgetWeatherType") == 0) SetupConfig->MainMenuWidgetWeatherType = atoi(Value);
else if (strcmp(Name, "ChannelWeatherShow") == 0) SetupConfig->ChannelWeatherShow = atoi(Value);
else if (strcmp(Name, "PlaybackWeatherShow") == 0) SetupConfig->PlaybackWeatherShow = atoi(Value);
+ else if (strcmp(Name, "WeatherFontSize") == 0) SetupConfig->WeatherFontSize = atod(Value);
else return false;
return true;
@@ -642,6 +644,7 @@ void cFlatSetupGeneral::SaveCurrentSettings(void) {
Config.Store("MainMenuWidgetWeatherType", SetupConfig->MainMenuWidgetWeatherType, *Filename);
Config.Store("ChannelWeatherShow", SetupConfig->ChannelWeatherShow, *Filename);
Config.Store("PlaybackWeatherShow", SetupConfig->PlaybackWeatherShow, *Filename);
+ Config.Store("WeatherFontSize", dtoa(Config.WeatherFontSize), *Filename);
cString msg = cString::sprintf("%s %s", tr("saved settings in file:"), *File);
Skins.Message(mtInfo, msg);
@@ -814,6 +817,7 @@ void cFlatSetupChannelInfo::Setup(void) {
Add(new cMenuEditBoolItem(tr("Show Channelinfo icons"), &SetupConfig->ChannelIconsShow));
Add(new cMenuEditBoolItem(tr("Show signal quality"), &SetupConfig->SignalQualityShow));
Add(new cMenuEditBoolItem(tr("Show weather widget"), &SetupConfig->ChannelWeatherShow));
+ Add(new cMenuEditPrcItem(tr("Weather widget font size"), &SetupConfig->WeatherFontSize, 0.01, 0.2, 1));
Add(new cMenuEditBoolItem(tr("Colors for signal quality"), &SetupConfig->SignalQualityUseColors));
Add(new cMenuEditBoolItem(tr("Show resolution & aspect"), &SetupConfig->ChannelResolutionAspectShow));
Add(new cMenuEditBoolItem(tr("Show format (hd/sd)"), &SetupConfig->ChannelFormatShow));