summaryrefslogtreecommitdiff
path: root/skins.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-15 10:51:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-15 10:51:37 +0100
commitbe9a6de0ef0bb282842f57a86d00075539f4156c (patch)
tree8b113d8bab495e6f812e4e01607ac92f53e3b841 /skins.h
parentb3954aefd5290babbc2aa97b8f62b6112ff494f0 (diff)
downloadvdr-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.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/skins.h b/skins.h
index 6b8cfa06..e1d12c05 100644
--- a/skins.h
+++ b/skins.h
@@ -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