CComponentsWindow: add sub class CComponentsWindow

Origin commit data
------------------
Branch: ni/coolstream
Commit: fa9ffdd46e
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2012-11-30 22:53:55 +01:00
parent 548275165e
commit 37e41b539e
4 changed files with 116 additions and 5 deletions

View File

@@ -547,4 +547,31 @@ class CComponentsHeader : public CComponentsForm
void removeHeaderButtons();
};
class CComponentsWindow : public CComponentsForm
{
private:
CComponentsHeader * ccw_head;
std::string ccw_caption;
const char* ccw_icon_name;
void initHeader();
void initCCWItems();
protected:
void initVarWindow();
public:
enum
{
CC_WINDOW_ITEM_HEADER = 0
};
CComponentsWindow();
~CComponentsWindow();
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
void refresh(){initCCWItems();};
void setWindowCaption(const std::string& text){ccw_caption = text;};
void setWindowIcon(const char* iconname){ccw_icon_name = iconname;};
};
#endif