mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
CComponentsText: add switch for utf8 disable/enable
Origin commit data
------------------
Branch: ni/coolstream
Commit: ccdaacb0a0
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-12 (Sun, 12 Jul 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -63,6 +63,8 @@ class CComponentsText : public CComponentsItem, public CBox
|
||||
///status: cached text string, mainly required to compare with current text
|
||||
std::string ct_old_text;
|
||||
|
||||
bool ct_utf8_encoded;
|
||||
|
||||
///status: current text string is sent to CTextBox object
|
||||
bool ct_text_sent;
|
||||
///property: send to CTextBox object enableBackgroundPaint(true)
|
||||
@@ -170,6 +172,9 @@ class CComponentsText : public CComponentsItem, public CBox
|
||||
if (ct_textbox)
|
||||
ct_textbox->enableSaveScreen(mode);
|
||||
}
|
||||
///enable/disable utf8 encoding
|
||||
void enableUTF8(bool enable = true){ct_utf8_encoded = enable;}
|
||||
void disableUTF8(bool enable = false){enableUTF8(enable);}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user