mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
cc_frm_clock: replaced paintClock with cl_blocked
for better readability
This commit is contained in:
@@ -94,7 +94,7 @@ CComponentsFrmClock::CComponentsFrmClock( const int& x_pos,
|
||||
//set default running clock properties
|
||||
cl_interval = interval_seconds;
|
||||
cl_timer = NULL;
|
||||
paintClock = false;
|
||||
cl_blocked = true;
|
||||
#if 0
|
||||
may_blit = true;
|
||||
#endif
|
||||
@@ -312,7 +312,7 @@ void CComponentsFrmClock::initCCLockItems()
|
||||
//this member is provided for slot with timer event "OnTimer"
|
||||
void CComponentsFrmClock::ShowTime()
|
||||
{
|
||||
if (paintClock) {
|
||||
if (!cl_blocked) {
|
||||
//paint segements, but wihtout saved backgrounds
|
||||
paint(CC_SAVE_SCREEN_NO);
|
||||
}
|
||||
@@ -365,7 +365,7 @@ bool CComponentsFrmClock::stopClock()
|
||||
bool CComponentsFrmClock::Start()
|
||||
{
|
||||
if (startClock()) {
|
||||
paintClock = true;
|
||||
cl_blocked = !cc_allow_paint;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -374,7 +374,7 @@ bool CComponentsFrmClock::Start()
|
||||
bool CComponentsFrmClock::Stop()
|
||||
{
|
||||
if (stopClock()){
|
||||
paintClock = false;
|
||||
cl_blocked = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
|
||||
char cl_timestr[32];
|
||||
|
||||
///handle paint clock within thread and is not similar to cc_allow_paint
|
||||
bool paintClock;
|
||||
bool cl_blocked;
|
||||
|
||||
///object: font render object
|
||||
Font *cl_font;
|
||||
@@ -151,7 +151,7 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
|
||||
///same like Stop() but for usage as simple call without return value
|
||||
void block(){Stop();}
|
||||
///return true on blocked status, blocked means clock can be initalized but would be not paint, to unblock use unblock()
|
||||
bool isBlocked(void) {return !paintClock;}
|
||||
bool isBlocked(void) {return cl_blocked;}
|
||||
|
||||
///returns true, if clock is running
|
||||
bool isRun() const {return cl_timer ? cl_timer->isRun() : false;}
|
||||
|
Reference in New Issue
Block a user