mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsHeader: cleanup
-remove variable userHeight, is not used
-change name of parameter in member initCaptionFont(), "font_name" is not a
suitable name for a type object.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1838a71c20
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -89,8 +89,8 @@ class CComponentsHeader : public CComponentsForm
|
||||
///property: alignment of caption within header, see also setCaptionAlignment(), possible values are CTextBox::CENTER, default = CTextBox::NO_AUTO_LINEBREAK (left)
|
||||
int cch_caption_align;
|
||||
|
||||
bool userHeight;
|
||||
|
||||
///init font object and recalculates height if required
|
||||
void initCaptionFont(Font* font = NULL);
|
||||
///sub: init icon object
|
||||
void initIcon();
|
||||
///sub: init caption object
|
||||
@@ -130,7 +130,7 @@ class CComponentsHeader : public CComponentsForm
|
||||
///set alignment of caption within header, possible paramters are CTextBox::CENTER, CTextBox::NO_AUTO_LINEBREAK
|
||||
virtual void setCaptionAlignment(const int& align_mode){cch_caption_align = align_mode;};
|
||||
///set text font object for caption
|
||||
virtual void setCaptionFont(Font* font_name);
|
||||
virtual void setCaptionFont(Font* font);
|
||||
///set text color for caption
|
||||
virtual void setCaptionColor(fb_pixel_t text_color){cch_col_text = text_color;};
|
||||
|
||||
@@ -165,7 +165,7 @@ class CComponentsHeader : public CComponentsForm
|
||||
CC_HEADER_SIZE_SMALL = 1
|
||||
};
|
||||
///set size of header, possible values are CC_HEADER_SIZE_LARGE, CC_HEADER_SIZE_SMALL
|
||||
virtual void setSizeMode(const int& size_mode){cch_size_mode = size_mode;};
|
||||
virtual void setSizeMode(const int& size_mode){cch_size_mode = size_mode; initCCItems();};
|
||||
|
||||
///init all items within header object
|
||||
virtual void initCCItems();
|
||||
|
Reference in New Issue
Block a user