mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsSlider: fix debug output
This commit is contained in:
@@ -97,7 +97,6 @@ void CComponentsSlider::setValueScale(const int& min_value, const int& max_value
|
|||||||
void CComponentsSlider::initCCSlBody()
|
void CComponentsSlider::initCCSlBody()
|
||||||
{
|
{
|
||||||
if (!csl_body_icon.empty()){
|
if (!csl_body_icon.empty()){
|
||||||
printf("[CComponentsSlider] [%s] missing or undefinied slider body icon %s\n", __func__, csl_body_icon.c_str());
|
|
||||||
if (csl_body_obj == NULL){
|
if (csl_body_obj == NULL){
|
||||||
csl_body_obj = new CComponentsPicture(0, 0, 0, height, csl_body_icon);
|
csl_body_obj = new CComponentsPicture(0, 0, 0, height, csl_body_icon);
|
||||||
csl_body_obj->doPaintBg(false);
|
csl_body_obj->doPaintBg(false);
|
||||||
@@ -106,8 +105,10 @@ void CComponentsSlider::initCCSlBody()
|
|||||||
else
|
else
|
||||||
csl_body_obj->setPicture(csl_body_icon);
|
csl_body_obj->setPicture(csl_body_icon);
|
||||||
}
|
}
|
||||||
else
|
else{
|
||||||
|
printf("[CComponentsSlider] [%s] missing or undefinied slider body icon %s\n", __func__, csl_body_icon.c_str());
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//get first icon dimensions
|
//get first icon dimensions
|
||||||
int icon_w = csl_body_obj->getWidth();
|
int icon_w = csl_body_obj->getWidth();
|
||||||
@@ -127,7 +128,6 @@ void CComponentsSlider::initCCSlBody()
|
|||||||
void CComponentsSlider::initCCSlSlider()
|
void CComponentsSlider::initCCSlSlider()
|
||||||
{
|
{
|
||||||
if (!csl_slider_icon.empty()){
|
if (!csl_slider_icon.empty()){
|
||||||
printf("[CComponentsSlider] [%s] missing or undefinied slider icon %s\n", __func__, csl_slider_icon.c_str());
|
|
||||||
if (csl_slider_obj == NULL){
|
if (csl_slider_obj == NULL){
|
||||||
csl_slider_obj = new CComponentsPicture(0, 0, 0, 0, csl_slider_icon);
|
csl_slider_obj = new CComponentsPicture(0, 0, 0, 0, csl_slider_icon);
|
||||||
csl_slider_obj->doPaintBg(false);
|
csl_slider_obj->doPaintBg(false);
|
||||||
@@ -136,8 +136,10 @@ void CComponentsSlider::initCCSlSlider()
|
|||||||
else
|
else
|
||||||
csl_slider_obj->setPicture(csl_slider_icon);
|
csl_slider_obj->setPicture(csl_slider_icon);
|
||||||
}
|
}
|
||||||
else
|
else{
|
||||||
|
printf("[CComponentsSlider] [%s] missing or undefinied slider icon %s\n", __func__, csl_slider_icon.c_str());
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//get first icon dimensions
|
//get first icon dimensions
|
||||||
int slider_w = csl_slider_obj->getWidth();
|
int slider_w = csl_slider_obj->getWidth();
|
||||||
@@ -157,6 +159,12 @@ void CComponentsSlider::initCCSlItems()
|
|||||||
initCCSlSlider();
|
initCCSlSlider();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CComponentsSlider::setSliderIcon(const std::string &icon_name)
|
||||||
|
{
|
||||||
|
csl_slider_icon = icon_name;
|
||||||
|
initCCSlSlider();
|
||||||
|
}
|
||||||
|
|
||||||
// void CComponentsSlider::paint(bool do_save_bg)
|
// void CComponentsSlider::paint(bool do_save_bg)
|
||||||
// {
|
// {
|
||||||
// //prepare items before paint
|
// //prepare items before paint
|
||||||
|
@@ -85,6 +85,7 @@ class CComponentsSlider : public CComponentsForm
|
|||||||
|
|
||||||
void setValuePos(const int& current_value);
|
void setValuePos(const int& current_value);
|
||||||
void setValueScale(const int& min_value, const int& max_value);
|
void setValueScale(const int& min_value, const int& max_value);
|
||||||
|
void setSliderIcon(const std::string &icon_name);
|
||||||
|
|
||||||
// void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
// void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user