mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
components: remove initVarBasic and initVarItem calls from derived classes
This commit is contained in:
@@ -69,9 +69,6 @@ CComponentsDetailLine::CComponentsDetailLine(const int x_pos, const int y_pos_to
|
|||||||
|
|
||||||
void CComponentsDetailLine::initVarDline()
|
void CComponentsDetailLine::initVarDline()
|
||||||
{
|
{
|
||||||
//CComponents
|
|
||||||
initVarBasic();
|
|
||||||
|
|
||||||
shadow_w = 1;
|
shadow_w = 1;
|
||||||
|
|
||||||
//CComponentsDetailLine
|
//CComponentsDetailLine
|
||||||
|
@@ -105,8 +105,6 @@ void CComponentsForm::clearCCItems()
|
|||||||
|
|
||||||
void CComponentsForm::initVarForm()
|
void CComponentsForm::initVarForm()
|
||||||
{
|
{
|
||||||
//CComponentsItem
|
|
||||||
initVarItem();
|
|
||||||
|
|
||||||
|
|
||||||
//simple default dimensions
|
//simple default dimensions
|
||||||
|
@@ -52,7 +52,6 @@ CComponentsItem::CComponentsItem()
|
|||||||
void CComponentsItem::initVarItem()
|
void CComponentsItem::initVarItem()
|
||||||
{
|
{
|
||||||
//CComponents
|
//CComponents
|
||||||
initVarBasic();
|
|
||||||
cc_item_index = CC_NO_INDEX;
|
cc_item_index = CC_NO_INDEX;
|
||||||
cc_item_enabled = true;
|
cc_item_enabled = true;
|
||||||
cc_item_selected = false;
|
cc_item_selected = false;
|
||||||
|
@@ -57,7 +57,6 @@ void CComponentsPicture::init( int x_pos, int y_pos, const string& image_name, c
|
|||||||
fb_pixel_t color_frame, fb_pixel_t color_background, fb_pixel_t color_shadow)
|
fb_pixel_t color_frame, fb_pixel_t color_background, fb_pixel_t color_shadow)
|
||||||
{
|
{
|
||||||
//CComponents, CComponentsItem
|
//CComponents, CComponentsItem
|
||||||
initVarItem();
|
|
||||||
cc_item_type = CC_ITEMTYPE_PICTURE;
|
cc_item_type = CC_ITEMTYPE_PICTURE;
|
||||||
|
|
||||||
//CComponentsPicture
|
//CComponentsPicture
|
||||||
|
@@ -38,7 +38,6 @@ using namespace std;
|
|||||||
CComponentsShapeSquare::CComponentsShapeSquare(const int x_pos, const int y_pos, const int w, const int h, bool has_shadow, fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
|
CComponentsShapeSquare::CComponentsShapeSquare(const int x_pos, const int y_pos, const int w, const int h, bool has_shadow, fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
|
||||||
{
|
{
|
||||||
//CComponentsItem
|
//CComponentsItem
|
||||||
initVarItem();
|
|
||||||
cc_item_type = CC_ITEMTYPE_SHAPE_SQUARE;
|
cc_item_type = CC_ITEMTYPE_SHAPE_SQUARE;
|
||||||
|
|
||||||
x = x_pos;
|
x = x_pos;
|
||||||
@@ -64,7 +63,6 @@ CComponentsShapeCircle::CComponentsShapeCircle( int x_pos, int y_pos, int diam,
|
|||||||
fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
|
fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
|
||||||
{
|
{
|
||||||
//CComponents, CComponentsItem
|
//CComponents, CComponentsItem
|
||||||
initVarItem();
|
|
||||||
cc_item_type = CC_ITEMTYPE_SHAPE_CIRCLE;
|
cc_item_type = CC_ITEMTYPE_SHAPE_CIRCLE;
|
||||||
|
|
||||||
//CComponents
|
//CComponents
|
||||||
|
@@ -87,7 +87,6 @@ CComponentsText::~CComponentsText()
|
|||||||
void CComponentsText::initVarText()
|
void CComponentsText::initVarText()
|
||||||
{
|
{
|
||||||
//CComponents, CComponentsItem
|
//CComponents, CComponentsItem
|
||||||
initVarItem();
|
|
||||||
cc_item_type = CC_ITEMTYPE_TEXT;
|
cc_item_type = CC_ITEMTYPE_TEXT;
|
||||||
|
|
||||||
//CComponentsText
|
//CComponentsText
|
||||||
|
@@ -43,7 +43,6 @@ using namespace std;
|
|||||||
CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int percent, bool has_shadow)
|
CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int percent, bool has_shadow)
|
||||||
{
|
{
|
||||||
//CComponents, CComponentsItem
|
//CComponents, CComponentsItem
|
||||||
initVarItem();
|
|
||||||
cc_item_type = CC_ITEMTYPE_PIP;
|
cc_item_type = CC_ITEMTYPE_PIP;
|
||||||
|
|
||||||
//CComponentsPIP
|
//CComponentsPIP
|
||||||
|
Reference in New Issue
Block a user