CComponentsWindow: add sub class CComponentsWindow

This commit is contained in:
2012-11-30 22:53:55 +01:00
parent 7ac1550277
commit fa9ffdd46e
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