mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CHintBox/CMsgBox: Add default icon for header (NEUTRINO_ICON_INFO)
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#define TIMEOUT_BAR_HEIGHT OFFSET_SHADOW/2
|
#define TIMEOUT_BAR_HEIGHT OFFSET_SHADOW/2
|
||||||
|
|
||||||
#define DEFAULT_HINTBOX_TEXT_MODE (CTextBox::CENTER)
|
#define DEFAULT_HINTBOX_TEXT_MODE (CTextBox::CENTER)
|
||||||
|
#define DEFAULT_HEADER_ICON NEUTRINO_ICON_INFO
|
||||||
|
|
||||||
//! Sub class of CComponentsWindow. Shows a window as a hintbox with text and optional icon beside of text.
|
//! Sub class of CComponentsWindow. Shows a window as a hintbox with text and optional icon beside of text.
|
||||||
/*!
|
/*!
|
||||||
@@ -92,11 +93,11 @@ class CHintBox : public CComponentsWindow
|
|||||||
* @param[in] Width
|
* @param[in] Width
|
||||||
* @li optional: exepts type int, defines box width, default value = HINTBOX_MIN_WIDTH
|
* @li optional: exepts type int, defines box width, default value = HINTBOX_MIN_WIDTH
|
||||||
* @param[in] Icon
|
* @param[in] Icon
|
||||||
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = NULL (non Icon)
|
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||||
* @param[in] Picon
|
* @param[in] Picon
|
||||||
* @li optional: exepts type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
* @li optional: exepts type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||||
* @param[in] header_buttons
|
* @param[in] header_buttons
|
||||||
* @li optional: exepts type int, defines the icon name on the left side of titlebar, default = 0 (non Icon)
|
* @li optional: exepts type int, defines the icon name on the right side of titlebar, default = 0 (non Icon)
|
||||||
* @see class CComponentsWindow()
|
* @see class CComponentsWindow()
|
||||||
* @param[in] text_mode
|
* @param[in] text_mode
|
||||||
* @li optional: exepts type int, defines the text modes for embedded text lines
|
* @li optional: exepts type int, defines the text modes for embedded text lines
|
||||||
@@ -118,7 +119,7 @@ class CHintBox : public CComponentsWindow
|
|||||||
CHintBox( const neutrino_locale_t Caption,
|
CHintBox( const neutrino_locale_t Caption,
|
||||||
const char * const Text,
|
const char * const Text,
|
||||||
const int Width = HINTBOX_MIN_WIDTH,
|
const int Width = HINTBOX_MIN_WIDTH,
|
||||||
const char * const Icon = NULL,
|
const char * const Icon = DEFAULT_HEADER_ICON,
|
||||||
const char * const Picon = NULL,
|
const char * const Picon = NULL,
|
||||||
const int& header_buttons = 0,
|
const int& header_buttons = 0,
|
||||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||||
@@ -132,7 +133,7 @@ class CHintBox : public CComponentsWindow
|
|||||||
CHintBox( const char * const Caption,
|
CHintBox( const char * const Caption,
|
||||||
const char * const Text,
|
const char * const Text,
|
||||||
const int Width = HINTBOX_MIN_WIDTH,
|
const int Width = HINTBOX_MIN_WIDTH,
|
||||||
const char * const Icon = NULL,
|
const char * const Icon = DEFAULT_HEADER_ICON,
|
||||||
const char * const Picon = NULL,
|
const char * const Picon = NULL,
|
||||||
const int& header_buttons = 0,
|
const int& header_buttons = 0,
|
||||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||||
@@ -148,7 +149,7 @@ class CHintBox : public CComponentsWindow
|
|||||||
CHintBox( const neutrino_locale_t Caption,
|
CHintBox( const neutrino_locale_t Caption,
|
||||||
const neutrino_locale_t Text,
|
const neutrino_locale_t Text,
|
||||||
const int Width = HINTBOX_MIN_WIDTH,
|
const int Width = HINTBOX_MIN_WIDTH,
|
||||||
const char * const Icon = NULL,
|
const char * const Icon = DEFAULT_HEADER_ICON,
|
||||||
const char * const Picon = NULL,
|
const char * const Picon = NULL,
|
||||||
const int& header_buttons = 0,
|
const int& header_buttons = 0,
|
||||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||||
@@ -164,7 +165,7 @@ class CHintBox : public CComponentsWindow
|
|||||||
CHintBox( const char * const Caption,
|
CHintBox( const char * const Caption,
|
||||||
const neutrino_locale_t Text,
|
const neutrino_locale_t Text,
|
||||||
const int Width = HINTBOX_MIN_WIDTH,
|
const int Width = HINTBOX_MIN_WIDTH,
|
||||||
const char * const Icon = NULL,
|
const char * const Icon = DEFAULT_HEADER_ICON,
|
||||||
const char * const Picon = NULL,
|
const char * const Picon = NULL,
|
||||||
const int& header_buttons = 0,
|
const int& header_buttons = 0,
|
||||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||||
|
@@ -125,7 +125,7 @@ class CMsgBox : public CHintBox
|
|||||||
* @param[in] Title
|
* @param[in] Title
|
||||||
* @li optional: exepts type const char*, default = NULL, this causes default title "Information"
|
* @li optional: exepts type const char*, default = NULL, this causes default title "Information"
|
||||||
* @param[in] Icon
|
* @param[in] Icon
|
||||||
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = NULL (non Icon)
|
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||||
* @param[in] Picon
|
* @param[in] Picon
|
||||||
* @li optional: exepts type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
* @li optional: exepts type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||||
* @param[in] Width
|
* @param[in] Width
|
||||||
@@ -165,7 +165,7 @@ class CMsgBox : public CHintBox
|
|||||||
*/
|
*/
|
||||||
CMsgBox(const char* Text,
|
CMsgBox(const char* Text,
|
||||||
const char* Title = NULL,
|
const char* Title = NULL,
|
||||||
const char* Icon = NULL,
|
const char* Icon = DEFAULT_HEADER_ICON,
|
||||||
const char* Picon = NULL,
|
const char* Picon = NULL,
|
||||||
const int& Width = MSGBOX_MIN_WIDTH,
|
const int& Width = MSGBOX_MIN_WIDTH,
|
||||||
const int& Height = MSGBOX_MIN_HEIGHT,
|
const int& Height = MSGBOX_MIN_HEIGHT,
|
||||||
@@ -179,7 +179,7 @@ class CMsgBox : public CHintBox
|
|||||||
* @param[in] Title
|
* @param[in] Title
|
||||||
* @li optional: exepts type neutrino_locale_t with locale entry from /system/locals.h default = NONEXISTANT_LOCALE, this causes default title "Information"
|
* @li optional: exepts type neutrino_locale_t with locale entry from /system/locals.h default = NONEXISTANT_LOCALE, this causes default title "Information"
|
||||||
* @param[in] Icon
|
* @param[in] Icon
|
||||||
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = NULL (non Icon)
|
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||||
* @param[in] Picon
|
* @param[in] Picon
|
||||||
* @li optional: exepts type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
* @li optional: exepts type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||||
* @param[in] Width
|
* @param[in] Width
|
||||||
@@ -219,7 +219,7 @@ class CMsgBox : public CHintBox
|
|||||||
*/
|
*/
|
||||||
CMsgBox(const char* Text,
|
CMsgBox(const char* Text,
|
||||||
const neutrino_locale_t locale_Title = NONEXISTANT_LOCALE,
|
const neutrino_locale_t locale_Title = NONEXISTANT_LOCALE,
|
||||||
const char* Icon = NULL,
|
const char* Icon = DEFAULT_HEADER_ICON,
|
||||||
const char* Picon = NULL,
|
const char* Picon = NULL,
|
||||||
const int& Width = MSGBOX_MIN_WIDTH,
|
const int& Width = MSGBOX_MIN_WIDTH,
|
||||||
const int& Height = MSGBOX_MIN_HEIGHT,
|
const int& Height = MSGBOX_MIN_HEIGHT,
|
||||||
|
Reference in New Issue
Block a user