MythTV  master
myththemebase.cpp
Go to the documentation of this file.
1 // MythTV
2 #include "myththemebase.h"
3 #include "mythuiimage.h"
4 #include "mythmainwindow.h"
5 #include "mythscreentype.h"
6 #include "xmlparsebase.h"
7 #include "mythfontproperties.h"
8 #include "mythfontmanager.h"
9 #include "mythdirs.h"
10 #include "mythuihelper.h"
11 
13 {
14  m_background = new MythScreenStack(MainWindow, "background");
16 
18  GetGlobalFontManager()->LoadFonts(GetMythUI()->GetThemeDir(), "UI");
20  m_backgroundscreen = new MythScreenType(m_background, "backgroundscreen");
21 
22  (void)XMLParseBase::CopyWindowFromBase("backgroundwindow", m_backgroundscreen);
24  new MythScreenStack(MainWindow, "main stack", true);
25  new MythScreenStack(MainWindow, "popup stack");
26 }
27 
29 {
34 }
35 
37 {
41  GetGlobalFontManager()->LoadFonts(GetMythUI()->GetThemeDir(), "UI");
43 
44  m_background->PopScreen(nullptr, false, true);
45  m_backgroundscreen = new MythScreenType(m_background, "backgroundscreen");
46  (void)XMLParseBase::CopyWindowFromBase("backgroundwindow", m_backgroundscreen);
48 }
GetGlobalFontMap
FontMap * GetGlobalFontMap(void)
Definition: mythfontproperties.cpp:575
XMLParseBase::LoadBaseTheme
static bool LoadBaseTheme(void)
Definition: xmlparsebase.cpp:843
MythThemeBase::MythThemeBase
MythThemeBase(MythMainWindow *MainWindow)
Definition: myththemebase.cpp:12
MythScreenStack::DisableEffects
void DisableEffects(void)
Definition: mythscreenstack.h:36
XMLParseBase::ClearGlobalObjectStore
static void ClearGlobalObjectStore(void)
Definition: xmlparsebase.cpp:358
MythScreenStack
Definition: mythscreenstack.h:16
GetFontsDir
QString GetFontsDir(void)
Definition: mythdirs.cpp:309
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:545
mythfontproperties.h
MythThemeBase::~MythThemeBase
~MythThemeBase()
Definition: myththemebase.cpp:28
XMLParseBase::CopyWindowFromBase
static bool CopyWindowFromBase(const QString &windowname, MythScreenType *win)
Definition: xmlparsebase.cpp:916
GetGlobalFontManager
MythFontManager * GetGlobalFontManager(void)
Definition: mythfontmanager.cpp:273
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:28
myththemebase.h
MythScreenStack::PopScreen
virtual void PopScreen(MythScreenType *screen=nullptr, bool allowFade=true, bool deleteScreen=true)
Definition: mythscreenstack.cpp:83
MythThemeBase::Reload
void Reload()
Definition: myththemebase.cpp:36
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:104
GetMythUI
MythUIHelper * GetMythUI()
Definition: mythuihelper.cpp:66
mythmainwindow.h
MythScreenStack::AddScreen
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Definition: mythscreenstack.cpp:49
MythMainWindow
Definition: mythmainwindow.h:35
mythscreentype.h