mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
neutrino menu classes: clean up, only comments removed
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1046 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0aed74d1ec
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-01-26 (Wed, 26 Jan 2011)
Origin message was:
------------------
*neutrino menu classes: clean up, only comments removed
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1046 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -122,7 +122,7 @@ void CMenuItem::setItemColors(const bool select_mode, const fb_pixel_t &def_col
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMenuItem::paintItemBackground (const bool select_mode, /*const int &item_x, const int &item_y, const int &width,*/ const int &height)
|
void CMenuItem::paintItemBackground (const bool select_mode, const int &height)
|
||||||
{
|
{
|
||||||
CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
||||||
|
|
||||||
@@ -161,21 +161,21 @@ void CMenuItem::paintItemCaption(const bool select_mode, const int &height, cons
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMenuItem::paintItem(const bool select_mode, /*int &start_x, int &start_y, int &width,*/ int &height)
|
void CMenuItem::paintItem(const bool select_mode, const int &height)
|
||||||
{
|
{
|
||||||
// //set colors
|
// //set colors
|
||||||
// setItemColors(select_mode);
|
// setItemColors(select_mode);
|
||||||
|
|
||||||
//paint item background
|
//paint item background
|
||||||
paintItemBackground(select_mode, /*start_x, start_y, width,*/ height);
|
paintItemBackground(select_mode, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMenuItem::paintItemButton(/*const int frame_height, */const bool select_mode, const std::string &icon_Name, const bool icon_centered)
|
void CMenuItem::paintItemButton(const bool select_mode, const std::string &icon_Name, const bool icon_centered)
|
||||||
{
|
{
|
||||||
CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
||||||
bool selected = select_mode;
|
bool selected = select_mode;
|
||||||
int height = getHeight();/*frame_height;*/
|
int height = getHeight();/*item_height;*/
|
||||||
bool icon_painted = false;
|
bool icon_painted = false;
|
||||||
bool centered = icon_centered;
|
bool centered = icon_centered;
|
||||||
|
|
||||||
@@ -1141,10 +1141,10 @@ int CMenuOptionChooser::paint( bool selected , bool /*last*/)
|
|||||||
setItemColors(selected);
|
setItemColors(selected);
|
||||||
|
|
||||||
//paint item
|
//paint item
|
||||||
paintItem(selected, /*x, y, dx,*/ height);
|
paintItem(selected, height);
|
||||||
|
|
||||||
//paint item icon
|
//paint item icon
|
||||||
paintItemButton(/*height, */selected, NEUTRINO_ICON_BUTTON_OKAY);
|
paintItemButton(selected, NEUTRINO_ICON_BUTTON_OKAY);
|
||||||
|
|
||||||
//paint text
|
//paint text
|
||||||
paintItemCaption(selected, height , optionNameString.c_str(), l_option);
|
paintItemCaption(selected, height , optionNameString.c_str(), l_option);
|
||||||
|
Reference in New Issue
Block a user