CTimeOSD: use class konform member names

CTimeOSD is inherited from CComponentsForm/Item.
Therefore, it is usual to keep the functional layout.
Overwritable virtual members should be used with same
functionality. kill() is similar with paintBackground() known from
CFrameBuffer, hide(bool) do restore saved background and expects a
parameter.

TODO: It works, but class layout of CTimeOSD is currently not conform
with Components, because the functionalities are partially undermined
and must be reworked.
For Example: timescale and clock object not used as sub objects
in a parent form object.


Origin commit data
------------------
Commit: 7403aa2d46
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)
This commit is contained in:
2014-01-07 11:53:02 +01:00
parent db397fda24
commit e21759c50d
3 changed files with 24 additions and 19 deletions

View File

@@ -48,12 +48,13 @@ class CTimeOSD : public CComponentsFrmClock
void Init();
void initTimeString();
void updatePos(int position, int duration);
void KillAndResetTimescale();
public:
CTimeOSD();
~CTimeOSD();
// ~CTimeOSD(); is inherited
void show(time_t time_show, bool force = true);
void hide();
void kill();
bool IsVisible() {return m_mode != MODE_HIDE;}
void update(int position, int duration);
void switchMode(int position, int duration);