From f6c1d48ce4819c90375753e30e81e864ad2426f8 Mon Sep 17 00:00:00 2001 From: Maniac Date: Sat, 4 Jul 2015 11:18:15 +0200 Subject: during playback show an option menu if the main menu entry is selected or key blue is pressed --- menu_options.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 menu_options.h (limited to 'menu_options.h') diff --git a/menu_options.h b/menu_options.h new file mode 100644 index 0000000..2206ac0 --- /dev/null +++ b/menu_options.h @@ -0,0 +1,45 @@ +#ifndef __MPV_MENU_OPTIONS +#define __MPV_MENU_OPTIONS + +#include +#include +#include "player.h" + +using std::string; + +class cMpvMenuOptions:public cOsdMenu +{ + private: + cMpvPlayer *player; + void ShowOptions(); + + public: + cMpvMenuOptions(cMpvPlayer *Player); + ~cMpvMenuOptions(); + virtual eOSState ProcessKey(eKeys Key); +}; + +class cMpvMenuChapters:public cOsdMenu +{ + private: + cMpvPlayer *player; + + void AddItem(string Title, int Number); + + public: + cMpvMenuChapters(cMpvPlayer *Player); + virtual eOSState ProcessKey(eKeys Key); +}; + +class cMpvMenuChapterItem:public cOsdItem +{ + private: + int number; + + public: + cMpvMenuChapterItem(string Title, int Number); + int Number() { return number; } +}; + +#endif + -- cgit v1.2.3