|
|
@@ -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;
|
|
|
|