Menus shadow; 0 calls timer-list in event-list; Fix exit from sleeptimer set; Testing backup/restore settings

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@647 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2010-07-03 13:09:40 +00:00
parent d7c2303239
commit c2cfa8862b
18 changed files with 111 additions and 51 deletions

View File

@@ -47,7 +47,8 @@ struct menu_return
RETURN_NONE = 0,
RETURN_REPAINT = 1,
RETURN_EXIT = 2,
RETURN_EXIT_ALL = 4
RETURN_EXIT_ALL = 4,
RETURN_EXIT_REPAINT = 5
};
};
@@ -64,14 +65,12 @@ class CChangeObserver
class CMenuTarget
{
public:
CMenuTarget(){}
virtual ~CMenuTarget(){}
virtual void hide(){}
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;
};
class CMenuItem
{
protected:
@@ -347,9 +346,10 @@ class CMenuWidget : public CMenuTarget
unsigned int total_pages;
bool exit_pressed;
bool from_wizard;
bool fade;
void Init(const std::string & Icon, const int mwidth, const int mheight);
virtual void paintItems();
public:
CMenuWidget();
/* TODO: mheight is not used anymore. remove if nobody misses it */
@@ -368,6 +368,7 @@ class CMenuWidget : public CMenuTarget
void move(int xoff, int yoff);
int getSelectedLine(void){return exit_pressed ? -1 : selected;};
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};
void enableFade(bool _enable) { fade = _enable; };
};
class CPINProtection