mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
Merge branch 'master' into pu/mp
This commit is contained in:
@@ -342,7 +342,7 @@ class CCDraw : public COSDFader, public CComponentsSignals
|
||||
*
|
||||
* @return bool returns true if effect was successful canceled
|
||||
*
|
||||
* @param[in] keep_on_screen optional, exepts bool, default = false. means: item is not repainted after canceled effect
|
||||
* @param[in] keep_on_screen optional, expects bool, default = false. means: item is not repainted after canceled effect
|
||||
*
|
||||
* @see take a look into test menu class for examples
|
||||
* NOTE: Effect must be started with paintBlink()
|
||||
|
@@ -378,7 +378,7 @@ void CComponentsForm::paintCCItems()
|
||||
size_t items_count = v_cc_items.size();
|
||||
|
||||
//using of real x/y values to paint items if this text object is bound in a parent form
|
||||
int this_x = x, auto_x = x, this_y = y, auto_y = y, this_w = width;
|
||||
int this_x = x, auto_x = x, this_y = y, auto_y = y, this_w = 0;
|
||||
int w_parent_frame = 0;
|
||||
if (cc_parent){
|
||||
this_x = auto_x = cc_xr;
|
||||
@@ -441,7 +441,7 @@ void CComponentsForm::paintCCItems()
|
||||
}
|
||||
|
||||
//move item x-position, if we have a frame on parent, TODO: other constellations not considered at the moment
|
||||
w_parent_frame = xpos <= fr_thickness ? fr_thickness : 0;
|
||||
w_parent_frame = xpos <= fr_thickness ? fr_thickness : w_parent_frame;
|
||||
|
||||
//set required x-position to item:
|
||||
//append vertical
|
||||
@@ -461,7 +461,7 @@ void CComponentsForm::paintCCItems()
|
||||
}
|
||||
|
||||
//move item y-position, if we have a frame on parent, TODO: other constellations not considered at the moment
|
||||
w_parent_frame = ypos <= fr_thickness ? fr_thickness : 0;
|
||||
w_parent_frame = ypos <= fr_thickness ? fr_thickness : w_parent_frame;
|
||||
|
||||
//set required y-position to item
|
||||
//append hor
|
||||
|
@@ -147,14 +147,15 @@ void CComponentsButton::initIcon()
|
||||
if (pos == string::npos)
|
||||
cc_btn_icon = frameBuffer->getIconPath(cc_btn_icon);
|
||||
|
||||
int y_icon = 0;
|
||||
int h_icon = 0;
|
||||
if (cc_btn_icon_obj == NULL){
|
||||
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this);
|
||||
cc_btn_icon_obj->SetTransparent(CFrameBuffer::TM_BLACK);
|
||||
cc_btn_icon_obj->doPaintBg(false);
|
||||
}
|
||||
|
||||
int y_icon = cc_btn_icon_obj->getYPos();
|
||||
int h_icon = cc_btn_icon_obj->getHeight();
|
||||
h_icon = cc_btn_icon_obj->getHeight();
|
||||
|
||||
//get required icon height
|
||||
int h_max = height-2*fr_thickness;
|
||||
|
@@ -211,7 +211,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
|
||||
* Returns true if filtered event msg value of button object is found in cc_directKeys container.
|
||||
* @return bool
|
||||
* @param[in] msg
|
||||
* @li exepts type neutrino_msg_t as filter for searched message
|
||||
* @li expects type neutrino_msg_t as filter for searched message
|
||||
* @see neutrino_msg_t getButtonDirectKey(), driver/rcinput.h for possible values
|
||||
*/
|
||||
bool hasButtonDirectKey(const neutrino_msg_t& msg)
|
||||
|
@@ -248,7 +248,7 @@ void CComponentsFrmClock::initCCLockItems()
|
||||
//extract timestring segment (char)
|
||||
string stmp = s_time.substr(i, 1);
|
||||
|
||||
int w_tmp = minSepWidth;
|
||||
int w_tmp = 0;
|
||||
//get width of current segment
|
||||
if (isdigit(stmp.at(0)) ) //check for digits, if true, we use digit width
|
||||
w_tmp = cl_font->getMaxDigitWidth();
|
||||
|
@@ -223,7 +223,7 @@ void CComponentsFooter::setButtonLabels(const struct button_label_cc * const con
|
||||
btn->setButtonFont(NULL);
|
||||
}
|
||||
|
||||
dprintf(DEBUG_INFO, "[CComponentsFooter] [%s - %d] button %s [%u] btn->getWidth() = %d w_btn = %d, (chain->getWidth() = %d)\n", __func__, __LINE__, txt.c_str(), i, btn->getWidth(), w_btn, btn_container->getWidth());
|
||||
dprintf(DEBUG_INFO, "[CComponentsFooter] [%s - %d] button %s [%u] btn->getWidth() = %d w_btn = %d, (chain->getWidth() = %d)\n", __func__, __LINE__, txt.c_str(), (uint32_t)i, btn->getWidth(), w_btn, btn_container->getWidth());
|
||||
}
|
||||
|
||||
/* add generated button objects to chain object.
|
||||
@@ -251,7 +251,7 @@ void CComponentsFooter::setButtonLabels(const struct button_label_cc * const con
|
||||
void CComponentsFooter::setButtonLabels(const struct button_label * const content, const size_t& label_count, const int& chain_width, const int& label_width)
|
||||
{
|
||||
//conversion for compatibility with older paintButtons() methode, find in /gui/widget/buttons.h
|
||||
button_label_cc buttons[label_count];
|
||||
button_label_cc *buttons = new button_label_cc[label_count];
|
||||
for (size_t i = 0; i< label_count; i++){
|
||||
buttons[i].button = content[i].button;
|
||||
buttons[i].locale = content[i].locale;
|
||||
@@ -262,12 +262,13 @@ void CComponentsFooter::setButtonLabels(const struct button_label * const conten
|
||||
buttons[i].btn_alias = -1;
|
||||
}
|
||||
setButtonLabels(buttons, label_count, chain_width, label_width);
|
||||
delete[] buttons;
|
||||
}
|
||||
|
||||
void CComponentsFooter::setButtonLabels(const vector<button_label_cc> &v_content, const int& chain_width, const int& label_width)
|
||||
{
|
||||
size_t label_count = v_content.size();
|
||||
button_label_cc buttons[label_count];
|
||||
button_label_cc *buttons = new button_label_cc[label_count];
|
||||
|
||||
for (size_t i= 0; i< label_count; i++){
|
||||
buttons[i].button = v_content[i].button;
|
||||
@@ -277,8 +278,8 @@ void CComponentsFooter::setButtonLabels(const vector<button_label_cc> &v_content
|
||||
buttons[i].btn_result = v_content[i].btn_result;
|
||||
buttons[i].btn_alias = v_content[i].btn_alias;
|
||||
}
|
||||
|
||||
setButtonLabels(buttons, label_count, chain_width, label_width);
|
||||
delete[] buttons;
|
||||
}
|
||||
|
||||
void CComponentsFooter::setButtonLabel( const char *button_icon,
|
||||
|
@@ -343,14 +343,18 @@ void CComponentsHeader::initLogo()
|
||||
* with previous or next item.
|
||||
*/
|
||||
if (cch_caption_align & CC_TITLE_LEFT){
|
||||
int left_tag = prev_item->getXPos() + prev_item->getWidth();
|
||||
if (x_logo <= left_tag)
|
||||
x_logo = left_tag + logo_space/2 - w_logo/2;
|
||||
if (prev_item){
|
||||
int left_tag = prev_item->getXPos() + prev_item->getWidth();
|
||||
if (x_logo <= left_tag)
|
||||
x_logo = left_tag + logo_space/2 - w_logo/2;
|
||||
}
|
||||
}
|
||||
|
||||
if (cch_caption_align & CC_TITLE_RIGHT){
|
||||
if (x_logo + w_logo >= next_item->getXPos())
|
||||
x_logo = next_item->getXPos() - logo_space/2 - w_logo/2;
|
||||
if (next_item){
|
||||
if (x_logo + w_logo >= next_item->getXPos())
|
||||
x_logo = next_item->getXPos() - logo_space/2 - w_logo/2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -204,7 +204,7 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen, CCHeaderT
|
||||
* Height can be changed with modes by setSizeMode(), setHeight() or constructor.
|
||||
* @return void
|
||||
*
|
||||
* @param[in] font exepts font object, type Font*
|
||||
* @param[in] font expects font object, type Font*
|
||||
* @see getCaptionFont(), setSizeMode(),
|
||||
* setCaptionColor(),
|
||||
* setCaptionAlignment(),
|
||||
@@ -227,7 +227,7 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen, CCHeaderT
|
||||
* If other size wanted then use set setCaptionFont() and setHeight()
|
||||
* @return void
|
||||
*
|
||||
* @param[in] size_mode exepts type int (enums)
|
||||
* @param[in] size_mode expects type int (enums)
|
||||
* possible modes are:
|
||||
* CC_HEADER_SIZE_LARGE
|
||||
* CC_HEADER_SIZE_SMALL
|
||||
|
@@ -70,20 +70,20 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
||||
public:
|
||||
/**Class constructor to generate individual scrollbar objects
|
||||
*
|
||||
* @param[in] x_pos exepts type int, x position on screen
|
||||
* @param[in] x_pos exepts type int, y position on screen modes are:
|
||||
* @param[in] w exepts type int, width of scrollbar object
|
||||
* @param[in] h exepts type int, height of scrollbar object
|
||||
* @param[in] count optional, exepts type int, count of pages, default 1
|
||||
* @param[in] x_pos expects type int, x position on screen
|
||||
* @param[in] x_pos expects type int, y position on screen modes are:
|
||||
* @param[in] w expects type int, width of scrollbar object
|
||||
* @param[in] h expects type int, height of scrollbar object
|
||||
* @param[in] count optional, expects type int, count of pages, default 1
|
||||
*
|
||||
* usual paraemters:
|
||||
* @param[in] parent optional, exepts type pointer to a parent CComponentsForm object, default NULL
|
||||
* @param[in] shadow_mode optional, exepts type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||
* @param[in] color_frame optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_body optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_shadow optional, exepts type fb_pixel_t, default COL_SHADOW_PLUS_0
|
||||
* @param[in] color_select optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
||||
* @param[in] color_passive optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
||||
* @param[in] parent optional, expects type pointer to a parent CComponentsForm object, default NULL
|
||||
* @param[in] shadow_mode optional, expects type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||
* @param[in] color_frame optional, expects type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_body optional, expects type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_shadow optional, expects type fb_pixel_t, default COL_SHADOW_PLUS_0
|
||||
* @param[in] color_select optional, expects type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
||||
* @param[in] color_passive optional, expects type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
||||
*/
|
||||
CComponentsScrollBar( const int &x_pos,
|
||||
const int &y_pos,
|
||||
@@ -102,7 +102,7 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
||||
/**Set current page number
|
||||
* @return void
|
||||
*
|
||||
* @param[in] mark_id exepts type int, this sets the current selected page number.
|
||||
* @param[in] mark_id expects type int, this sets the current selected page number.
|
||||
*
|
||||
* @see getMarkID()
|
||||
*/
|
||||
@@ -120,8 +120,8 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
||||
* Each segment is assigned to a page number. Starting with id 0...n
|
||||
* @return void
|
||||
*
|
||||
* @param[in] segment_count exepts type int, sets the current count of pages.
|
||||
* @param[in] mark_id optional, exepts type int, sets the current selected page number, default = 0
|
||||
* @param[in] segment_count expects type int, sets the current count of pages.
|
||||
* @param[in] mark_id optional, expects type int, sets the current selected page number, default = 0
|
||||
* @see also setMarkID()
|
||||
* getMarkID()
|
||||
*/
|
||||
@@ -135,7 +135,7 @@ class CComponentsScrollBar : public CComponentsFrmChain
|
||||
int getSegmentCount(){return sb_segments_count;}
|
||||
|
||||
/**Enable/disable vizualized count of possible scroll items
|
||||
* @param[in] enable optional, exepts type bool.
|
||||
* @param[in] enable optional, expects type bool.
|
||||
* @note Default mode is disabled.
|
||||
*/
|
||||
void enableVisualize(bool enable = true){sb_visual_enable = enable;}
|
||||
@@ -150,21 +150,21 @@ void getScrollBarData(int *total_pages, int *current_page, int total_items, int
|
||||
/**Small and easy to apply scrollbar paint methode without expilcit object declaration
|
||||
* @return void
|
||||
*
|
||||
* @param[in] x_pos exepts type int, x position on screen
|
||||
* @param[in] x_pos exepts type int, y position on screen modes are:
|
||||
* @param[in] w exepts type int, width of scrollbar object
|
||||
* @param[in] h exepts type int, height of scrollbar object
|
||||
* @param[in] count exepts type int, count of pages, default 1
|
||||
* @param[in] current_num exepts type int, current selected page, default 0
|
||||
* @param[in] x_pos expects type int, x position on screen
|
||||
* @param[in] x_pos expects type int, y position on screen modes are:
|
||||
* @param[in] w expects type int, width of scrollbar object
|
||||
* @param[in] h expects type int, height of scrollbar object
|
||||
* @param[in] count expects type int, count of pages, default 1
|
||||
* @param[in] current_num expects type int, current selected page, default 0
|
||||
*
|
||||
* usual paraemters:
|
||||
* @param[in] parent optional, exepts type pointer to a parent CComponentsForm object, default NULL
|
||||
* @param[in] shadow_mode optional, exepts type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||
* @param[in] color_frame optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_body optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_shadow optional, exepts type fb_pixel_t, default COL_SHADOW_PLUS_0
|
||||
* @param[in] color_select optional, exepts type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
||||
* @param[in] color_passive optional, exepts type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
||||
* @param[in] parent optional, expects type pointer to a parent CComponentsForm object, default NULL
|
||||
* @param[in] shadow_mode optional, expects type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||
* @param[in] color_frame optional, expects type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_body optional, expects type fb_pixel_t, default COL_SCROLLBAR_PLUS_0
|
||||
* @param[in] color_shadow optional, expects type fb_pixel_t, default COL_SHADOW_PLUS_0
|
||||
* @param[in] color_select optional, expects type fb_pixel_t, default COL_SCROLLBAR_ACTIVE_PLUS_0
|
||||
* @param[in] color_passive optional, expects type fb_pixel_t, default COL_SCROLLBAR_PASSIVE_PLUS_0
|
||||
*/
|
||||
void paintScrollBar( const int &x_pos,
|
||||
const int &y_pos,
|
||||
|
@@ -299,10 +299,6 @@ int CComponentsPicture::getHeight()
|
||||
|
||||
void CComponentsPicture::paintPicture()
|
||||
{
|
||||
struct timeval t1, t2;
|
||||
if (debug)
|
||||
gettimeofday(&t1, NULL);
|
||||
|
||||
is_image_painted = false;
|
||||
//initialize image position
|
||||
int x_pic = x;
|
||||
@@ -337,14 +333,6 @@ void CComponentsPicture::paintPicture()
|
||||
frameBuffer->RestoreScreen(x_pic, y_pic, dxc, dyc, image_cache);
|
||||
}
|
||||
}
|
||||
|
||||
//benchmark
|
||||
if (debug){
|
||||
gettimeofday(&t2, NULL);
|
||||
uint64_t duration = ((t2.tv_sec * 1000000ULL + t2.tv_usec) - (t1.tv_sec * 1000000ULL + t1.tv_usec)) / 1000ULL;
|
||||
if (duration)
|
||||
fprintf(stderr, "\033[33m[CComponentsPicture] %s: %" PRIu64 " ms to paint image \033[0m\n", __func__, duration);
|
||||
}
|
||||
}
|
||||
|
||||
void CComponentsPicture::paint(bool do_save_bg)
|
||||
|
@@ -433,10 +433,6 @@ void CProgressBarCache::pbcApplyGradient(fb_pixel_t *b)
|
||||
|
||||
void CProgressBar::paintProgress(bool do_save_bg)
|
||||
{
|
||||
struct timeval t1, t2;
|
||||
if (debug)
|
||||
gettimeofday(&t1, NULL);
|
||||
|
||||
if (*pb_design == PB_OFF) {
|
||||
paintInit(false);
|
||||
return;
|
||||
@@ -477,14 +473,6 @@ void CProgressBar::paintProgress(bool do_save_bg)
|
||||
|
||||
if (is_painted)
|
||||
pb_last_width = pb_active_width;
|
||||
|
||||
//benchmark
|
||||
if (debug){
|
||||
gettimeofday(&t2, NULL);
|
||||
uint64_t duration = ((t2.tv_sec * 1000000ULL + t2.tv_usec) - (t1.tv_sec * 1000000ULL + t1.tv_usec)) / 1000ULL;
|
||||
if (duration)
|
||||
fprintf(stderr, "\033[33m[CProgressBar] %s: %" PRIu64 " ms to paint progress \033[0m\n",__func__, duration);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -107,3 +107,12 @@ void CComponentsShapeCircle::paint(bool do_save_bg)
|
||||
{
|
||||
paintInit(do_save_bg);
|
||||
}
|
||||
|
||||
|
||||
bool PaintBoxRel(const int& x, const int& y, const int& dx, const int& dy, const fb_pixel_t& col, int radius, int corner_type, int shadow_mode)
|
||||
{
|
||||
CComponentsShapeSquare box(x, y, dx, dy, NULL, shadow_mode, COL_SHADOW_PLUS_0, col);
|
||||
box.setCorner(radius, corner_type);
|
||||
box.paint(CC_SAVE_SCREEN_NO);
|
||||
return box.isPainted();
|
||||
}
|
||||
|
@@ -73,4 +73,28 @@ class CComponentsShapeSquare : public CComponentsItem
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
};
|
||||
|
||||
|
||||
/**Small and easy to apply box paint methode without expilcit object declaration
|
||||
* @return bool, true = painted
|
||||
*
|
||||
* @param[in] x expects type int, x position on screen
|
||||
* @param[in] y expects type int, y position on screen modes are:
|
||||
* @param[in] dx expects type int, width of scrollbar object
|
||||
* @param[in] dy expects type int, height of scrollbar object
|
||||
* @param[in] col expects type fb_pixel_t, as body color
|
||||
*
|
||||
* usual paraemters:
|
||||
* @param[in] radius optional, expects type int as corner radius, default = 0
|
||||
* @param[in] corner_type optional, expects type int as cornar type, default CORNER_ALL
|
||||
* @param[in] shadow_mode optional, expects type int defined by shadow mode enums, default CC_SHADOW_OFF
|
||||
*/
|
||||
bool PaintBoxRel(const int& x,
|
||||
const int& y,
|
||||
const int& dx,
|
||||
const int& dy,
|
||||
const fb_pixel_t& col,
|
||||
int radius = 0,
|
||||
int corner_type = CORNER_ALL,
|
||||
int shadow_mode = CC_SHADOW_OFF);
|
||||
|
||||
#endif
|
||||
|
@@ -1387,7 +1387,8 @@ void CTimerList::paintHead()
|
||||
header = new CComponentsHeader(x, y, width, header_height, LOCALE_TIMERLIST_NAME, NEUTRINO_ICON_TIMER, CComponentsHeader::CC_BTN_MENU | CComponentsHeader::CC_BTN_EXIT, NULL, CC_SHADOW_ON);
|
||||
header->enableClock(true, " %d.%m.%Y - %H:%M ", NULL, false);
|
||||
}
|
||||
header->paint(CC_SAVE_SCREEN_NO);
|
||||
if(!header->isPainted())
|
||||
header->paint(CC_SAVE_SCREEN_NO);
|
||||
}
|
||||
|
||||
void CTimerList::paintFoot()
|
||||
@@ -1413,9 +1414,9 @@ void CTimerList::paintFoot()
|
||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||
|
||||
if (timerlist.empty())
|
||||
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, 2, &(TimerListButtons[1]));
|
||||
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, 2, &(TimerListButtons[1]), width/(2+1));
|
||||
else
|
||||
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, c, TimerListButtons);
|
||||
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, c, TimerListButtons, width/(c-1));
|
||||
}
|
||||
|
||||
void CTimerList::paint()
|
||||
|
@@ -106,7 +106,7 @@ void Helpbox::addLine(const std::string& icon, const std::string& text, const in
|
||||
txt->setColorBody(COL_RED);
|
||||
#endif
|
||||
int lines = txt->getCTextBoxObject()->getLines();
|
||||
txt_height = std::max(lines*font->getHeight(), h_line);
|
||||
txt_height = std::max(font ? lines*font->getHeight() : 0, h_line);
|
||||
txt->setHeight(txt_height);
|
||||
|
||||
line->addCCItem(txt);
|
||||
|
@@ -52,19 +52,19 @@ public:
|
||||
* NOTE: addLine() members are used only for compatibilty with older implementation
|
||||
* of lines.
|
||||
* @param[in] Title
|
||||
* @li exepts type std::string, defines caption of window
|
||||
* @li expects type std::string, defines caption of window
|
||||
* @param[in] Default_Text
|
||||
* @li optional: exepts type std::string, defines a pre defined help text
|
||||
* @li optional: expects type std::string, defines a pre defined help text
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @li optional: expects type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @param[in] line_height
|
||||
* @li optional: exepts type int, defines height of line
|
||||
* @li optional: expects type int, defines height of line
|
||||
* @param[in] line_indent
|
||||
* @li optional: exepts type int, defines lenght of indent from left
|
||||
* @li optional: expects type int, defines lenght of indent from left
|
||||
* @param[in] font_text
|
||||
* @li optional: exepts type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
* @li optional: expects type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
* @param[in] Icon
|
||||
* @li exepts type const char*, defins the title bar icon and can be name (see /gui/icons.h) or path to an image file
|
||||
* @li expects type const char*, defins the title bar icon and can be name (see /gui/icons.h) or path to an image file
|
||||
*/
|
||||
Helpbox( const std::string& Title,
|
||||
const std::string& Default_Text = std::string(),
|
||||
@@ -79,15 +79,15 @@ public:
|
||||
|
||||
/**Adds an item with pre defined text
|
||||
* @param[in] text
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @li optional: expects type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @param[in] line_height
|
||||
* @li optional: exepts type int, defines height of line
|
||||
* @li optional: expects type int, defines height of line
|
||||
* @param[in] line_indent
|
||||
* @li optional: exepts type int, defines lenght of indent from left
|
||||
* @li optional: expects type int, defines lenght of indent from left
|
||||
* @param[in] font_text
|
||||
* @li optional: exepts type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
* @li optional: expects type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
*/
|
||||
void addLine( const std::string& text,
|
||||
const int& text_mode = HELPBOX_DEFAULT_TEXT_MODE,
|
||||
@@ -97,15 +97,15 @@ public:
|
||||
|
||||
/**Adds an item with pre defined text
|
||||
* @param[in] text
|
||||
* @li exepts type const char *
|
||||
* @li expects type const char *
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @li optional: expects type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @param[in] line_height
|
||||
* @li optional: exepts type int, defines height of line
|
||||
* @li optional: expects type int, defines height of line
|
||||
* @param[in] line_indent
|
||||
* @li optional: exepts type int, defines lenght of indent from left
|
||||
* @li optional: expects type int, defines lenght of indent from left
|
||||
* @param[in] font_text
|
||||
* @li optional: exepts type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
* @li optional: expects type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
*/
|
||||
void addLine( const char *text,
|
||||
const int& text_mode = HELPBOX_DEFAULT_TEXT_MODE,
|
||||
@@ -115,17 +115,17 @@ public:
|
||||
|
||||
/**Adds an item with pre defined icon and text
|
||||
* @param[in] icon
|
||||
* @li exepts type std::string, icon can be name (see /gui/icons.h) or path to an image file
|
||||
* @li expects type std::string, icon can be name (see /gui/icons.h) or path to an image file
|
||||
* @param[in] text
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @li optional: expects type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @param[in] line_height
|
||||
* @li optional: exepts type int, defines height of line
|
||||
* @li optional: expects type int, defines height of line
|
||||
* @param[in] line_indent
|
||||
* @li optional: exepts type int, defines lenght of indent from left
|
||||
* @li optional: expects type int, defines lenght of indent from left
|
||||
* @param[in] font_text
|
||||
* @li optional: exepts type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
* @li optional: expects type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
*/
|
||||
void addLine( const std::string& icon,
|
||||
const std::string& text,
|
||||
@@ -136,17 +136,17 @@ public:
|
||||
|
||||
/**Adds an item with pre defined icon and text
|
||||
* @param[in] icon
|
||||
* @li exepts type const char *, icon can be name (see /gui/icons.h) or path to an image file
|
||||
* @li expects type const char *, icon can be name (see /gui/icons.h) or path to an image file
|
||||
* @param[in] text
|
||||
* @li exepts type const char *
|
||||
* @li expects type const char *
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @li optional: expects type int, defines text modes, see /gui/widget/textbox.h for possible modes
|
||||
* @param[in] line_height
|
||||
* @li optional: exepts type int, defines height of line
|
||||
* @li optional: expects type int, defines height of line
|
||||
* @param[in] line_indent
|
||||
* @li optional: exepts type int, defines lenght of indent from left
|
||||
* @li optional: expects type int, defines lenght of indent from left
|
||||
* @param[in] font_text
|
||||
* @li optional: exepts type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
* @li optional: expects type Font*, default = NULL, this means SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO is used
|
||||
*/
|
||||
void addLine( const char *icon,
|
||||
const char *text,
|
||||
|
@@ -90,20 +90,20 @@ class CHintBox : public CComponentsWindow
|
||||
public:
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
* @li exepts type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @li expects type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @param[in] Text
|
||||
* @li exepts type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @li expects type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @param[in] Width
|
||||
* @li optional: exepts type int, defines box width, default value = HINTBOX_MIN_WIDTH
|
||||
* @li optional: expects type int, defines box width, default value = HINTBOX_MIN_WIDTH
|
||||
* @param[in] Icon
|
||||
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||
* @li optional: expects type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||
* @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: expects type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||
* @param[in] header_buttons
|
||||
* @li optional: exepts type int, defines the icon name on the right side of titlebar, default = 0 (non Icon)
|
||||
* @li optional: expects type int, defines the icon name on the right side of titlebar, default = 0 (non Icon)
|
||||
* @see class CComponentsWindow()
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines the text modes for embedded text lines
|
||||
* @li optional: expects type int, defines the text modes for embedded text lines
|
||||
* Possible Modes defined in /gui/widget/textbox.h
|
||||
* AUTO_WIDTH
|
||||
* AUTO_HIGH
|
||||
@@ -115,7 +115,7 @@ class CHintBox : public CComponentsWindow
|
||||
* NO_AUTO_LINEBREAK
|
||||
* AUTO_LINEBREAK_NO_BREAKCHARS
|
||||
* @param[in] indent
|
||||
* @li optional: exepts type int, defines indent of text
|
||||
* @li optional: expects type int, defines indent of text
|
||||
*
|
||||
* @see classes CComponentsText(), CTextBox()
|
||||
*/
|
||||
@@ -130,7 +130,7 @@ class CHintBox : public CComponentsWindow
|
||||
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
* @li exepts type const char*
|
||||
* @li expects type const char*
|
||||
* @see for other parameters take a look to basic class CHintBox()
|
||||
*/
|
||||
CHintBox( const char * const Caption,
|
||||
@@ -144,9 +144,9 @@ class CHintBox : public CComponentsWindow
|
||||
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
* @li exepts type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @li expects type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @param[in] Text
|
||||
* @li exepts type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @li expects type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @see for other parameters take a look to basic class CHintBox()
|
||||
*/
|
||||
CHintBox( const neutrino_locale_t Caption,
|
||||
@@ -160,9 +160,9 @@ class CHintBox : public CComponentsWindow
|
||||
|
||||
/**CHintBox Constructor
|
||||
* @param[in] Caption
|
||||
* @li exepts type const char*
|
||||
* @li expects type const char*
|
||||
* @param[in] Text
|
||||
* @li exepts type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @li expects type neutrino_locale_t with locale entry from /system/locals.h
|
||||
* @see for other parameters take a look to basic class CHintBox()
|
||||
*/
|
||||
CHintBox( const char * const Caption,
|
||||
@@ -192,7 +192,7 @@ class CHintBox : public CComponentsWindow
|
||||
/**
|
||||
* enable/disable visualized timeout as progressbar under titlebar
|
||||
* @param[in] enable
|
||||
* @li optional: exepts type bool, default = true
|
||||
* @li optional: expects type bool, default = true
|
||||
*/
|
||||
void enableTimeOutBar(bool enable = true);
|
||||
|
||||
@@ -205,7 +205,7 @@ class CHintBox : public CComponentsWindow
|
||||
/**
|
||||
* scroll handler for text objects: NOTE: exec() must be called !
|
||||
* @param[in] hint_id
|
||||
* @li optional: exepts type unsigned int, default = 0
|
||||
* @li optional: expects type unsigned int, default = 0
|
||||
* default for the 1st hint item (=0), item id arises from the order of added items with addHintItem(), default we have minimal one item with id=0
|
||||
* @see Scroll()
|
||||
*/
|
||||
@@ -214,7 +214,7 @@ class CHintBox : public CComponentsWindow
|
||||
/**
|
||||
* scroll down handler for text objects: NOTE: exec() must be called !
|
||||
* @param[in] hint_id
|
||||
* @li exepts type unsigned int, default = 0
|
||||
* @li expects type unsigned int, default = 0
|
||||
* default for the 1st hint item (=0), item id arises from the order of added items with addHintItem(), default we h
|
||||
* @see Scroll()
|
||||
*/
|
||||
@@ -223,9 +223,9 @@ class CHintBox : public CComponentsWindow
|
||||
/**
|
||||
* Member to add a hint item
|
||||
* @param[in] Text
|
||||
* @li exepts type std::string, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @li expects type std::string, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines the text modes for embedded text lines
|
||||
* @li optional: expects type int, defines the text modes for embedded text lines
|
||||
* Possible Modes defined in /gui/widget/textbox.h
|
||||
* AUTO_WIDTH
|
||||
* AUTO_HIGH
|
||||
@@ -237,11 +237,11 @@ class CHintBox : public CComponentsWindow
|
||||
* NO_AUTO_LINEBREAK
|
||||
* AUTO_LINEBREAK_NO_BREAKCHARS
|
||||
* @param[in] Picon
|
||||
* @li optional: exepts type std::string, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||
* @li optional: expects type std::string, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||
* @param[in] color_text
|
||||
* @li optional: exepts type fb_pixel_t, defines the text color, default = COL_MENUCONTENT_TEXT
|
||||
* @li optional: expects type fb_pixel_t, defines the text color, default = COL_MENUCONTENT_TEXT
|
||||
* * @param[in] font_text
|
||||
* @li optional: exepts type Font*, defines the text font type, default = NULL for system preset for message contents
|
||||
* @li optional: expects type Font*, defines the text font type, default = NULL for system preset for message contents
|
||||
*/
|
||||
void addHintItem( const std::string& Text,
|
||||
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
|
||||
@@ -252,7 +252,7 @@ class CHintBox : public CComponentsWindow
|
||||
/**
|
||||
* Member to add a hint item from specified cc-item type
|
||||
* @param[in] cc_Item
|
||||
* @li exepts type CComponentsItem*, allows to add any possible cc-item type
|
||||
* @li expects type CComponentsItem*, allows to add any possible cc-item type
|
||||
*
|
||||
* @see /gui/components/cc_types.h
|
||||
*/
|
||||
@@ -261,11 +261,11 @@ class CHintBox : public CComponentsWindow
|
||||
/**
|
||||
* Sets a text to a hint item.
|
||||
* @param[in] Text
|
||||
* @li exepts type std::string, this is the message text inside the hint item, text is UTF-8 encoded
|
||||
* @li expects type std::string, this is the message text inside the hint item, text is UTF-8 encoded
|
||||
* @param[in] hint_id
|
||||
* @li optional: exepts type unsigned int, default = 0 for the first or one and only item
|
||||
* @li optional: expects type unsigned int, default = 0 for the first or one and only item
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines the text modes for embedded text lines
|
||||
* @li optional: expects type int, defines the text modes for embedded text lines
|
||||
* Possible Modes defined in /gui/widget/textbox.h
|
||||
* AUTO_WIDTH
|
||||
* AUTO_HIGH
|
||||
@@ -278,9 +278,9 @@ class CHintBox : public CComponentsWindow
|
||||
* AUTO_LINEBREAK_NO_BREAKCHARS
|
||||
* default: CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH | CTextBox::CENTER
|
||||
* @param[in] color_text
|
||||
* @li optional: exepts type fb_pixel_t, defines the text color, default = COL_MENUCONTENT_TEXT
|
||||
* @li optional: expects type fb_pixel_t, defines the text color, default = COL_MENUCONTENT_TEXT
|
||||
* * @param[in] style
|
||||
* @li optional: exepts type int, defines the text style NOTE: only for dynamic font
|
||||
* @li optional: expects type int, defines the text style NOTE: only for dynamic font
|
||||
* possible styles are:
|
||||
* FONT_STYLE_REGULAR (default)
|
||||
* FONT_STYLE_BOLD
|
||||
@@ -323,16 +323,16 @@ class CHint : public CHintBox
|
||||
public:
|
||||
/**CHint Constructor
|
||||
* @param[in] Text
|
||||
* @li exepts type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @li expects type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @param[in] show_background
|
||||
* @li optional: exepts type bool, enable/disable backround paint, default = true
|
||||
* @li optional: expects type bool, enable/disable backround paint, default = true
|
||||
*/
|
||||
CHint(const char * const Text, bool show_background = true);
|
||||
/**CHint Constructor
|
||||
* @param[in] Text
|
||||
* @li exepts type neutrino_locale_t, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @li expects type neutrino_locale_t, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @param[in] show_background
|
||||
* @li optional: exepts type bool, enable/disable backround paint, default = true
|
||||
* @li optional: expects type bool, enable/disable backround paint, default = true
|
||||
*/
|
||||
CHint(const neutrino_locale_t Text, bool show_background = true);
|
||||
};
|
||||
@@ -341,9 +341,9 @@ class CHint : public CHintBox
|
||||
* Simplified methodes to show hintboxes without titlebar and footer
|
||||
* Text is UTF-8 encoded
|
||||
* @param[in] timeout
|
||||
* @li optional: exepts type int as seconds, default = HINTBOX_DEFAULT_TIMEOUT (get from settings)
|
||||
* @li optional: expects type int as seconds, default = HINTBOX_DEFAULT_TIMEOUT (get from settings)
|
||||
* @param[in] show_background
|
||||
* @li optional: exepts type bool, enable/disable backround paint, default = true
|
||||
* @li optional: expects type bool, enable/disable backround paint, default = true
|
||||
* @see for possible text parameters take a look to CHintBox()
|
||||
*/
|
||||
int ShowHintS(const neutrino_locale_t Text, int timeout = HINTBOX_DEFAULT_TIMEOUT, bool show_background = true);
|
||||
|
@@ -121,22 +121,22 @@ class CMsgBox : public CHintBox
|
||||
public:
|
||||
/**CMsgBox Constructor
|
||||
* @param[in] Text
|
||||
* @li exepts type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @li expects type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @param[in] Title
|
||||
* @li optional: exepts type const char*, default = NULL, this causes default title "Information"
|
||||
* @li optional: expects type const char*, default = NULL, this causes default title "Information"
|
||||
* @param[in] Icon
|
||||
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||
* @li optional: expects type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||
* @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: expects type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||
* @param[in] Width
|
||||
* @li optional: exepts type int, defines box width, default value = MSGBOX_MIN_WIDTH
|
||||
* @li optional: expects type int, defines box width, default value = MSGBOX_MIN_WIDTH
|
||||
* @param[in] Height
|
||||
* @li optional: exepts type int, defines box width, default value = MSGBOX_MIN_HEIGHT
|
||||
* @li optional: expects type int, defines box width, default value = MSGBOX_MIN_HEIGHT
|
||||
* @param[in] ShowButtons
|
||||
* @li optional: exepts type int, defines which buttons are available on screen, default value = mbCancel
|
||||
* @li optional: expects type int, defines which buttons are available on screen, default value = mbCancel
|
||||
* @see setShowedButtons()
|
||||
* @param[in] Default_result
|
||||
* @li optional: exepts type int, defines default result value, default value = mbrCancel
|
||||
* @li optional: expects type int, defines default result value, default value = mbrCancel
|
||||
* possible values are:
|
||||
* mbrYes = 0,
|
||||
* mbrNo = 1,
|
||||
@@ -148,7 +148,7 @@ class CMsgBox : public CHintBox
|
||||
* mbrNone = -1
|
||||
* @see setDefaultResult(), getResult(); getDefaultResult(), enableDefaultResultOnTimeOut()
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines the text modes for embedded text lines
|
||||
* @li optional: expects type int, defines the text modes for embedded text lines
|
||||
* Possible Modes defined in /gui/widget/textbox.h
|
||||
* AUTO_WIDTH
|
||||
* AUTO_HIGH
|
||||
@@ -175,22 +175,22 @@ class CMsgBox : public CHintBox
|
||||
|
||||
/**CMsgBox Constructor
|
||||
* @param[in] Text
|
||||
* @li exepts type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @li expects type const char*, this is the message text inside the window, text is UTF-8 encoded
|
||||
* @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: expects type neutrino_locale_t with locale entry from /system/locals.h default = NONEXISTANT_LOCALE, this causes default title "Information"
|
||||
* @param[in] Icon
|
||||
* @li optional: exepts type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||
* @li optional: expects type const char*, defines the icon name on the left side of titlebar, default = DEFAULT_HEADER_ICON
|
||||
* @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: expects type const char*, defines the picon name on the left side of message text, default = NULL (non Icon)
|
||||
* @param[in] Width
|
||||
* @li optional: exepts type int, defines box width, default value = MSGBOX_MIN_WIDTH
|
||||
* @li optional: expects type int, defines box width, default value = MSGBOX_MIN_WIDTH
|
||||
* @param[in] Height
|
||||
* @li optional: exepts type int, defines box width, default value = MSGBOX_MIN_HEIGHT
|
||||
* @li optional: expects type int, defines box width, default value = MSGBOX_MIN_HEIGHT
|
||||
* @param[in] ShowButtons
|
||||
* @li optional: exepts type int, defines which buttons are available on screen, default value = mbCancel
|
||||
* @li optional: expects type int, defines which buttons are available on screen, default value = mbCancel
|
||||
* @see setShowedButtons()
|
||||
* @param[in] Default_result
|
||||
* @li optional: exepts type int, defines default result value, default value = mbrCancel
|
||||
* @li optional: expects type int, defines default result value, default value = mbrCancel
|
||||
* possible values are:
|
||||
* mbrYes = 0,
|
||||
* mbrNo = 1,
|
||||
@@ -202,7 +202,7 @@ class CMsgBox : public CHintBox
|
||||
* mbrNone = -1
|
||||
* @see setDefaultResult(), getResult(); getDefaultResult(), enableDefaultResultOnTimeOut()
|
||||
* @param[in] text_mode
|
||||
* @li optional: exepts type int, defines the text modes for embedded text lines
|
||||
* @li optional: expects type int, defines the text modes for embedded text lines
|
||||
* Possible Modes defined in /gui/widget/textbox.h
|
||||
* AUTO_WIDTH
|
||||
* AUTO_HIGH
|
||||
@@ -249,7 +249,7 @@ class CMsgBox : public CHintBox
|
||||
/**
|
||||
* sets current default result as msg_result_t, independently from current selected button result
|
||||
* @param[in] Default_result
|
||||
* @li exepts type msg_result_t
|
||||
* @li expects type msg_result_t
|
||||
*/
|
||||
void setDefaultResult(const msg_result_t& Default_result){default_result = Default_result;}
|
||||
|
||||
@@ -258,7 +258,7 @@ class CMsgBox : public CHintBox
|
||||
* This member allows to set and overrides already defined buttons from constructor,
|
||||
* parameter ''ShowButtons'' accepts given types, find under button_define_t enumeration
|
||||
* @param[in] ShowButtons
|
||||
* @li optional: exepts type int, defines which buttons are available on screen, default value = mbCancel
|
||||
* @li optional: expects type int, defines which buttons are available on screen, default value = mbCancel
|
||||
* possible values are:
|
||||
* mbYes = 0x01,
|
||||
* mbNo = 0x02,
|
||||
@@ -277,14 +277,14 @@ class CMsgBox : public CHintBox
|
||||
/**
|
||||
* define timeout, timeout is enabled if parmeter 1 > -1, otherwise it will be disabled,
|
||||
* @param[in] Timeout
|
||||
* @li exepts type int
|
||||
* @li expects type int
|
||||
*/
|
||||
void setTimeOut(const int& Timeout){timeout = Timeout;};
|
||||
|
||||
/**
|
||||
* enable/disable defined timeout, otherwise it will be ignored
|
||||
* @param[in] enable
|
||||
* @li exepts type bool, default = true
|
||||
* @li expects type bool, default = true
|
||||
*/
|
||||
void enableDefaultResultOnTimeOut(bool enable = true);
|
||||
|
||||
@@ -293,17 +293,17 @@ class CMsgBox : public CHintBox
|
||||
* This member allows to define an alternate text for an already defined button,
|
||||
* Result values are not touched!
|
||||
* @param[in] showed_button
|
||||
* @li exepts type int
|
||||
* @li expects type int
|
||||
* @see setShowedButtons()
|
||||
* @param[in] text
|
||||
* @li exepts type std::string, sets the new text for button
|
||||
* @li expects type std::string, sets the new text for button
|
||||
*/
|
||||
void setButtonText(const int& showed_button, const std::string& text);
|
||||
|
||||
/**
|
||||
* enables background of buttons
|
||||
* @param[in] enable
|
||||
* @li exepts type bool, default = true
|
||||
* @li expects type bool, default = true
|
||||
*/
|
||||
void enableButtonBg(bool enable = true);
|
||||
|
||||
|
@@ -89,14 +89,14 @@ class CNaviBar : public CComponentsFrmChain
|
||||
/**
|
||||
* Enable or disable left icon
|
||||
* @param[in] enable
|
||||
* @li exepts type bool, default = true
|
||||
* @li expects type bool, default = true
|
||||
*/
|
||||
void enableLeftArrow(bool enable = true){nb_lpic_enable = enable; initCCItems();}
|
||||
|
||||
/**
|
||||
* Enable or disable right icon
|
||||
* @param[in] enable
|
||||
* @li exepts type bool, default = true
|
||||
* @li expects type bool, default = true
|
||||
*/
|
||||
void enableRightArrow(bool enable = true){nb_rpic_enable = enable; initCCItems();}
|
||||
|
||||
@@ -115,9 +115,9 @@ class CNaviBar : public CComponentsFrmChain
|
||||
/**
|
||||
* Enable or disable both icons at once.
|
||||
* @param[in] enable_left
|
||||
* @li exepts type bool, default = true
|
||||
* @li expects type bool, default = true
|
||||
* @param[in] enable_right
|
||||
* @li exepts type bool, default = true
|
||||
* @li expects type bool, default = true
|
||||
*/
|
||||
void enableArrows(bool enable_left = true, bool enable_right = true){enableLeftArrow(enable_left); enableRightArrow(enable_right);}
|
||||
|
||||
@@ -130,37 +130,37 @@ class CNaviBar : public CComponentsFrmChain
|
||||
/**
|
||||
* Sets font type for texts.
|
||||
* @param[in] font
|
||||
* @li exepts type Font*
|
||||
* @li expects type Font*
|
||||
*/
|
||||
void setFont(Font *font) {nb_font = font; initCCItems();}
|
||||
|
||||
/**
|
||||
* Sets left text.
|
||||
* @param[in] text
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
*/
|
||||
void setLeftText(const std::string& text) {nb_l_text = text; initCCItems();}
|
||||
|
||||
/**
|
||||
* Sets right text
|
||||
* @param[in] text
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
*/
|
||||
void setRightText(const std::string& text) {nb_r_text = text; initCCItems();}
|
||||
|
||||
/**
|
||||
* Sets left and right text at once.
|
||||
* @param[in] left
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
* @param[in] right
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
*/
|
||||
void setText(const std::string& left, const std::string& right) {setLeftText(left); setRightText(right);}
|
||||
|
||||
/**
|
||||
* Paint bar on screen.
|
||||
* @param[in] do_save_bg
|
||||
* @li optional: exepts type bool, default = CC_SAVE_SCREEN_YES.
|
||||
* @li optional: expects type bool, default = CC_SAVE_SCREEN_YES.
|
||||
*/
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
};
|
||||
|
@@ -227,9 +227,9 @@ class CTextBox : public sigc::trackable
|
||||
/**
|
||||
* Returns width of largest line from passed text
|
||||
* @param[in] text
|
||||
* @li exepts type std::string
|
||||
* @li expects type std::string
|
||||
* @param[in] font
|
||||
* @li exepts font type object
|
||||
* @li expects font type object
|
||||
* @return width of largest line as int
|
||||
* @see getMaxLineWidth(void)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user