mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-12 16:03:42 +02:00
components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h - added extra methodes for simple use of some basic components extra.cpp/h - rework clock handling: use timer class, reworked members for enable/disable clock with external timer events, tryed to fix some display issues related with infoclock and time osd clock in moviebrowser, channellist, menuus - reworked hide/kill handling, removed parameter for hide(), try to use cached backgrounds for other constallations, paint cache, image cache (all beta) - reworked shadow/frame handling, add shadow modes for left/right arrangement, TODO: repaint for existant instances required - reworked color gradient assignment (beta) ... Note: I had a data crash in my local git tree and i tryed to restore my historie, but most was lost. Therefore here the commit is large
This commit is contained in:
@@ -92,7 +92,6 @@ class CVolumeBar : public CComponentsForm
|
||||
// ~CVolumeBar(); inherited from CComponentsForm
|
||||
|
||||
void repaintVolScale();
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
};
|
||||
|
||||
|
||||
@@ -106,13 +105,13 @@ class CVolumeHelper
|
||||
int icon_width, icon_height, digit_width;
|
||||
int h_spacer, v_spacer;
|
||||
int vol_ay, vol_height;
|
||||
Font** clock_font;
|
||||
Font* clock_font;
|
||||
CFrameBuffer *frameBuffer;
|
||||
|
||||
void Init(Font** font=NULL);
|
||||
void Init(Font* font=NULL);
|
||||
void initVolBarSize();
|
||||
void initMuteIcon();
|
||||
void initInfoClock(Font** font);
|
||||
void initInfoClock(Font* font);
|
||||
|
||||
public:
|
||||
|
||||
@@ -130,7 +129,7 @@ class CVolumeHelper
|
||||
void getTimeDimensions(int *_x, int *_y, int *w, int *h) { *_x = time_ax; *_y = clock_ay; *w = time_dx; *h = clock_dy; }
|
||||
void getVolBarDimensions(int *_y, int *_dy) { *_y = vol_ay; *_dy = vol_height; }
|
||||
void setMuteIconCorrY(int corr) { mute_corrY = corr; }
|
||||
void refresh(Font** font=NULL);
|
||||
void refresh(Font* font=NULL);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user