summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-06-12 18:20:47 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-12 14:00:56 +0200
commitaabed62c5b4c00f25fbbc03d25862e04b9a02e7b (patch)
treeabc8d14ff070ad1df4b7023784330227f20c4e0a
parentc4a7ae1df83fdbd9a8d6a5b78377d8e75d2254be (diff)
downloadskin-nopacity-aabed62c5b4c00f25fbbc03d25862e04b9a02e7b.tar.gz
skin-nopacity-aabed62c5b4c00f25fbbc03d25862e04b9a02e7b.tar.bz2
Eliminate cMenuSetupSubMenu::InfoItem
InfoItem is not required, the same can be done with cOsdItem.
-rw-r--r--setup.c22
-rw-r--r--setup.h1
2 files changed, 8 insertions, 15 deletions
diff --git a/setup.c b/setup.c
index 2e908c0..b2b8076 100644
--- a/setup.c
+++ b/setup.c
@@ -109,13 +109,6 @@ cMenuSetupSubMenu::cMenuSetupSubMenu(const char* Title, cNopacityConfig* data) :
spacer = " ";
}
-cOsdItem *cMenuSetupSubMenu::InfoItem(const char *label, const char *value) {
- cOsdItem *item;
- item = new cOsdItem(cString::sprintf("%s: %s", label, value));
- item->SetSelectable(false);
- return item;
-}
-
eOSState cMenuSetupSubMenu::ProcessKey(eKeys Key) {
eOSState state = cOsdMenu::ProcessKey(Key);
if (state == osUnknown) {
@@ -532,13 +525,14 @@ void cNopacitySetupCaching::Set(void) {
}
Add(new cMenuEditIntItem(tr("Number of logos to cache at start"), tmpConf->GetValueRef("numLogosInitial"), 0, 9999));
- Add(InfoItem(tr("Cache Sizes"), ""));
- Add(InfoItem(tr("Menu Icon cache"), (imgCache->GetCacheSize(ctMenuIcon)).c_str()));
- Add(InfoItem(tr("Skin Icon image cache"), (imgCache->GetCacheSize(ctSkinIcon)).c_str()));
- Add(InfoItem(tr("Logo cache"), (imgCache->GetCacheSize(ctLogo)).c_str()));
- Add(InfoItem(tr("Menu Item Logo cache"), (imgCache->GetCacheSize(ctLogoMenuItem)).c_str()));
- Add(InfoItem(tr("Timer Logo cache"), (imgCache->GetCacheSize(ctLogoTimer)).c_str()));
- Add(InfoItem(tr("Background Images cache"), (imgCache->GetCacheSize(ctSkinElement)).c_str()));
+ Add(new cOsdItem("", osUnknown, false));
+ Add(new cOsdItem(tr("Cache Sizes"), osUnknown, false));
+ Add(new cOsdItem(cString::sprintf("%s:\t%s", tr("Menu Icon cache"), (imgCache->GetCacheSize(ctMenuIcon)).c_str()), osUnknown, false));
+ Add(new cOsdItem(cString::sprintf("%s:\t%s", tr("Skin Icon image cache"), (imgCache->GetCacheSize(ctSkinIcon)).c_str()), osUnknown, false));
+ Add(new cOsdItem(cString::sprintf("%s:\t%s", tr("Logo cache"), (imgCache->GetCacheSize(ctLogo)).c_str()), osUnknown, false));
+ Add(new cOsdItem(cString::sprintf("%s:\t%s", tr("Menu Item Logo cache"), (imgCache->GetCacheSize(ctLogoMenuItem)).c_str()), osUnknown, false));
+ Add(new cOsdItem(cString::sprintf("%s:\t%s", tr("Timer Logo cache"), (imgCache->GetCacheSize(ctLogoTimer)).c_str()), osUnknown, false));
+ Add(new cOsdItem(cString::sprintf("%s:\t%s", tr("Background Images cache"), (imgCache->GetCacheSize(ctSkinElement)).c_str()), osUnknown, false));
SetCurrent(Get(currentItem));
Display();
diff --git a/setup.h b/setup.h
index 8e6846a..cedb794 100644
--- a/setup.h
+++ b/setup.h
@@ -24,7 +24,6 @@ class cMenuSetupSubMenu : public cOsdMenu {
cString spacer;
virtual eOSState ProcessKey(eKeys Key);
virtual void Set(void) = 0;
- cOsdItem *InfoItem(const char *label, const char *value);
public:
cMenuSetupSubMenu(const char *Title, cNopacityConfig *data);
};