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

This commit is contained in:
2014-08-25 10:49:43 +02:00
committed by [CST] Focus
parent 1a38c23340
commit cc5b17a620
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,