mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CComponentsButton: remove function blocks from header
Origin commit data
------------------
Commit: 19fa5e6418
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-20 (Fri, 20 Sep 2013)
This commit is contained in:
@@ -168,6 +168,16 @@ void CComponentsButton::initCaption()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CComponentsButton::setCaption(const std::string& text)
|
||||||
|
{
|
||||||
|
cc_btn_capt = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CComponentsButton::setCaption(const neutrino_locale_t locale_text)
|
||||||
|
{
|
||||||
|
cc_btn_capt = g_Locale->getText(locale_text);
|
||||||
|
}
|
||||||
|
|
||||||
void CComponentsButton::initCCBtnItems()
|
void CComponentsButton::initCCBtnItems()
|
||||||
{
|
{
|
||||||
initIcon();
|
initIcon();
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
#define __CC_BUTTONS_H__
|
#define __CC_BUTTONS_H__
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <global.h>
|
|
||||||
#include "cc.h"
|
#include "cc.h"
|
||||||
#include "cc_frm.h"
|
#include "cc_frm.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -85,9 +84,9 @@ class CComponentsButton : public CComponentsForm
|
|||||||
virtual void setButtonTextColor(fb_pixel_t caption_color){cc_btn_capt_col = caption_color;};
|
virtual void setButtonTextColor(fb_pixel_t caption_color){cc_btn_capt_col = caption_color;};
|
||||||
|
|
||||||
///set caption: parameter as string
|
///set caption: parameter as string
|
||||||
virtual void setCaption(const std::string& text){cc_btn_capt = text;};
|
virtual void setCaption(const std::string& text);
|
||||||
///set caption: parameter as locale
|
///set caption: parameter as locale
|
||||||
virtual void setCaption(const neutrino_locale_t locale_text){cc_btn_capt = g_Locale->getText(locale_text);};
|
virtual void setCaption(const neutrino_locale_t locale_text);
|
||||||
|
|
||||||
///reinitialize items
|
///reinitialize items
|
||||||
virtual void Refresh(){initCCBtnItems();};
|
virtual void Refresh(){initCCBtnItems();};
|
||||||
|
Reference in New Issue
Block a user