CComponentsForm: add functionality

Now it's possible to paint forms with defined caption and icon


Origin commit data
------------------
Branch: ni/coolstream
Commit: bc764b4653
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-09 (Sun, 09 Sep 2012)



------------------
This commit was generated by Migit
This commit is contained in:
2012-09-09 00:29:58 +02:00
parent db433d1463
commit dde5f006df
2 changed files with 71 additions and 17 deletions

View File

@@ -391,15 +391,21 @@ class CComponentsTitleBar : public CComponentsItemBox
class CComponentsForm : public CComponentsContainer
{
private:
CComponentsTitleBar tb;
CComponentsTitleBar *tb;
std::string tb_text, tb_icon;
void initVarForm();
void paintHead();
public:
CComponentsForm();
~CComponentsForm();
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
void hide(bool no_restore = false);
void setCaption(const std::string& text);
void setCaption(neutrino_locale_t locale_text);
void setIcon(const std::string& icon_name){tb_icon = icon_name;};
};
#endif