mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
CComponentsWindow: add sub class CComponentsWindow
Origin commit data
------------------
Commit: fa9ffdd46e
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user