X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgui%2Fewindowstyle.cpp;h=68a74e0c836bf551d5380e9a49a9262bc6436610;hb=10e7e45ae92d4fe06f70126ed256b87896dbc432;hp=4cfaa8d4c6637bd72fbc11803dafba202ed49bb8;hpb=127c6c59e89dbdf96a93659104efd91428569a06;p=vuplus_dvbapp diff --git a/lib/gui/ewindowstyle.cpp b/lib/gui/ewindowstyle.cpp index 4cfaa8d..68a74e0 100644 --- a/lib/gui/ewindowstyle.cpp +++ b/lib/gui/ewindowstyle.cpp @@ -9,6 +9,13 @@ eWindowStyle::~eWindowStyle() {} DEFINE_REF(eWindowStyleManager); +ePtr NewWindowStylePtr(void) +{ + ePtr ptr; + eWindowStyleManager::getInstance(ptr); + return ptr; +} + eWindowStyleManager::eWindowStyleManager() { m_instance = this; @@ -19,14 +26,14 @@ eWindowStyleManager::~eWindowStyleManager() m_instance = 0; } -void eWindowStyleManager::getStyle(ePtr &style) +void eWindowStyleManager::getStyle(int style_id, ePtr &style) { - style = m_current_style; + style = m_current_style[style_id]; } -void eWindowStyleManager::setStyle(eWindowStyle *style) +void eWindowStyleManager::setStyle(int style_id, eWindowStyle *style) { - m_current_style = style; + m_current_style[style_id] = style; } eWindowStyleManager *eWindowStyleManager::m_instance;