diff options
author | louis <louis.braun@gmx.de> | 2013-04-08 19:04:24 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-08 19:04:24 +0200 |
commit | e269a87fc24964fbaac485d6a60f3c331ed321a6 (patch) | |
tree | 0beb182ba45c484fbd7da378b460041b32987721 /setup.c | |
parent | 7e65ecacd2a1caba224eed98c81870f2a943a479 (diff) | |
download | skin-nopacity-e269a87fc24964fbaac485d6a60f3c331ed321a6.tar.gz skin-nopacity-e269a87fc24964fbaac485d6a60f3c331ed321a6.tar.bz2 |
Added standalone RSS Feed
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -202,6 +202,9 @@ void cNopacitySetup::Store(void) { SetupStore("fontRssFeed", config.fontRssFeed); SetupStore("rssScrollDelay", config.rssScrollDelay); SetupStore("rssScrollSpeed", config.rssScrollSpeed); + SetupStore("rssFeedHeightStandalone", config.rssFeedHeightStandalone); + SetupStore("fontRssFeedStandalone", config.fontRssFeedStandalone); + SetupStore("rssFeedStandalonePos", config.rssFeedStandalonePos); } //------------------------------------------------------------------------------------------------------------------ @@ -571,7 +574,8 @@ cNopacitySetupRssFeed::cNopacitySetupRssFeed(cNopacityConfig* data) : cMenuSetu if (i==20) break; } - + standalonePos[0] = tr("bottom"); + standalonePos[1] = tr("top"); Set(); } @@ -579,18 +583,21 @@ void cNopacitySetupRssFeed::Set(void) { int currentItem = Current(); Clear(); - Add(new cMenuEditBoolItem(tr("Display RSS Feed"), &tmpNopacityConfig->displayRSSFeed)); + Add(new cMenuEditBoolItem(tr("Display RSS Feed in Skin"), &tmpNopacityConfig->displayRSSFeed)); if (tmpNopacityConfig->displayRSSFeed) { Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Height of RSS Feed Line (Percent of OSD Height)")), &tmpNopacityConfig->rssFeedHeight, 3, 10)); - Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("RSS Feed 1")), &tmpNopacityConfig->rssFeed[0], config.rssFeeds.size(), feeds)); - Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("RSS Feed 2")), &tmpNopacityConfig->rssFeed[1], config.rssFeeds.size()+1, feedsWithNone)); - Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("RSS Feed 3")), &tmpNopacityConfig->rssFeed[2], config.rssFeeds.size()+1, feedsWithNone)); - Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("RSS Feed 4")), &tmpNopacityConfig->rssFeed[3], config.rssFeeds.size()+1, feedsWithNone)); - Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("RSS Feed 5")), &tmpNopacityConfig->rssFeed[4], config.rssFeeds.size()+1, feedsWithNone)); - Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("Scrolling Speed")), &tmpNopacityConfig->rssScrollSpeed, 3, scrollSpeed)); - Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Scrolling Delay in s")), &tmpNopacityConfig->rssScrollDelay, 0, 3)); Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Adjust Font Size")), &tmpNopacityConfig->fontRssFeed, -30, 30)); } + Add(new cMenuEditIntItem(tr("Height of standalone RSS Feed (Percent of OSD Height)"), &tmpNopacityConfig->rssFeedHeightStandalone, 3, 20)); + Add(new cMenuEditIntItem(tr("Adjust Font Size of standalone Feed"), &tmpNopacityConfig->fontRssFeedStandalone, -30, 30)); + Add(new cMenuEditStraItem(tr("Standalone RSS Feed Position"), &tmpNopacityConfig->rssFeedStandalonePos, 2, standalonePos)); + Add(new cMenuEditStraItem(tr("RSS Feed 1"), &tmpNopacityConfig->rssFeed[0], config.rssFeeds.size(), feeds)); + Add(new cMenuEditStraItem(tr("RSS Feed 2"), &tmpNopacityConfig->rssFeed[1], config.rssFeeds.size()+1, feedsWithNone)); + Add(new cMenuEditStraItem(tr("RSS Feed 3"), &tmpNopacityConfig->rssFeed[2], config.rssFeeds.size()+1, feedsWithNone)); + Add(new cMenuEditStraItem(tr("RSS Feed 4"), &tmpNopacityConfig->rssFeed[3], config.rssFeeds.size()+1, feedsWithNone)); + Add(new cMenuEditStraItem(tr("RSS Feed 5"), &tmpNopacityConfig->rssFeed[4], config.rssFeeds.size()+1, feedsWithNone)); + Add(new cMenuEditStraItem(tr("Scrolling Speed"), &tmpNopacityConfig->rssScrollSpeed, 3, scrollSpeed)); + Add(new cMenuEditIntItem(tr("Scrolling Delay in s"), &tmpNopacityConfig->rssScrollDelay, 0, 3)); SetCurrent(Get(currentItem)); Display(); }
\ No newline at end of file |