mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
gui/components/cc_frm_clock: simplify; setClockFormat/setClockBlink has now impact on running thread
Conflicts:
src/gui/components/cc_frm_clock.cpp
src/gui/timeosd.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 13118c1148
Author: martii <m4rtii@gmx.de>
Date: 2014-01-10 (Fri, 10 Jan 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -71,10 +71,10 @@ class CComponentsFrmClock : public CComponentsForm
|
||||
///text color
|
||||
int cl_col_text;
|
||||
///time format
|
||||
std::string cl_format_str;
|
||||
const char *cl_format_str;
|
||||
///time format for blink
|
||||
std::string cl_blink_str;
|
||||
///time string align, default allign is ver and hor centered
|
||||
const char *cl_blink_str;
|
||||
///time string align, default align is ver and hor centered
|
||||
int cl_align;
|
||||
|
||||
///initialize clock contents
|
||||
@@ -83,6 +83,8 @@ class CComponentsFrmClock : public CComponentsForm
|
||||
virtual void initTimeString();
|
||||
///initialize of general alignment of timestring segments within form area
|
||||
void initSegmentAlign(int* segment_width, int* segment_height);
|
||||
//return current time string format
|
||||
const char *getTimeFormat(time_t when) { return (when & 1) ? cl_format_str : cl_blink_str; }
|
||||
|
||||
///return pointer of font object
|
||||
inline Font** getClockFont();
|
||||
|
Reference in New Issue
Block a user