clean up: remove unnecessary virtual declarations from cc classes

This commit is contained in:
2018-12-07 21:41:19 +01:00
parent 420fba0e1b
commit 1d5de6babc
7 changed files with 173 additions and 173 deletions

View File

@@ -128,44 +128,44 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
Font* getClockFont();
///set text color
virtual void setTextColor(fb_pixel_t color_text){ cl_col_text = color_text;}
void setTextColor(fb_pixel_t color_text){ cl_col_text = color_text;}
///set height of clock on screen
virtual void setHeight(const int& h);
void setHeight(const int& h);
///set width of clock on screen
virtual void setWidth(const int& w);
void setWidth(const int& w);
///use string expession: "%H:%M" = 12:22, "%H:%M:%S" = 12:22:12
///set current time format string, 1st parameter set the default format, 2nd parameter sets an alternatively format for use as blink effect
virtual void setClockFormat(const char* prformat_str, const char* secformat_str = NULL);
void setClockFormat(const char* prformat_str, const char* secformat_str = NULL);
///get current time format string,
std::string getClockFormat(){return cl_format;}
///start and paint ticking clock
virtual bool Start();
bool Start();
///same like Start() but for usage as simple call without return value
virtual void unblock(){Start();}
void unblock(){Start();}
///stop ticking clock, but don't hide, use kill() or hide() to remove from screen
virtual bool Stop();
bool Stop();
///same like Stop() but for usage as simple call without return value
virtual void block(){Stop();}
void block(){Stop();}
///return true on blocked status, blocked means clock can be initalized but would be not paint, to unblock use unblock()
virtual bool isBlocked(void) {return !paintClock;}
bool isBlocked(void) {return !paintClock;}
///returns true, if clock is running
virtual bool isRun() const {return cl_timer ? cl_timer->isRun() : false;}
bool isRun() const {return cl_timer ? cl_timer->isRun() : false;}
///set refresh interval in seconds, default value=1 (=1 sec)
virtual void setClockInterval(const int& seconds){cl_interval = seconds;}
void setClockInterval(const int& seconds){cl_interval = seconds;}
///show clock on screen
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
///hide clock on screen
virtual void hide(){Stop(); CComponentsForm::hide();}
void hide(){Stop(); CComponentsForm::hide();}
///does the same like kill() from base class, but stopping clock before kill
void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, bool ignore_parent = false);
///reinitialize clock contents
virtual void refresh() { initCCLockItems(); }
void refresh() { initCCLockItems(); }
///enables force to repaint of all segments on each interval, Note: repaint of all segemts is default enabled.
void enableForceSegmentPaint(bool enable = true){cl_force_repaint = enable;}
@@ -185,7 +185,7 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
void enableTboxSaveScreen(bool mode);
///set color gradient on/off, returns true if gradient mode was changed
virtual bool enableColBodyGradient(const int& enable_mode, const fb_pixel_t& sec_color = 255 /*=COL_BACKGROUND*/);
bool enableColBodyGradient(const int& enable_mode, const fb_pixel_t& sec_color = 255 /*=COL_BACKGROUND*/);
#if 0
///enable/disable automatic blitting
void setBlit(bool _may_blit = true) { may_blit = _may_blit; }