gui/components/cc_base.cpp: add flag to control CTextBox screen saving, default is false

Origin commit data
------------------
Branch: ni/coolstream
Commit: ab1b3b9008
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-03-06 (Fri, 06 Mar 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-03-06 13:21:04 +03:00
parent 91c630e1fc
commit e8e5651b0c
2 changed files with 4 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ CComponents::CComponents() : COSDFader(g_settings.theme.menu_Content_alpha)
firstPaint = true; firstPaint = true;
is_painted = false; is_painted = false;
paint_bg = true; paint_bg = true;
save_tbox_screen = false;
cc_allow_paint = true; cc_allow_paint = true;
frameBuffer = CFrameBuffer::getInstance(); frameBuffer = CFrameBuffer::getInstance();
v_fbdata.clear(); v_fbdata.clear();

View File

@@ -114,6 +114,7 @@ class CComponents : public CComponentsSignals, public COSDFader
bool is_painted; bool is_painted;
///mode: true=activate rendering of basic elements (frame, shadow and body) ///mode: true=activate rendering of basic elements (frame, shadow and body)
bool paint_bg; bool paint_bg;
bool save_tbox_screen;
///mode: true=allows painting of item, see also allowPaint() ///mode: true=allows painting of item, see also allowPaint()
bool cc_allow_paint; bool cc_allow_paint;
@@ -245,6 +246,8 @@ class CComponents : public CComponentsSignals, public COSDFader
virtual bool isPainted(){return is_painted;} virtual bool isPainted(){return is_painted;}
///allows paint of elementary item parts (shadow, frame and body), similar as background, set it usually to false, if item used in a form ///allows paint of elementary item parts (shadow, frame and body), similar as background, set it usually to false, if item used in a form
virtual void doPaintBg(bool do_paint){paint_bg = do_paint;}; virtual void doPaintBg(bool do_paint){paint_bg = do_paint;};
// enable/disable CTextBox screen saving on paint
virtual void enableTboxSaveScreen(bool enable){ save_tbox_screen = enable; };
///allow/disalows paint of item and its contents, but initialize of other properties are not touched ///allow/disalows paint of item and its contents, but initialize of other properties are not touched
///this can be understood as a counterpart to isPainted(), but before paint and value of is_painted is modified temporarily till next paint of item //TODO: is this sufficiently? ///this can be understood as a counterpart to isPainted(), but before paint and value of is_painted is modified temporarily till next paint of item //TODO: is this sufficiently?