cc-classes: add missing virtual destructors

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 3e58485066
commit 83dfe855b0
7 changed files with 12 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ class CCButtonSelect
public:
CCButtonSelect();
virtual ~CCButtonSelect(){};
///returns selected button object, return value as pointer to object, NULL means nothing is selected
CComponentsButton* getSelectedButtonObject();

View File

@@ -132,6 +132,8 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
int shadow_mode = CC_SHADOW_OFF,
fb_pixel_t color_frame = COL_FRAME_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
virtual ~CComponentsButton(){};
///set text color
void setButtonTextColor(fb_pixel_t caption_color){cc_btn_text_col = caption_color;};

View File

@@ -74,7 +74,8 @@ class CComponentsFrmChain : public CComponentsForm
fb_pixel_t& color_frame = COL_FRAME_PLUS_0,
fb_pixel_t& color_body = COL_MENUHEAD_PLUS_0,
fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0);
// ~CComponentsFrmChain(); //inherited from CComponentsForm
virtual ~CComponentsFrmChain(){};
///defines mode for arrangement direction of items, see also chn_direction
virtual void setDirection(int direction);

View File

@@ -81,6 +81,8 @@ class CComponentsFooter : public CComponentsHeader, public CCButtonSelect
fb_pixel_t color_body = COL_MENUFOOT_PLUS_0,
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0,
int sizeMode = CC_HEADER_SIZE_LARGE);
virtual ~CComponentsFooter(){};
///add button labels with string label type as content, count as size_t, chain_width as int, label width as int
void setButtonLabels(const struct button_label_cc * const content, const size_t& label_count, const int& chain_width = 0, const int& label_width = 0);

View File

@@ -204,6 +204,8 @@ class CComponentsWindow : public CComponentsForm, CCHeaderTypes
fb_pixel_t color_body = COL_MENUCONTENT_PLUS_0,
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
virtual ~CComponentsWindow(){};
/**
* Add an item to body object, also usable is addCCItem() to add items to the window object
* @param[in] cc_Item