diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 10:51:37 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 10:51:37 +0100 |
commit | be9a6de0ef0bb282842f57a86d00075539f4156c (patch) | |
tree | 8b113d8bab495e6f812e4e01607ac92f53e3b841 /skins.h | |
parent | b3954aefd5290babbc2aa97b8f62b6112ff494f0 (diff) | |
download | vdr-be9a6de0ef0bb282842f57a86d00075539f4156c.tar.gz vdr-be9a6de0ef0bb282842f57a86d00075539f4156c.tar.bz2 |
Plugins can now implement the function SetMenuSortMode() in their skin objects derived from cSkinDisplayMenu, to get informed about the currently used sort mode
Diffstat (limited to 'skins.h')
-rw-r--r-- | skins.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.h 3.3 2014/02/18 13:48:05 kls Exp $ + * $Id: skins.h 3.4 2015/01/15 10:45:47 kls Exp $ */ #ifndef __SKINS_H @@ -121,6 +121,14 @@ enum eMenuCategory { mcCam }; +enum eMenuSortMode { + msmUnknown = 0, + msmNumber, + msmName, + msmTime, + msmProvider + }; + class cSkinDisplayMenu : public cSkinDisplay { ///< This class implements the general purpose menu display, which is ///< used throughout the program to display information and let the @@ -167,6 +175,10 @@ public: virtual void SetTabs(int Tab1, int Tab2 = 0, int Tab3 = 0, int Tab4 = 0, int Tab5 = 0); ///< Sets the tab columns to the given values, which are the number of ///< characters in each column. + virtual void SetMenuSortMode(eMenuSortMode MenuSortMode) {} + ///< Sets the mode by which the items in this menu are sorted. + ///< This is purely informative and may be used by a skin to display the + ///< current sort mode by means of some text or symbol. virtual void Scroll(bool Up, bool Page); ///< If this menu contains a text area that can be scrolled, this function ///< will be called to actually scroll the text. Up indicates whether the |