CCompnents: rename hideContainer into hideCCItem()

This commit is contained in:
2012-11-09 14:26:52 +01:00
parent 1934ceef69
commit d538e807d8
2 changed files with 22 additions and 22 deletions

View File

@@ -114,6 +114,7 @@ class CComponents
{
protected:
int x, y, height, width, corner_type, shadow_w;
int corner_rad, fr_thickness;
CFrameBuffer * frameBuffer;
std::vector<comp_fbdata_t> v_fbdata;
fb_pixel_t col_body, col_shadow, col_frame;
@@ -152,21 +153,6 @@ class CComponents
inline virtual fb_pixel_t getColorBody(){return col_body;};
inline virtual fb_pixel_t getColorShadow(){return col_shadow;};
virtual void hide();
virtual bool isPainted(){return is_painted;};
};
class CComponentsItem : public CComponents
{
protected:
int corner_rad, fr_thickness;
void hideContainer(bool no_restore = false);
void paintInit(bool do_save_bg);
void initVarItem();
public:
CComponentsItem();
/// set corner types: Possible corner types are defined in CFrameBuffer (see: driver/framebuffer.h).
inline virtual void setCornerType(const int& type){corner_type = type;};
inline virtual void setCornerRadius(const int& radius){corner_rad = radius;};
@@ -177,6 +163,20 @@ class CComponentsItem : public CComponents
inline virtual void setFrameThickness(const int& thickness){fr_thickness = thickness;};
inline virtual void setShadowOnOff(bool has_shadow){shadow = has_shadow;};
virtual void hide();
virtual bool isPainted(){return is_painted;};
};
class CComponentsItem : public CComponents
{
protected:
void hideCCItem(bool no_restore = false);
void paintInit(bool do_save_bg);
void initVarItem();
public:
CComponentsItem();
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES) = 0;
virtual void hide(bool no_restore = false);
virtual void kill();

View File

@@ -211,7 +211,7 @@ void CComponentsItem::paintInit(bool do_save_bg)
//restore last saved screen behind form box,
//Do use parameter 'no restore' to override temporarly the restore funtionality.
//This could help to avoid ugly flicker efffects if it is necessary e.g. on often repaints, without changed contents.
void CComponentsItem::hideContainer(bool no_restore)
void CComponentsItem::hideCCItem(bool no_restore)
{
is_painted = false;
@@ -227,7 +227,7 @@ void CComponentsItem::hideContainer(bool no_restore)
void CComponentsItem::hide(bool no_restore)
{
hideContainer(no_restore);
hideCCItem(no_restore);
}
@@ -400,7 +400,7 @@ void CComponentsText::hide(bool no_restore)
{
if (ct_textbox)
ct_textbox->hide();
hideContainer(no_restore);
hideCCItem(no_restore);
}
//small helper to remove excessiv linbreaks
@@ -751,7 +751,7 @@ void CComponentsPIP::paint(bool do_save_bg)
void CComponentsPIP::hide(bool no_restore)
{
hideContainer(no_restore);
hideCCItem(no_restore);
videoDecoder->Pig(-1, -1, -1, -1);
}
@@ -888,7 +888,7 @@ void CComponentsPicture::paint(bool do_save_bg)
void CComponentsPicture::hide(bool no_restore)
{
hideContainer(no_restore);
hideCCItem(no_restore);
pic_painted = false;
}
@@ -1619,7 +1619,7 @@ void CComponentsForm::paintCCItems()
void CComponentsForm::hide(bool no_restore)
{
//hide body
hideContainer(no_restore);
hideCCItem(no_restore);
}
//-------------------------------------------------------------------------------------------------------