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:
2015-11-18 18:08:23 +01:00
parent a2171dad4a
commit 0146511f38
68 changed files with 3207 additions and 1682 deletions

View File

@@ -42,7 +42,7 @@ using namespace std;
//sub class CComponentsPIP from CComponentsItem
CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int percent,
CComponentsForm *parent,
bool has_shadow,
int shadow_mode,
fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
{
//CComponents, CComponentsItem
@@ -59,7 +59,7 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc
y = y_pos;
width = percent*screen_w/100;
height = percent*screen_h/100;
shadow = has_shadow;
shadow = shadow_mode;
shadow_w = SHADOW_OFFSET;
col_frame = color_frame;
col_body = color_body;
@@ -73,7 +73,7 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc
CComponentsPIP::~CComponentsPIP()
{
hide();
videoDecoder->Pig(-1, -1, -1, -1);
// videoDecoder->Pig(-1, -1, -1, -1);
}
void CComponentsPIP::paint(bool do_save_bg)
@@ -111,8 +111,8 @@ void CComponentsPIP::paint(bool do_save_bg)
}
void CComponentsPIP::hide(bool no_restore)
void CComponentsPIP::hide()
{
videoDecoder->Pig(-1, -1, -1, -1);
hideCCItem(no_restore);
CComponents::hide();
}