CComponentsFooter: add members to set or get select a defined button

Origin commit data
------------------
Branch: ni/coolstream
Commit: cc5b17a620
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-25 (Mon, 25 Aug 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-08-25 10:49:43 +02:00
committed by [CST] Focus
parent ece4a16b52
commit 057b7df199
2 changed files with 20 additions and 0 deletions

View File

@@ -249,6 +249,21 @@ void CComponentsFooter::showButtonContour(bool show)
}
}
void CComponentsFooter::setSelectedButton(size_t item_id)
{
if (chain)
chain->setSelectedItem(item_id);
}
int CComponentsFooter::getSelectedButton()
{
int ret = -1;
if (chain)
ret = chain->getSelectedItem();
return ret;
}
void CComponentsFooter::paintButtons(const int& x_pos,
const int& y_pos,