mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user