mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsFooter: add members to set or get select a defined button
This commit is contained in:
@@ -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,
|
void CComponentsFooter::paintButtons(const int& x_pos,
|
||||||
const int& y_pos,
|
const int& y_pos,
|
||||||
|
@@ -97,6 +97,11 @@ class CComponentsFooter : public CComponentsHeader
|
|||||||
///causes show/hide countour of button frame and background, parameter bool show, default= true
|
///causes show/hide countour of button frame and background, parameter bool show, default= true
|
||||||
void showButtonContour(bool show = true);
|
void showButtonContour(bool show = true);
|
||||||
|
|
||||||
|
///select a definied button, parameter1 as size_t
|
||||||
|
void setSelectedButton(size_t item_id);
|
||||||
|
///returns id of select button, return value as int, -1 = nothing is selected
|
||||||
|
int getSelectedButton();
|
||||||
|
|
||||||
///property: set font for label caption, parameter as font object, value NULL causes usage of dynamic font
|
///property: set font for label caption, parameter as font object, value NULL causes usage of dynamic font
|
||||||
void setButtonFont(Font* font){ccf_btn_font = font;};
|
void setButtonFont(Font* font){ccf_btn_font = font;};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user