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


Origin commit data
------------------
Commit: 0146511f38
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)

Origin message was:
------------------
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 d5ce36ab27
commit 72a289a90c
68 changed files with 3207 additions and 1682 deletions

View File

@@ -5,7 +5,7 @@
audioMute - Neutrino-GUI
Copyright (C) 2013 M. Liebmann (micha-bbg)
CComponents implementation
Copyright (C) 2013 Thilo Graf
Copyright (C) 2013-2015 Thilo Graf
License: GPL
@@ -71,14 +71,21 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
if (do_paint_mute_icon)
{
frameBuffer->fbNoCheck(true);
this->hide(true);
this->hide();
frameBuffer->fbNoCheck(false);
}
frameBuffer->setFbArea(CFrameBuffer::FB_PAINTAREA_MUTEICON1);
y_old = y;
}
if ((g_settings.mode_clock) && (doInit))
/* Infoclock should be blocked in all windows and clean the clock
* display with ClearDisplay() by itself before paint,
* so we don't do this here.
*/
if (!CInfoClock::getInstance()->isBlocked()){
CInfoClock::getInstance()->ClearDisplay();
CInfoClock::getInstance()->paint();//avoids delay
}
frameBuffer->fbNoCheck(true);
if (newValue) {
@@ -87,8 +94,13 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
frameBuffer->setFbArea(CFrameBuffer::FB_PAINTAREA_MUTEICON1, x, y, width, height);
}
else {
if (do_paint_mute_icon)
this->hide(true);
if (!CInfoClock::getInstance()->isBlocked()){
CInfoClock::getInstance()->ClearDisplay();
this->kill();
clearSavedScreen();
CInfoClock::getInstance()->paint();//avoids delay
}else
this->hide();
frameBuffer->setFbArea(CFrameBuffer::FB_PAINTAREA_MUTEICON1);
}
frameBuffer->fbNoCheck(false);
@@ -107,8 +119,8 @@ void CAudioMute::enableMuteIcon(bool enable)
this->paint();
}
else {
if (neutrino->isMuted())
this->hide(true);
if (!neutrino->isMuted())
this->kill();
frameBuffer->doPaintMuteIcon(false);
do_paint_mute_icon = false;
}