mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1424 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -574,10 +574,14 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
}
|
||||
break;
|
||||
case (CRCInput::RC_left):
|
||||
if ((hasItem() && (selected < 0 || !items[selected]->can_arrow)) ||
|
||||
g_settings.menu_left_exit) {
|
||||
msg = CRCInput::RC_timeout;
|
||||
break;
|
||||
{
|
||||
CMenuItem* itemX = items[selected];
|
||||
int menu_left_exit = (itemX->isNumberChooser() == 1) ? 0 : g_settings.menu_left_exit;
|
||||
if ((hasItem() && (selected < 0 || !items[selected]->can_arrow)) ||
|
||||
menu_left_exit) {
|
||||
msg = CRCInput::RC_timeout;
|
||||
break;
|
||||
}
|
||||
}
|
||||
case (CRCInput::RC_right):
|
||||
case (CRCInput::RC_ok):
|
||||
|
@@ -131,6 +131,8 @@ class CMenuItem
|
||||
virtual void paintItemCaption(const bool select_mode, const int &item_height, const char * left_text=NULL, const char * right_text=NULL);
|
||||
|
||||
virtual void paintItemSlider( const bool select_mode, const int &item_height, const int &optionvalue, const int &factor, const char * left_text=NULL, const char * right_text=NULL);
|
||||
|
||||
virtual int isNumberChooser(void) const{return 0;}
|
||||
};
|
||||
|
||||
class CMenuSeparator : public CMenuItem
|
||||
@@ -259,6 +261,7 @@ private:
|
||||
int paint(bool selected, bool last = false);
|
||||
|
||||
int exec(CMenuTarget* parent);
|
||||
int isNumberChooser(void) const{return 1;}
|
||||
};
|
||||
|
||||
class CMenuOptionChooser : public CAbstractMenuOptionChooser
|
||||
|
Reference in New Issue
Block a user