summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2015-02-08 11:53:32 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2015-02-08 11:53:32 +0100
commit74f976317cb8c289e4efae8e227b738eacfea5b4 (patch)
tree837f430baa83b043fd7e77e4aca756990d5ebc2e /displaymenu.c
parentce51da5033e8bda4e19654483d5878b01b4381ef (diff)
downloadskin-flatplus-74f976317cb8c289e4efae8e227b738eacfea5b4.tar.gz
skin-flatplus-74f976317cb8c289e4efae8e227b738eacfea5b4.tar.bz2
[add] provide support for new SetMenuSortMode function, to show sort in menus
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 6e6ff386..957b0f1b 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -224,6 +224,8 @@ void cFlatDisplayMenu::Clear(void) {
contentWidget.Clear();
+ TopBarClearMenuIconRight();
+
ShowRecording = ShowEvent = ShowText = false;
}
@@ -301,10 +303,12 @@ void cFlatDisplayMenu::SetTitle(const char *Title) {
}
TopBarSetTitle(*newTitle);
}
+ /*
if( RecordingsSortMode == rsmName )
TopBarSetMenuIconRight("menuIcons/RecsSortName");
else if( RecordingsSortMode == rsmTime )
TopBarSetMenuIconRight("menuIcons/RecsSortDate");
+ */
icon = "menuIcons/Recordings";
break;
case mcSetup:
@@ -3612,6 +3616,36 @@ const cFont *cFlatDisplayMenu::GetTextAreaFont(bool FixedFont) const {
return rfont;
}
+void cFlatDisplayMenu::SetMenuSortMode(eMenuSortMode MenuSortMode) {
+
+ cString sortIcon;
+ switch( MenuSortMode ) {
+ case msmUnknown:
+ sortIcon = "SortUnknown";
+ // do not set search icon if it is unknown
+ return;
+ break;
+ case msmNumber:
+ sortIcon = "SortNumber";
+ break;
+ case msmName:
+ sortIcon = "SortName";
+ break;
+ case msmTime:
+ sortIcon = "SortDate";
+ break;
+ case msmProvider:
+ sortIcon = "SortProvider";
+ break;
+ default:
+ sortIcon = "SortUnknown";
+ // do not set search icon if it is unknown
+ return;
+ }
+
+ TopBarSetMenuIconRight(sortIcon);
+}
+
void cFlatDisplayMenu::Flush(void) {
TopBarUpdate();