mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
CComponentsDetailLine: cleanup constructors
Remove single constructor, usage of default parameters in main constructor
have same effect.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2803bf6f81
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-24 (Tue, 24 Dec 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -35,26 +35,17 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
//sub class CComponentsDetailLine from CComponents
|
//sub class CComponentsDetailLine from CComponents
|
||||||
CComponentsDetailLine::CComponentsDetailLine()
|
CComponentsDetailLine::CComponentsDetailLine( const int& x_pos, const int& y_pos_top,
|
||||||
|
const int& y_pos_down, const int& h_mark_top_, const int& h_mark_down_,
|
||||||
|
fb_pixel_t color_line, fb_pixel_t color_shadow)
|
||||||
{
|
{
|
||||||
initVarDline();
|
initVarDline(x_pos, y_pos_top, y_pos_down, h_mark_top_, h_mark_down_, color_line, color_shadow);
|
||||||
|
|
||||||
//CComponents
|
|
||||||
x = 0;
|
|
||||||
y = 0;
|
|
||||||
col_shadow = COL_MENUCONTENTDARK_PLUS_0;
|
|
||||||
col_body = COL_MENUCONTENT_PLUS_6;
|
|
||||||
|
|
||||||
//CComponentsDetailLine
|
|
||||||
y_down = 0;
|
|
||||||
h_mark_top = CC_HEIGHT_MIN;
|
|
||||||
h_mark_down = CC_HEIGHT_MIN;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CComponentsDetailLine::CComponentsDetailLine(const int x_pos, const int y_pos_top, const int y_pos_down, const int h_mark_top_, const int h_mark_down_, fb_pixel_t color_line, fb_pixel_t color_shadow)
|
void CComponentsDetailLine::initVarDline( const int& x_pos, const int& y_pos_top,
|
||||||
|
const int& y_pos_down, const int& h_mark_top_, const int& h_mark_down_,
|
||||||
|
fb_pixel_t color_line, fb_pixel_t color_shadow)
|
||||||
{
|
{
|
||||||
initVarDline();
|
|
||||||
|
|
||||||
//CComponents
|
//CComponents
|
||||||
x = x_pos;
|
x = x_pos;
|
||||||
y = y_pos_top;
|
y = y_pos_top;
|
||||||
@@ -65,10 +56,7 @@ CComponentsDetailLine::CComponentsDetailLine(const int x_pos, const int y_pos_to
|
|||||||
y_down = y_pos_down;
|
y_down = y_pos_down;
|
||||||
h_mark_top = h_mark_top_;
|
h_mark_top = h_mark_top_;
|
||||||
h_mark_down = h_mark_down_;
|
h_mark_down = h_mark_down_;
|
||||||
}
|
|
||||||
|
|
||||||
void CComponentsDetailLine::initVarDline()
|
|
||||||
{
|
|
||||||
shadow_w = 1;
|
shadow_w = 1;
|
||||||
|
|
||||||
//CComponentsDetailLine
|
//CComponentsDetailLine
|
||||||
|
@@ -50,12 +50,13 @@ class CComponentsDetailLine : public CComponents
|
|||||||
int h_mark_down;
|
int h_mark_down;
|
||||||
|
|
||||||
///initialize all internal attributes
|
///initialize all internal attributes
|
||||||
void initVarDline();
|
void initVarDline( const int& x_pos, const int& y_pos_top, const int& y_pos_down,
|
||||||
|
const int& h_mark_top_, const int& h_mark_down_,
|
||||||
|
fb_pixel_t color_line, fb_pixel_t color_shadow);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CComponentsDetailLine();
|
CComponentsDetailLine( const int& x_pos = 1,const int& y_pos_top = 1, const int& y_pos_down = 1,
|
||||||
CComponentsDetailLine( const int x_pos,const int y_pos_top, const int y_pos_down,
|
const int& h_mark_top_ = CC_HEIGHT_MIN , const int& h_mark_down_ = CC_HEIGHT_MIN,
|
||||||
const int h_mark_up = CC_HEIGHT_MIN , const int h_mark_down = CC_HEIGHT_MIN,
|
|
||||||
fb_pixel_t color_line = COL_MENUCONTENT_PLUS_6, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
|
fb_pixel_t color_line = COL_MENUCONTENT_PLUS_6, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
|
||||||
~CComponentsDetailLine();
|
~CComponentsDetailLine();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user