mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CMenuWidget: add action keys
Conflicts: src/gui/widget/menue.h
This commit is contained in:
@@ -435,6 +435,8 @@ class CMenuWidget : public CMenuTarget
|
||||
CFrameBuffer *frameBuffer;
|
||||
std::vector<CMenuItem*> items;
|
||||
std::vector<int> page_start;
|
||||
struct keyAction { std::string action; CMenuTarget *menue; };
|
||||
std::map<neutrino_msg_t, keyAction> keyActionMap;
|
||||
std::string iconfile;
|
||||
|
||||
int min_width;
|
||||
@@ -514,6 +516,7 @@ class CMenuWidget : public CMenuTarget
|
||||
MENU_POS_BOTTOM_LEFT ,
|
||||
MENU_POS_BOTTOM_RIGHT
|
||||
};
|
||||
void addKey(neutrino_msg_t key, CMenuTarget *menue, const std::string &action);
|
||||
};
|
||||
|
||||
class CPINProtection
|
||||
|
Reference in New Issue
Block a user