mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
CComponentsHeader: add methode initRepaintSlot() and considered parent
Required in sub classes. Considering of parent ensures usage of required background color in sub classes.
This commit is contained in:
@@ -136,13 +136,17 @@ void CComponentsHeader::initVarHeader( const int& x_pos, const int& y_pos, const
|
|||||||
cch_cl_sec_format = cch_cl_format;
|
cch_cl_sec_format = cch_cl_format;
|
||||||
cch_cl_enable_run = false;
|
cch_cl_enable_run = false;
|
||||||
|
|
||||||
//init slot before re paint of header, paint() is already done
|
|
||||||
sl_form_repaint = sigc::bind(sigc::mem_fun(*this, &CComponentsHeader::kill), col_body, -1, CC_FBDATA_TYPES, false);
|
|
||||||
OnBeforeRePaint.connect(sl_form_repaint);
|
|
||||||
|
|
||||||
addContextButton(buttons);
|
addContextButton(buttons);
|
||||||
initCCItems();
|
initCCItems();
|
||||||
initParent(parent);
|
initParent(parent);
|
||||||
|
|
||||||
|
//init repaint slot before re paint of body, if paint() is already done
|
||||||
|
initRepaintSlot();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CComponentsHeader::initRepaintSlot(){
|
||||||
|
sl_form_repaint = sigc::bind(sigc::mem_fun(*this, &CComponentsHeader::kill), cc_parent ? col_body : 0, -1, CC_FBDATA_TYPES, false);
|
||||||
|
OnBeforeRePaint.connect(sl_form_repaint);
|
||||||
}
|
}
|
||||||
|
|
||||||
CComponentsHeader::~CComponentsHeader()
|
CComponentsHeader::~CComponentsHeader()
|
||||||
|
@@ -112,6 +112,8 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen
|
|||||||
void initButtons();
|
void initButtons();
|
||||||
///sub: init clock object
|
///sub: init clock object
|
||||||
void initClock();
|
void initClock();
|
||||||
|
///int repaint slot
|
||||||
|
void initRepaintSlot();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum
|
enum
|
||||||
|
Reference in New Issue
Block a user