mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CComponentsText: declare function getTextFromFile() as static
Is usable as standalone member too.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 884e3b7cb5
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-14 (Tue, 14 Apr 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -146,7 +146,7 @@ class CComponentsText : public CComponentsItem, public CBox
|
|||||||
///set text directly from a textfile, path as string is required
|
///set text directly from a textfile, path as string is required
|
||||||
virtual bool setTextFromFile(const std::string& path_to_textfile, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL, const fb_pixel_t& color_text = 0, const int& style = FONT_STYLE_REGULAR);
|
virtual bool setTextFromFile(const std::string& path_to_textfile, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL, const fb_pixel_t& color_text = 0, const int& style = FONT_STYLE_REGULAR);
|
||||||
///get text directly from a textfile, path as string is required
|
///get text directly from a textfile, path as string is required
|
||||||
virtual std::string getTextFromFile(const std::string& path_to_textfile);
|
static std::string getTextFromFile(const std::string& path_to_textfile);
|
||||||
///returns current text content of text/label object as std::string
|
///returns current text content of text/label object as std::string
|
||||||
virtual std::string getText(){return ct_text;};
|
virtual std::string getText(){return ct_text;};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user