mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsHeader/Window: add possibility to return header height
Origin commit data
------------------
Commit: ca42d9ba74
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-15 (Fri, 15 Mar 2013)
This commit is contained in:
@@ -71,16 +71,17 @@ void CComponentsWindow::initVarWindow()
|
||||
//CComponentsForm
|
||||
initVarForm();
|
||||
cc_item_type = CC_ITEMTYPE_FRM_WINDOW;
|
||||
|
||||
ccw_head = NULL;
|
||||
ccw_caption = "";
|
||||
ccw_icon_name = NULL;
|
||||
|
||||
//using current screen settings for default dimensions
|
||||
width = frameBuffer->getScreenWidth();
|
||||
height = frameBuffer->getScreenHeight();
|
||||
x=getScreenStartX(width);
|
||||
y=getScreenStartY(height);
|
||||
|
||||
ccw_head = NULL;
|
||||
ccw_caption = "";
|
||||
ccw_icon_name = NULL;
|
||||
ccw_start_y = 0;
|
||||
|
||||
setShadowOnOff(true);
|
||||
}
|
||||
@@ -106,9 +107,17 @@ void CComponentsWindow::initHeader()
|
||||
ccw_head->setWidth(width);
|
||||
ccw_head->setHeaderIcon(ccw_icon_name);
|
||||
ccw_head->setHeaderText(ccw_caption);
|
||||
ccw_head->initCCHeaderItems();
|
||||
ccw_start_y = ccw_head->getHeight();
|
||||
}
|
||||
}
|
||||
|
||||
int CComponentsWindow::getStartY()
|
||||
{
|
||||
initHeader();
|
||||
return ccw_start_y;
|
||||
}
|
||||
|
||||
void CComponentsWindow::initCCWItems()
|
||||
{
|
||||
#ifdef DEBUG_CC
|
||||
|
Reference in New Issue
Block a user