CMenuWidget: Add function getNextShortcut()/setNextShortcut()

for setting of direktkey in the plugin integration


Origin commit data
------------------
Branch: ni/coolstream
Commit: 940a41aab2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-10-16 (Thu, 16 Oct 2014)

Origin message was:
------------------
CMenuWidget: Add function getNextShortcut()/setNextShortcut()

 for setting of direktkey in the plugin integration


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2014-10-16 05:13:07 +02:00
parent ee217a1d42
commit ab5bf89953
3 changed files with 8 additions and 1 deletions

View File

@@ -520,6 +520,7 @@ class CMenuWidget : public CMenuTarget
bool from_wizard;
bool fade;
bool washidden;
int nextShortcut;
void Init(const std::string & Icon, const int mwidth, const mn_widget_id_t &w_index);
virtual void paintItems();
@@ -577,6 +578,8 @@ class CMenuWidget : public CMenuTarget
void addKey(neutrino_msg_t key, CMenuTarget *menue, const std::string &action);
void setFooter(const struct button_label *_fbutton_label, const int _fbutton_count, bool repaint = false);
void suppressDetailsLine(bool suppress = true){show_details_line = suppress ? false : true;};
void setNextShortcut(int sc) { nextShortcut = sc; };
int getNextShortcut() { return nextShortcut; };
};
class CPINProtection