cc-classes: add missing virtual destructors

Origin commit data
------------------
Commit: 2b5e1e1acc
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
This commit is contained in:
2019-10-27 22:56:49 +01:00
committed by vanhofen
parent c2d866be90
commit 1e51ce8681
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

@@ -82,6 +82,8 @@ class CComponentsFooter : public CComponentsHeader, public CCButtonSelect
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);
///add button labels with string label type as content, parameter 1 as vector, chain_width as int, label width as int

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

View File

@@ -341,6 +341,8 @@ class CHint : public CHintBox
* @li optional: expects type bool, enable/disable backround paint, default = true
*/
CHint(const neutrino_locale_t Text, bool show_background = true);
virtual ~CHint(){};
};
/**

View File

@@ -226,7 +226,7 @@ class CMsgBox : public CHintBox
const msg_result_t& Default_result = mbrNone,
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE);
// ~CMsgBox(); //inherited
virtual ~CMsgBox(){};
/**
* exec caller
* @return int