mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
*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:
@@ -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
|
||||
|
Reference in New Issue
Block a user