CComponentsForm: add functionality

Now it's possible to paint forms with defined caption and icon
This commit is contained in:
2012-09-09 00:29:58 +02:00
parent 7bbf0375e1
commit bc764b4653
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