mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
text screen save: try to rework screen save behavior for textbox objects
Screen save now always disabled by default and can be controlled
outside of relevant objects.
Origin commit data
------------------
Commit: 9d72b086a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-21 (Thu, 21 Jan 2016)
This commit is contained in:
@@ -110,6 +110,24 @@ class CComponentsExtTextForm : public CComponentsForm, public CCTextScreen
|
||||
///returns a pointer to the internal text object, use this to get access to its most properties
|
||||
CComponentsText*getTextObject(){return ccx_text_obj;};
|
||||
|
||||
/**Member to modify background behavior of embeded label and text objects
|
||||
* @param[in] mode
|
||||
* @li bool, default = true
|
||||
* @return
|
||||
* void
|
||||
* @see
|
||||
* Parent member: CCTextScreen::enableTboxSaveScreen()
|
||||
* CTextBox::enableSaveScreen()
|
||||
* disableTboxSaveScreen()
|
||||
*/
|
||||
void enableTboxSaveScreen(bool mode){
|
||||
if (cc_txt_save_screen == mode)
|
||||
return;
|
||||
cc_txt_save_screen = mode;
|
||||
for(size_t i=0; i<v_cc_items.size(); i++)
|
||||
static_cast<CComponentsText*>(v_cc_items[i])->enableTboxSaveScreen(cc_txt_save_screen);
|
||||
};
|
||||
|
||||
///sets the text modes (mainly text alignment) to the label and text object, see /gui/widget/textbox.h for possible modes
|
||||
void setTextModes(const int& label_mode, const int& text_mode);
|
||||
|
||||
|
Reference in New Issue
Block a user