*neutrino menu classes: add member and numerations to manage menu position

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1954 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-12-06 19:55:38 +00:00
parent 19e2c186c2
commit 27af698792
3 changed files with 54 additions and 26 deletions

View File

@@ -426,6 +426,8 @@ class CMenuWidget : public CMenuTarget
void calcSize();
void saveScreen();
void restoreScreen();
void setMenuPos(const int& menu_width);
public:
CMenuWidget();
/* mwidth (minimum width) in percent of screen width */
@@ -458,9 +460,17 @@ class CMenuWidget : public CMenuTarget
virtual int getSelected(){ return selected; };
void move(int xoff, int yoff);
int getSelectedLine(void){return exit_pressed ? -1 : selected;};
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};
void enableFade(bool _enable) { fade = _enable; };
void enableSaveScreen(bool enable);
enum
{
MENU_POS_CENTER ,
MENU_POS_TOP_LEFT ,
MENU_POS_TOP_RIGHT ,
MENU_POS_BOTTOM_LEFT ,
MENU_POS_BOTTOM_RIGHT ,
};
};
class CPINProtection