CMoviePlayerGui: Bind enable/disable FileTime to enableInfoClock()

This commit is contained in:
M. Liebmann
2017-01-30 07:11:19 +01:00
parent 891bc71f9d
commit dc4ce280ed
8 changed files with 87 additions and 55 deletions

View File

@@ -42,10 +42,10 @@ class CTimeOSD : public CComponentsFrmClock
private:
CProgressBar timescale;
mode m_mode;
mode m_mode, tmp_mode;
bool m_restore;
time_t m_time_show;
void Init();
void initTimeString();
void updatePos(int position, int duration);
void KillAndResetTimescale();
@@ -53,6 +53,8 @@ class CTimeOSD : public CComponentsFrmClock
public:
CTimeOSD();
// ~CTimeOSD(); is inherited
void Init();
static CTimeOSD* getInstance();
void show(time_t time_show, bool force = true);
void kill();
bool IsVisible() {return m_mode != MODE_HIDE;}
@@ -60,6 +62,10 @@ class CTimeOSD : public CComponentsFrmClock
void switchMode(int position, int duration);
mode getMode() { return m_mode; };
void setMode (mode mode_) { m_mode = mode_; };
mode getTmpMode() { return tmp_mode; };
void setTmpMode () { tmp_mode = m_mode; };
bool getRestore() { return m_restore; };
void setRestore() { m_restore = (m_mode != MODE_HIDE); };
void setHeight(const int){}//NOTE: dummy member, height is strictly bound to settings
};
#endif