mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
Merge branch 'master' into pu/fb-setmode
Origin commit data
------------------
Commit: c0cc7ef192
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-21 (Sun, 21 May 2017)
This commit is contained in:
@@ -534,7 +534,7 @@
|
|||||||
<transponder frequency="594000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
<transponder frequency="594000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
||||||
<transponder frequency="602000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
<transponder frequency="602000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
||||||
<transponder frequency="610000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
<transponder frequency="610000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
||||||
<transponder frequency="618000" symbol_rate="6900000" fec_inner="0" modulation="3"/>
|
<transponder frequency="618000" symbol_rate="6111000" fec_inner="0" modulation="3"/>
|
||||||
<transponder frequency="626000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
<transponder frequency="626000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
||||||
<transponder frequency="634000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
<transponder frequency="634000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
||||||
<transponder frequency="642000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
<transponder frequency="642000" symbol_rate="6900000" fec_inner="0" modulation="5"/>
|
||||||
|
@@ -157,7 +157,7 @@ class CComponentsForm : public CComponentsItem
|
|||||||
///select a definied item, parameter1 as size_t
|
///select a definied item, parameter1 as size_t
|
||||||
virtual void setSelectedItem( int item_id,
|
virtual void setSelectedItem( int item_id,
|
||||||
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
||||||
const fb_pixel_t& frame_col = COL_SHADOW_PLUS_0,
|
const fb_pixel_t& frame_col = COL_FRAME_PLUS_0,
|
||||||
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
||||||
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
||||||
const int& frame_w = 3,
|
const int& frame_w = 3,
|
||||||
@@ -165,7 +165,7 @@ class CComponentsForm : public CComponentsItem
|
|||||||
///select a definied item, parameter1 as CComponentsItem*
|
///select a definied item, parameter1 as CComponentsItem*
|
||||||
virtual void setSelectedItem( CComponentsItem* cc_item,
|
virtual void setSelectedItem( CComponentsItem* cc_item,
|
||||||
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
||||||
const fb_pixel_t& frame_col = COL_SHADOW_PLUS_0,
|
const fb_pixel_t& frame_col = COL_FRAME_PLUS_0,
|
||||||
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
||||||
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
||||||
const int& frame_w = 3,
|
const int& frame_w = 3,
|
||||||
|
@@ -106,7 +106,7 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
|
|||||||
cc_body_gradient_enable = CC_COLGRAD_OFF/*g_settings.gradiant*/; //TODO: gradient is prepared for use but disabled at the moment till some other parts of gui parts are provide gradient
|
cc_body_gradient_enable = CC_COLGRAD_OFF/*g_settings.gradiant*/; //TODO: gradient is prepared for use but disabled at the moment till some other parts of gui parts are provide gradient
|
||||||
setColBodyGradient(cc_body_gradient_enable/*CColorGradient::gradientLight2Dark*/, CFrameBuffer::gradientVertical, CColorGradient::light);
|
setColBodyGradient(cc_body_gradient_enable/*CColorGradient::gradientLight2Dark*/, CFrameBuffer::gradientVertical, CColorGradient::light);
|
||||||
col_frame = color_frame;
|
col_frame = color_frame;
|
||||||
col_body = cc_body_gradient_enable? COL_DARK_GRAY : color_body;
|
col_body = col_body_old = cc_body_gradient_enable? COL_DARK_GRAY : color_body;
|
||||||
col_shadow = color_shadow;
|
col_shadow = color_shadow;
|
||||||
|
|
||||||
cc_item_enabled = enabled;
|
cc_item_enabled = enabled;
|
||||||
|
@@ -103,7 +103,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
|
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);
|
||||||
|
|
||||||
CComponentsButton( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
CComponentsButton( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
||||||
const neutrino_locale_t& caption_locale,
|
const neutrino_locale_t& caption_locale,
|
||||||
@@ -112,7 +112,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
|
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);
|
||||||
|
|
||||||
CComponentsButton( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
CComponentsButton( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
||||||
const neutrino_locale_t& caption_locale,
|
const neutrino_locale_t& caption_locale,
|
||||||
@@ -121,7 +121,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
|
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);
|
||||||
|
|
||||||
CComponentsButton( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
CComponentsButton( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
||||||
const std::string& caption,
|
const std::string& caption,
|
||||||
@@ -130,7 +130,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
|
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);
|
||||||
|
|
||||||
///set text color
|
///set text color
|
||||||
void setButtonTextColor(fb_pixel_t caption_color){cc_btn_text_col = caption_color;};
|
void setButtonTextColor(fb_pixel_t caption_color){cc_btn_text_col = caption_color;};
|
||||||
@@ -246,7 +246,7 @@ class CComponentsButtonRed : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_RED, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_RED, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_RED;
|
cc_item_type = CC_ITEMTYPE_BUTTON_RED;
|
||||||
@@ -257,7 +257,7 @@ class CComponentsButtonRed : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_RED, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_RED, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_RED;
|
cc_item_type = CC_ITEMTYPE_BUTTON_RED;
|
||||||
@@ -277,7 +277,7 @@ class CComponentsButtonGreen : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_GREEN, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_GREEN, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_GREEN;
|
cc_item_type = CC_ITEMTYPE_BUTTON_GREEN;
|
||||||
@@ -289,7 +289,7 @@ class CComponentsButtonGreen : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_GREEN, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_GREEN, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_GREEN;
|
cc_item_type = CC_ITEMTYPE_BUTTON_GREEN;
|
||||||
@@ -309,7 +309,7 @@ class CComponentsButtonYellow : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_YELLOW, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_YELLOW, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_YELLOW;
|
cc_item_type = CC_ITEMTYPE_BUTTON_YELLOW;
|
||||||
@@ -320,7 +320,7 @@ class CComponentsButtonYellow : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_YELLOW, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_YELLOW, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_YELLOW;
|
cc_item_type = CC_ITEMTYPE_BUTTON_YELLOW;
|
||||||
@@ -340,7 +340,7 @@ class CComponentsButtonBlue : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_BLUE, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption, NEUTRINO_ICON_BUTTON_BLUE, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_BLUE;
|
cc_item_type = CC_ITEMTYPE_BUTTON_BLUE;
|
||||||
@@ -351,7 +351,7 @@ class CComponentsButtonBlue : public CComponentsButton
|
|||||||
bool selected = false,
|
bool selected = false,
|
||||||
bool enabled = true,
|
bool enabled = true,
|
||||||
int shadow_mode = CC_SHADOW_OFF,
|
int shadow_mode = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_SHADOW_PLUS_0, fb_pixel_t color_body = COL_BUTTON_BODY, fb_pixel_t color_shadow = COL_SHADOW_PLUS_0)
|
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)
|
||||||
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_BLUE, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
:CComponentsButton(x_pos, y_pos, w, h, caption_locale, NEUTRINO_ICON_BUTTON_BLUE, parent, selected, enabled, shadow_mode, color_frame, color_body, color_shadow)
|
||||||
{
|
{
|
||||||
cc_item_type = CC_ITEMTYPE_BUTTON_BLUE;
|
cc_item_type = CC_ITEMTYPE_BUTTON_BLUE;
|
||||||
|
@@ -110,7 +110,7 @@ class CComponentsItem : public CComponents
|
|||||||
///set select mode
|
///set select mode
|
||||||
virtual void setSelected(bool selected,
|
virtual void setSelected(bool selected,
|
||||||
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
||||||
const fb_pixel_t& frame_col = COL_SHADOW_PLUS_0,
|
const fb_pixel_t& frame_col = COL_FRAME_PLUS_0,
|
||||||
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
||||||
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
||||||
const int& frame_w = 3,
|
const int& frame_w = 3,
|
||||||
|
@@ -208,10 +208,11 @@ int CLuaInstCCText::CCTextSetText(lua_State *L)
|
|||||||
std::string text = "";
|
std::string text = "";
|
||||||
lua_Integer mode = D->mode;
|
lua_Integer mode = D->mode;
|
||||||
lua_Integer font_text = D->font_text;
|
lua_Integer font_text = D->font_text;
|
||||||
tableLookup(L, "text", text);
|
if (lua_istable(L, -1)){
|
||||||
tableLookup(L, "mode", mode);
|
tableLookup(L, "text", text);
|
||||||
tableLookup(L, "font_text", font_text);
|
tableLookup(L, "mode", mode);
|
||||||
|
tableLookup(L, "font_text", font_text);
|
||||||
|
}
|
||||||
D->ct->setText(text, mode, g_Font[font_text]);
|
D->ct->setText(text, mode, g_Font[font_text]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -103,8 +103,8 @@ int paintButtons( const button_label_ext * const content,
|
|||||||
int w_footer = footerwidth;
|
int w_footer = footerwidth;
|
||||||
int h_footer = 0;
|
int h_footer = 0;
|
||||||
|
|
||||||
int w_space = 10; //minimal space between buttons
|
int w_space = OFFSET_INNER_MID; //minimal space between buttons
|
||||||
int h_space = 4; //minimal space between caption and/or icon and border
|
int h_space = OFFSET_INNER_SMALL; //minimal space between caption and/or icon and border
|
||||||
int x_icon = x_footer + w_space;
|
int x_icon = x_footer + w_space;
|
||||||
int x_caption = 0;
|
int x_caption = 0;
|
||||||
|
|
||||||
@@ -312,8 +312,8 @@ int paintButtons( const int &x,
|
|||||||
int w_footer = footerwidth;
|
int w_footer = footerwidth;
|
||||||
int h_footer = 0;
|
int h_footer = 0;
|
||||||
|
|
||||||
int w_space = 10; //minimal space between buttons
|
int w_space = OFFSET_INNER_MID; //minimal space between buttons
|
||||||
int h_space = 4; //minimal space between caption and/or icon and border
|
int h_space = OFFSET_INNER_SMALL; //minimal space between caption and/or icon and border
|
||||||
int x_icon = x_footer + w_space;
|
int x_icon = x_footer + w_space;
|
||||||
int x_caption = 0;
|
int x_caption = 0;
|
||||||
|
|
||||||
|
@@ -162,6 +162,8 @@ void CHintBox::init(const std::string& Text, const int& Width, const std::string
|
|||||||
|
|
||||||
if (!Text.empty())
|
if (!Text.empty())
|
||||||
addHintItem(Text, text_mode, Picon, COL_MENUCONTENT_TEXT, hb_font);
|
addHintItem(Text, text_mode, Picon, COL_MENUCONTENT_TEXT, hb_font);
|
||||||
|
else
|
||||||
|
ReSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
CHintBox::~CHintBox()
|
CHintBox::~CHintBox()
|
||||||
@@ -186,6 +188,7 @@ void CHintBox::enableTimeOutBar(bool enable)
|
|||||||
timeout_pb->setValues(timeout_pb->getValue()+1, 100*timeout);
|
timeout_pb->setValues(timeout_pb->getValue()+1, 100*timeout);
|
||||||
}else{
|
}else{
|
||||||
timeout_pb = new CProgressBar();
|
timeout_pb = new CProgressBar();
|
||||||
|
timeout_pb->setType(CProgressBar::PB_TIMESCALE);
|
||||||
timeout_pb->setDimensionsAll(ccw_body->getRealXPos(), ccw_body->getRealYPos(), ccw_body->getWidth(), TIMEOUT_BAR_HEIGHT);
|
timeout_pb->setDimensionsAll(ccw_body->getRealXPos(), ccw_body->getRealYPos(), ccw_body->getWidth(), TIMEOUT_BAR_HEIGHT);
|
||||||
timeout_pb->setValues(0, 100*timeout);
|
timeout_pb->setValues(0, 100*timeout);
|
||||||
if (!timeout_pb_timer) {
|
if (!timeout_pb_timer) {
|
||||||
@@ -312,13 +315,8 @@ void CHintBox::addHintItem(const std::string& Text, const int& text_mode, const
|
|||||||
info_box->setPicture(Picon);
|
info_box->setPicture(Picon);
|
||||||
info_box->doPaintBg(false);
|
info_box->doPaintBg(false);
|
||||||
|
|
||||||
/* recalculate new hintbox height */
|
/* recalculate new hintbox dimensions and position*/
|
||||||
ReSize();
|
ReSize();
|
||||||
|
|
||||||
/* set hint box position general to center and refresh window */
|
|
||||||
setCenterPos(CC_ALONG_X);
|
|
||||||
y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight() - height) >> 2),
|
|
||||||
Refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CHintBox::setMsgText(const std::string& Text, const uint& hint_id, const int& mode, Font* font_text, const fb_pixel_t& color_text, const int& style)
|
void CHintBox::setMsgText(const std::string& Text, const uint& hint_id, const int& mode, Font* font_text, const fb_pixel_t& color_text, const int& style)
|
||||||
@@ -350,6 +348,10 @@ void CHintBox::ReSize()
|
|||||||
h += item->getHeight();
|
h += item->getHeight();
|
||||||
}
|
}
|
||||||
height = min(HINTBOX_MAX_HEIGHT, max(HINTBOX_MIN_HEIGHT, max(height,h)));
|
height = min(HINTBOX_MAX_HEIGHT, max(HINTBOX_MIN_HEIGHT, max(height,h)));
|
||||||
|
|
||||||
|
/* set hint box position general to center and refresh window */
|
||||||
|
setCenterPos(CC_ALONG_X);
|
||||||
|
y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight() - height) >> 2),
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -335,7 +335,7 @@ int CMsgBox::exec()
|
|||||||
|
|
||||||
void CMsgBox::refreshFoot(void)
|
void CMsgBox::refreshFoot(void)
|
||||||
{
|
{
|
||||||
ccw_footer->paint(false);
|
ccw_footer->getButtonChainObject()->paint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user