mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +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.
Origin commit data
------------------
Commit: 7403aa2d46
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)
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