mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CHintBox/CMsgBox: use frames as default for better highlighting
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#define W_FRAME OFFSET_INNER_MID
|
||||
//frame color around hint/message box
|
||||
#define HINTBOX_DEFAULT_FRAME_COLOR COL_FRAME
|
||||
#define HINTBOX_DEFAULT_FRAME_WIDTH OFFSET_INNER_SMALL
|
||||
#define TIMEOUT_BAR_HEIGHT OFFSET_SHADOW/2
|
||||
|
||||
#define DEFAULT_HINTBOX_TEXT_MODE (CTextBox::CENTER)
|
||||
@@ -82,7 +83,11 @@ class CHintBox : public CComponentsWindow
|
||||
const std::string& Picon,
|
||||
const int& header_buttons,
|
||||
const int& text_mode,
|
||||
const int& indent);
|
||||
const int& indent,
|
||||
const fb_pixel_t& color_frame,
|
||||
const fb_pixel_t& color_body,
|
||||
const fb_pixel_t& color_shadow,
|
||||
const int& frame_width);
|
||||
|
||||
virtual void ReSize();
|
||||
void showTimeOutBar(){enableTimeOutBar();}
|
||||
@@ -127,7 +132,11 @@ class CHintBox : public CComponentsWindow
|
||||
const char * const Picon = NULL,
|
||||
const int& header_buttons = 0,
|
||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||
const int& indent = W_FRAME);
|
||||
const int& indent = W_FRAME,
|
||||
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
|
||||
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
|
||||
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
|
||||
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
|
||||
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
@@ -141,7 +150,11 @@ class CHintBox : public CComponentsWindow
|
||||
const char * const Picon = NULL,
|
||||
const int& header_buttons = 0,
|
||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||
const int& indent = W_FRAME);
|
||||
const int& indent = W_FRAME,
|
||||
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
|
||||
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
|
||||
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
|
||||
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
|
||||
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
@@ -157,7 +170,11 @@ class CHintBox : public CComponentsWindow
|
||||
const char * const Picon = NULL,
|
||||
const int& header_buttons = 0,
|
||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||
const int& indent = W_FRAME);
|
||||
const int& indent = W_FRAME,
|
||||
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
|
||||
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
|
||||
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
|
||||
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
|
||||
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
@@ -173,7 +190,11 @@ class CHintBox : public CComponentsWindow
|
||||
const char * const Picon = NULL,
|
||||
const int& header_buttons = 0,
|
||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||
const int& indent = W_FRAME);
|
||||
const int& indent = W_FRAME,
|
||||
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
|
||||
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
|
||||
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
|
||||
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
|
||||
|
||||
virtual ~CHintBox();
|
||||
/**
|
||||
|
Reference in New Issue
Block a user