mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsWindow: remove refresh()
initCCWItems() does the same, but is private
Origin commit data
------------------
Branch: ni/coolstream
Commit: de330ac39c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <driver/pictureviewer/pictureviewer.h>
|
#include <driver/pictureviewer/pictureviewer.h>
|
||||||
|
|
||||||
//#define DEBUG_CC
|
#define DEBUG_CC
|
||||||
|
|
||||||
class CComponents
|
class CComponents
|
||||||
{
|
{
|
||||||
@@ -515,8 +515,8 @@ class CComponentsWindow : public CComponentsForm
|
|||||||
~CComponentsWindow();
|
~CComponentsWindow();
|
||||||
|
|
||||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||||
void refresh(){initCCWItems();};
|
|
||||||
void setWindowCaption(const std::string& text){ccw_caption = text;};
|
void setWindowCaption(const std::string& text){ccw_caption = text;};
|
||||||
|
void setWindowCaption(neutrino_locale_t locale_text);
|
||||||
void setWindowIcon(const char* iconname){ccw_icon_name = iconname;};
|
void setWindowIcon(const char* iconname){ccw_icon_name = iconname;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -67,10 +67,18 @@ CComponentsWindow::~CComponentsWindow()
|
|||||||
delete ccw_head;
|
delete ccw_head;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CComponentsWindow::setWindowCaption(neutrino_locale_t locale_text)
|
||||||
|
{
|
||||||
|
ccw_caption = g_Locale->getText(locale_text);
|
||||||
|
}
|
||||||
|
|
||||||
void CComponentsWindow::initHeader()
|
void CComponentsWindow::initHeader()
|
||||||
{
|
{
|
||||||
if (ccw_head == NULL)
|
if (ccw_head){
|
||||||
ccw_head = new CComponentsHeader();
|
delete ccw_head;
|
||||||
|
ccw_head = NULL;
|
||||||
|
}
|
||||||
|
ccw_head = new CComponentsHeader();
|
||||||
|
|
||||||
ccw_head->setXPos(0);
|
ccw_head->setXPos(0);
|
||||||
ccw_head->setYPos(0);
|
ccw_head->setYPos(0);
|
||||||
@@ -89,6 +97,9 @@ void CComponentsWindow::initCCWItems()
|
|||||||
|
|
||||||
void CComponentsWindow::paint(bool do_save_bg)
|
void CComponentsWindow::paint(bool do_save_bg)
|
||||||
{
|
{
|
||||||
|
//prepare items before paint
|
||||||
|
initCCWItems();
|
||||||
|
|
||||||
//paint body
|
//paint body
|
||||||
paintInit(do_save_bg);
|
paintInit(do_save_bg);
|
||||||
|
|
||||||
|
@@ -512,7 +512,6 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
window->setWindowIcon(NEUTRINO_ICON_LOCK);
|
window->setWindowIcon(NEUTRINO_ICON_LOCK);
|
||||||
window->setWindowCaption("Test");
|
window->setWindowCaption("Test");
|
||||||
}
|
}
|
||||||
window->refresh();
|
|
||||||
|
|
||||||
if (!window->isPainted())
|
if (!window->isPainted())
|
||||||
window->paint();
|
window->paint();
|
||||||
|
Reference in New Issue
Block a user