MythTV  master
myththemebase.cpp
Go to the documentation of this file.
1 // MythTV
2 #include "libmythbase/mythdirs.h"
3 
4 #include "myththemebase.h"
5 #include "mythuiimage.h"
6 #include "mythmainwindow.h"
7 #include "mythscreentype.h"
8 #include "xmlparsebase.h"
9 #include "mythfontproperties.h"
10 #include "mythfontmanager.h"
11 #include "mythuihelper.h"
12 
14 {
15  m_background = new MythScreenStack(MainWindow, "background");
17 
19  GetGlobalFontManager()->LoadFonts(GetMythUI()->GetThemeDir(), "UI");
21  m_backgroundscreen = new MythScreenType(m_background, "backgroundscreen");
22 
23  (void)XMLParseBase::CopyWindowFromBase("backgroundwindow", m_backgroundscreen);
25  new MythScreenStack(MainWindow, "main stack", true);
26  new MythScreenStack(MainWindow, "popup stack");
27 }
28 
30 {
35 }
36 
38 {
42  GetGlobalFontManager()->LoadFonts(GetMythUI()->GetThemeDir(), "UI");
44 
45  m_background->PopScreen(nullptr, false, true);
46  m_backgroundscreen = new MythScreenType(m_background, "backgroundscreen");
47  (void)XMLParseBase::CopyWindowFromBase("backgroundwindow", m_backgroundscreen);
49 }
GetGlobalFontMap
FontMap * GetGlobalFontMap(void)
Definition: mythfontproperties.cpp:601
XMLParseBase::LoadBaseTheme
static bool LoadBaseTheme(void)
Definition: xmlparsebase.cpp:839
MythThemeBase::MythThemeBase
MythThemeBase(MythMainWindow *MainWindow)
Definition: myththemebase.cpp:13
MythScreenStack::DisableEffects
void DisableEffects(void)
Definition: mythscreenstack.h:37
XMLParseBase::ClearGlobalObjectStore
static void ClearGlobalObjectStore(void)
Definition: xmlparsebase.cpp:349
MythScreenStack
Definition: mythscreenstack.h:16
GetFontsDir
QString GetFontsDir(void)
Definition: mythdirs.cpp:341
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
MythThemeBase::m_background
MythScreenStack * m_background
Definition: myththemebase.h:21
mythdirs.h
mythuiimage.h
mythfontmanager.h
FontMap::Clear
void Clear(void)
Definition: mythfontproperties.cpp:571
mythfontproperties.h
MythThemeBase::~MythThemeBase
~MythThemeBase()
Definition: myththemebase.cpp:29
XMLParseBase::CopyWindowFromBase
static bool CopyWindowFromBase(const QString &windowname, MythScreenType *win)
Definition: xmlparsebase.cpp:912
GetGlobalFontManager
MythFontManager * GetGlobalFontManager(void)
Definition: mythfontmanager.cpp:286
xmlparsebase.h
MythThemeBase::m_backgroundscreen
MythScreenType * m_backgroundscreen
Definition: myththemebase.h:22
mythuihelper.h
MythFontManager::LoadFonts
void LoadFonts(const QString &directory, const QString &registeredFor)
Loads the fonts in font files within the given directory structure.
Definition: mythfontmanager.cpp:29
myththemebase.h
MythScreenStack::PopScreen
virtual void PopScreen(MythScreenType *screen=nullptr, bool allowFade=true, bool deleteScreen=true)
Definition: mythscreenstack.cpp:86
MythThemeBase::Reload
void Reload()
Definition: myththemebase.cpp:37
MythFontManager::ReleaseFonts
void ReleaseFonts(const QString &registeredFor)
Removes the font references for registeredFor, and unloads the application font if it's no longer in ...
Definition: mythfontmanager.cpp:117
GetMythUI
MythUIHelper * GetMythUI()
Definition: mythuihelper.cpp:66
mythmainwindow.h
MythScreenStack::AddScreen
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Definition: mythscreenstack.cpp:52
MythMainWindow
Definition: mythmainwindow.h:28
mythscreentype.h