mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
gui/widget/menue.cpp: add menu hints paint
This commit is contained in:
@@ -96,6 +96,9 @@ class CMenuItem
|
||||
std::string iconName;
|
||||
std::string selected_iconName;
|
||||
std::string iconName_Info_right;
|
||||
std::string hintIcon;
|
||||
neutrino_locale_t hint;
|
||||
|
||||
CMenuItem();
|
||||
virtual ~CMenuItem(){}
|
||||
|
||||
@@ -112,6 +115,7 @@ class CMenuItem
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
virtual int getYPosition(void) const { return y; }
|
||||
|
||||
virtual bool isSelectable(void) const
|
||||
{
|
||||
@@ -137,6 +141,7 @@ class CMenuItem
|
||||
virtual void paintItemSlider( const bool select_mode, const int &item_height, const int &optionvalue, const int &factor, const char * left_text=NULL, const char * right_text=NULL);
|
||||
|
||||
virtual int isMenueOptionChooser(void) const{return 0;}
|
||||
void setHint(std::string icon, neutrino_locale_t text) { hintIcon = icon; hint = text; }
|
||||
};
|
||||
|
||||
class CMenuSeparator : public CMenuItem
|
||||
@@ -420,7 +425,10 @@ class CMenuWidget : public CMenuTarget
|
||||
fb_pixel_t *background;
|
||||
int full_width, full_height;
|
||||
bool savescreen;
|
||||
|
||||
int hint_height;
|
||||
bool has_hints; // is any items has hints
|
||||
bool hint_painted; // is hint painted
|
||||
|
||||
unsigned int item_start_y;
|
||||
unsigned int current_page;
|
||||
unsigned int total_pages;
|
||||
@@ -470,6 +478,7 @@ class CMenuWidget : public CMenuTarget
|
||||
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};
|
||||
void enableFade(bool _enable) { fade = _enable; };
|
||||
void enableSaveScreen(bool enable);
|
||||
void paintHint(int num);
|
||||
enum
|
||||
{
|
||||
MENU_POS_CENTER ,
|
||||
|
Reference in New Issue
Block a user