mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
- helpbox: replace fixed value with a scalable one
Signed-off-by: Thilo Graf <dbt@novatux.de> Merged with subsequently submitted build fix.
This commit is contained in:
@@ -157,7 +157,7 @@ void Helpbox::addSeparatorLine(const int& line_height, const int& line_indent)
|
|||||||
addWindowItem(line);
|
addWindowItem(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Helpbox::addSeparator(const int& line_height)
|
void Helpbox::addSeparator(const int& line_height, const int& line_indent)
|
||||||
{
|
{
|
||||||
CComponentsItem *pre_item = !ccw_body->empty() ? ccw_body->back() : NULL; //get the last current item
|
CComponentsItem *pre_item = !ccw_body->empty() ? ccw_body->back() : NULL; //get the last current item
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ void Helpbox::addSeparator(const int& line_height)
|
|||||||
line->setPageNumber(page);
|
line->setPageNumber(page);
|
||||||
|
|
||||||
int w_body = ccw_body->getWidth();
|
int w_body = ccw_body->getWidth();
|
||||||
line->setWidth(w_body - 40);
|
line->setWidth(w_body - 2*line_indent);
|
||||||
line->setColorBody(ccw_body->getColorBody());
|
line->setColorBody(ccw_body->getColorBody());
|
||||||
|
|
||||||
addWindowItem(line);
|
addWindowItem(line);
|
||||||
|
@@ -161,7 +161,8 @@ public:
|
|||||||
void addSeparatorLine( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT,
|
void addSeparatorLine( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT,
|
||||||
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT);
|
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT);
|
||||||
///adds a simple empty separator as horizontal space, arg 'line_height' defines the space of full separator height
|
///adds a simple empty separator as horizontal space, arg 'line_height' defines the space of full separator height
|
||||||
void addSeparator( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT);
|
void addSeparator( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT,
|
||||||
|
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT);
|
||||||
|
|
||||||
void addPagebreak();
|
void addPagebreak();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user