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:
2015-04-14 11:30:15 +02:00
committed by vanhofen
parent e66e0b381b
commit a9a8d29f62

View File

@@ -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;};