mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- cc_frm_header: remove CComponentsHeaderLocalized() subclass
use another constructor of CComponentsHeader() instead Signed-off-by: Thilo Graf <dbt@novatux.de> Good idea, this I had already in mind too.
This commit is contained in:
@@ -170,7 +170,17 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen, CCHeaderT
|
||||
CComponentsHeader(CComponentsForm *parent = NULL);
|
||||
CComponentsHeader( const int& x_pos, const int& y_pos, const int& w, const int& h = 0,
|
||||
const std::string& caption = std::string(),
|
||||
const std::string& = std::string(),
|
||||
const std::string& icon_name = std::string(),
|
||||
const int& buttons = 0,
|
||||
CComponentsForm *parent = NULL,
|
||||
int shadow_mode = CC_SHADOW_OFF,
|
||||
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);
|
||||
|
||||
CComponentsHeader( const int& x_pos, const int& y_pos, const int& w, const int& h = 0,
|
||||
neutrino_locale_t caption_locale = NONEXISTANT_LOCALE,
|
||||
const std::string& icon_name = std::string(),
|
||||
const int& buttons = 0,
|
||||
CComponentsForm *parent = NULL,
|
||||
int shadow_mode = CC_SHADOW_OFF,
|
||||
@@ -346,23 +356,4 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen, CCHeaderT
|
||||
CComponentsChannelLogoScalable* getChannelLogoObject(){return cch_logo_obj;}
|
||||
};
|
||||
|
||||
//! Sub class of CComponentsHeader.
|
||||
/*!
|
||||
CComponentsHeaderLocalized provides prepared items like icon, caption and context button icons, mostly for usage in menues or simple windows
|
||||
Caption is defined with locales.
|
||||
*/
|
||||
class CComponentsHeaderLocalized : public CComponentsHeader
|
||||
{
|
||||
public:
|
||||
CComponentsHeaderLocalized( const int& x_pos, const int& y_pos, const int& w, const int& h = 0,
|
||||
neutrino_locale_t caption_locale = NONEXISTANT_LOCALE,
|
||||
const std::string& = "",
|
||||
const int& buttons = 0,
|
||||
CComponentsForm *parent = NULL,
|
||||
int shadow_mode = CC_SHADOW_OFF,
|
||||
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);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user