MythTV master
myththemebase.cpp
Go to the documentation of this file.
1// MythTV
3
4#include "myththemebase.h"
5#include "mythuiimage.h"
6#include "mythmainwindow.h"
7#include "mythscreentype.h"
8#include "xmlparsebase.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
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");
49}
void Clear(void)
void ReleaseFonts(const QString &registeredFor)
Removes the font references for registeredFor, and unloads the application font if it's no longer in ...
void LoadFonts(const QString &directory, const QString &registeredFor)
Loads the fonts in font files within the given directory structure.
virtual void PopScreen(MythScreenType *screen=nullptr, bool allowFade=true, bool deleteScreen=true)
void DisableEffects(void)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Screen in which all other widgets are contained and rendered.
MythScreenType * m_backgroundscreen
Definition: myththemebase.h:22
MythThemeBase(MythMainWindow *MainWindow)
MythScreenStack * m_background
Definition: myththemebase.h:21
static void ClearGlobalObjectStore(void)
static bool CopyWindowFromBase(const QString &windowname, MythScreenType *win)
static bool LoadBaseTheme(void)
QString GetFontsDir(void)
Definition: mythdirs.cpp:348
MythFontManager * GetGlobalFontManager(void)
FontMap * GetGlobalFontMap(void)
MythUIHelper * GetMythUI()