mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
*neutrino menu classes: add member function resetWidget()
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1434 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -370,6 +370,13 @@ void CMenuWidget::addItem(CMenuItem* menuItem, const bool defaultselected)
|
|||||||
items.push_back(menuItem);
|
items.push_back(menuItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMenuWidget::resetWidget()
|
||||||
|
{
|
||||||
|
items.clear();
|
||||||
|
page_start.clear();
|
||||||
|
selected=-1;
|
||||||
|
}
|
||||||
|
|
||||||
bool CMenuWidget::hasItem()
|
bool CMenuWidget::hasItem()
|
||||||
{
|
{
|
||||||
return !items.empty();
|
return !items.empty();
|
||||||
|
@@ -419,6 +419,7 @@ class CMenuWidget : public CMenuTarget
|
|||||||
};
|
};
|
||||||
virtual void addIntroItems(neutrino_locale_t subhead_text = NONEXISTANT_LOCALE, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK );
|
virtual void addIntroItems(neutrino_locale_t subhead_text = NONEXISTANT_LOCALE, neutrino_locale_t section_text = NONEXISTANT_LOCALE, int buttontype = BTN_TYPE_BACK );
|
||||||
bool hasItem();
|
bool hasItem();
|
||||||
|
void resetWidget();
|
||||||
virtual void paint();
|
virtual void paint();
|
||||||
virtual void hide();
|
virtual void hide();
|
||||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey);
|
virtual int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||||
|
Reference in New Issue
Block a user