mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user