|
MythTV
0.27pre
|
#include <mythuihelper.h>

Static Public Member Functions | |
| static void | ParseGeometryOverride (const QString &geometry) |
| Parse an X11 style command line geometry string. | |
| static void | SetX11Display (const QString &display) |
| This needs to be set before MythUIHelper is initialized so that the MythUIHelper::Init() can detect Xinerama setups. | |
| static QString | GetX11Display (void) |
| static MythUIHelper * | getMythUI (void) |
| static void | destroyMythUI (void) |
Static Public Attributes | |
| static QString | x11_display |
Protected Member Functions | |
| MythUIHelper () | |
| ~MythUIHelper () | |
Private Member Functions | |
| void | SetPalette (QWidget *widget) |
| void | InitializeScreenSettings (void) |
| void | ClearOldImageCache (void) |
| void | RemoveCacheDir (const QString &dirname) |
Private Attributes | |
| MythUIHelperPrivate * | d |
| QMutex | m_locationLock |
| QStringList | m_currentLocation |
Definition at line 42 of file mythuihelper.h.
|
protected |
Definition at line 386 of file mythuihelper.cpp.
Referenced by getMythUI().
|
protected |
Definition at line 391 of file mythuihelper.cpp.
| void MythUIHelper::Init | ( | MythUIMenuCallbacks & | cbs | ) |
Definition at line 396 of file mythuihelper.cpp.
Referenced by MythContextPrivate::Init().
| MythUIMenuCallbacks * MythUIHelper::GetMenuCBs | ( | void | ) |
Definition at line 409 of file mythuihelper.cpp.
Referenced by MythThemedMenu::handleAction().
Definition at line 424 of file mythuihelper.cpp.
Referenced by main(), reloadTheme(), resetTheme(), and MythContextPrivate::TempMainWindow().
Definition at line 491 of file mythuihelper.cpp.
Referenced by MythMainWindow::Init().
| MythImage * MythUIHelper::GetImageFromCache | ( | const QString & | url | ) |
Returns a reference counted image base on the URL.
Definition at line 512 of file mythuihelper.cpp.
Referenced by LoadCacheImage().
Definition at line 547 of file mythuihelper.cpp.
Referenced by LoadCacheImage(), and ImageLoader::LoadImage().
| void MythUIHelper::RemoveFromCacheByURL | ( | const QString & | url | ) |
Definition at line 641 of file mythuihelper.cpp.
Referenced by LoadCacheImage(), and RemoveFromCacheByFile().
| void MythUIHelper::RemoveFromCacheByFile | ( | const QString & | fname | ) |
Definition at line 662 of file mythuihelper.cpp.
Referenced by EditAlbumartDialog::customEvent(), EditAlbumartDialog::removeCachedImage(), and MetadataImageDownload::run().
| bool MythUIHelper::IsImageInCache | ( | const QString & | url | ) |
Definition at line 702 of file mythuihelper.cpp.
| QString MythUIHelper::GetThemeCacheDir | ( | void | ) |
Definition at line 715 of file mythuihelper.cpp.
Referenced by CacheImage(), ClearOldImageCache(), ThemeChooser::Load(), LoadCacheImage(), RemoveFromCacheByFile(), and RemoveFromCacheByURL().
Definition at line 535 of file mythuihelper.cpp.
Referenced by MythImage::DecrRef().
Definition at line 541 of file mythuihelper.cpp.
Referenced by MythImage::IncrRef().
Definition at line 486 of file mythuihelper.cpp.
Referenced by MythThemeBase::Init(), and MythThemeBase::Reload().
Definition at line 414 of file mythuihelper.cpp.
Referenced by SchemaUpgradeWizard::PromptForUpgrade(), MythContextPrivate::ShowConnectionFailurePopup(), and MythContextPrivate::ShowVersionMismatchPopup().
Definition at line 419 of file mythuihelper.cpp.
Referenced by Frontend::PlayRecording(), and NetworkControl::processPlay().
| void MythUIHelper::GetScreenSettings | ( | float & | wmult, |
| float & | hmult | ||
| ) |
Definition at line 839 of file mythuihelper.cpp.
Referenced by ConfigurationGroup::ConfigurationGroup(), MythUIVirtualKeyboard::Create(), ConfigurationDialog::dialogWidget(), ProfileGroupEditor::exec(), ImageView::ImageView(), MythMainWindow::Init(), TV::Init(), LoadScaleImage(), LoadScalePixmap(), MythDialog::MythDialog(), MythPopupBox::MythPopupBox(), MythProgressDialog::MythProgressDialog(), OSD::OverrideUIScale(), VirtualKeyboardQt::SwitchLayout(), and ThemeWidget().
Definition at line 845 of file mythuihelper.cpp.
| void MythUIHelper::GetScreenSettings | ( | int & | xbase, |
| int & | width, | ||
| float & | wmult, | ||
| int & | ybase, | ||
| int & | height, | ||
| float & | hmult | ||
| ) |
Definition at line 855 of file mythuihelper.cpp.
Definition at line 829 of file mythuihelper.cpp.
Referenced by TV::Init().
|
static |
Parse an X11 style command line geometry string.
Accepts strings like -geometry 800x600 or -geometry 800x600+112+22 to override the fullscreen and user default screen dimensions
Definition at line 877 of file mythuihelper.cpp.
Referenced by main().
Definition at line 975 of file mythuihelper.cpp.
Definition at line 1393 of file mythuihelper.cpp.
Referenced by MythUIGuideGrid::LoadImage(), XMLParse::parseKey(), XMLParse::parseKeyboard(), MythUIGuideGrid::SetArrow(), and ThemeWidget().
Definition at line 1293 of file mythuihelper.cpp.
Referenced by ImageView::GetScreenShot(), MythImage::Load(), and ThumbGenerator::loadFile().
| MythImage * MythUIHelper::LoadCacheImage | ( | QString | srcfile, |
| QString | label, | ||
| MythPainter * | painter, | ||
| ImageCacheMode | cacheMode = kCacheNormal |
||
| ) |
Returns a reference counted image from the cache.
Definition at line 1475 of file mythuihelper.cpp.
Referenced by MythUIImage::Load(), and ImageLoader::LoadImage().
| void MythUIHelper::ThemeWidget | ( | QWidget * | widget | ) |
Definition at line 1202 of file mythuihelper.cpp.
Referenced by MythMainWindow::Init(), MythDialog::MythDialog(), MythPopupBox::MythPopupBox(), and MythProgressDialog::MythProgressDialog().
| QString MythUIHelper::FindThemeDir | ( | const QString & | themename | ) |
Returns the full path to the theme denoted by themename.
If the theme cannot be found falls back to the DEFAULT_UI_THEME. If the DEFAULT_UI_THEME doesn't exist then returns an empty string.
| themename | The theme name. |
Definition at line 991 of file mythuihelper.cpp.
Referenced by LoadQtConfig(), main(), reloadTheme(), and resetTheme().
| QString MythUIHelper::FindMenuThemeDir | ( | const QString & | menuname | ) |
Returns the full path to the menu theme denoted by menuname.
If the theme cannot be found falls back to the default menu. If the default menu theme doesn't exist then returns an empty string.
| menuname | The menutheme name. |
Definition at line 1056 of file mythuihelper.cpp.
Referenced by LoadQtConfig().
| QString MythUIHelper::GetThemeDir | ( | void | ) |
Definition at line 1099 of file mythuihelper.cpp.
Referenced by MythThemedMenu::findMenuFile(), GetThemeSearchPath(), MythThemeBase::Init(), MythUIGuideGrid::LoadImage(), MythImageReader::MythImageReader(), mythplugin_config(), MythUIImage::ParseElement(), MythThemeBase::Reload(), runMenu(), and MythUIGuideGrid::SetArrow().
| QString MythUIHelper::GetThemeName | ( | void | ) |
Definition at line 1104 of file mythuihelper.cpp.
| QStringList MythUIHelper::GetThemeSearchPath | ( | void | ) |
Definition at line 1109 of file mythuihelper.cpp.
Referenced by FindThemeFile(), XMLParseBase::LoadBaseTheme(), MenuBase::LoadHelper(), loadScreens(), XMLParse::LoadTheme(), XMLParseBase::LoadWindowFromXML(), MythUIGuideGrid::parseDefaultCategoryColors(), and XMLParseBase::WindowExists().
| QString MythUIHelper::GetMenuThemeDir | ( | void | ) |
Definition at line 1094 of file mythuihelper.cpp.
Referenced by MythThemedMenu::findMenuFile().
Definition at line 1123 of file mythuihelper.cpp.
Referenced by MenuTheme().
| bool MythUIHelper::FindThemeFile | ( | QString & | filename | ) |
Definition at line 1259 of file mythuihelper.cpp.
Referenced by MythBrowser::Create(), MythWebPage::extension(), MythUIWebBrowser::Init(), LoadCacheImage(), LoadScaleImage(), and LoadScalePixmap().
| QFont MythUIHelper::GetBigFont | ( | void | ) |
Definition at line 1572 of file mythuihelper.cpp.
Referenced by MythDialog::MythDialog().
| QFont MythUIHelper::GetMediumFont | ( | void | ) |
Definition at line 1581 of file mythuihelper.cpp.
Referenced by VisualBase::drawWarning(), and MythDialog::MythDialog().
| QFont MythUIHelper::GetSmallFont | ( | void | ) |
Definition at line 1590 of file mythuihelper.cpp.
Referenced by MythDialog::MythDialog().
Definition at line 1599 of file mythuihelper.cpp.
Referenced by TV::ChangeChannel(), TV::DoPlay(), TV::DoTogglePauseFinish(), GLSingleView::GLSingleView(), TV::HandleStateChange(), SingleView::keyPressEvent(), GLSingleView::keyPressEvent(), DVDRingBuffer::safe_read(), SingleView::SingleView(), and TV::ToggleInputs().
Definition at line 1609 of file mythuihelper.cpp.
Referenced by GLSingleView::CleanUp(), SingleView::keyPressEvent(), GLSingleView::keyPressEvent(), TV::RestoreScreenSaver(), DVDRingBuffer::safe_read(), and SingleView::~SingleView().
Definition at line 1619 of file mythuihelper.cpp.
Referenced by MythMainWindow::customEvent(), CECAdapterPriv::HandleKeyPresses(), and NetworkControl::processKey().
Definition at line 1629 of file mythuihelper.cpp.
Referenced by MythMainWindow::customEvent(), VisualBase::VisualBase(), and ZMLivePlayer::ZMLivePlayer().
Definition at line 1638 of file mythuihelper.cpp.
Referenced by MythMainWindow::customEvent(), VisualBase::~VisualBase(), and ZMLivePlayer::~ZMLivePlayer().
Definition at line 1647 of file mythuihelper.cpp.
Referenced by MythMainWindow::customEvent().
Definition at line 1656 of file mythuihelper.cpp.
Definition at line 1661 of file mythuihelper.cpp.
|
static |
This needs to be set before MythUIHelper is initialized so that the MythUIHelper::Init() can detect Xinerama setups.
Definition at line 1671 of file mythuihelper.cpp.
Referenced by main().
|
static |
Definition at line 1677 of file mythuihelper.cpp.
Referenced by MythXDisplay::Open().
|
static |
Definition at line 45 of file mythuihelper.cpp.
Referenced by GetMythUI(), and OSD::OverrideUIScale().
Definition at line 60 of file mythuihelper.cpp.
Referenced by DestroyMythUI().
| void MythUIHelper::AddCurrentLocation | ( | QString | location | ) |
Definition at line 1684 of file mythuihelper.cpp.
Referenced by GameHandler::Launchgame(), playDisc(), runMusicPlayback(), runMusicSelection(), runMusicStreamPlayback(), and TVMenuCallback().
| QString MythUIHelper::RemoveCurrentLocation | ( | void | ) |
Definition at line 1692 of file mythuihelper.cpp.
Referenced by GameHandler::Launchgame(), playDisc(), runMusicPlayback(), runMusicSelection(), runMusicStreamPlayback(), and TVMenuCallback().
Definition at line 1702 of file mythuihelper.cpp.
Referenced by ThemeUpdateChecker::checkForUpdate(), Frontend::PlayRecording(), NetworkControl::processJump(), NetworkControl::processPlay(), and NetworkControl::processQuery().
| MThreadPool * MythUIHelper::GetImageThreadPool | ( | void | ) |
Definition at line 1755 of file mythuihelper.cpp.
Referenced by MythUIImage::Load(), and MythUIImage::~MythUIImage().
| double MythUIHelper::GetPixelAspectRatio | ( | void | ) | const |
Definition at line 1760 of file mythuihelper.cpp.
Referenced by GalleryUtil::ScaleToDest().
| QSize MythUIHelper::GetBaseSize | ( | void | ) | const |
Definition at line 1765 of file mythuihelper.cpp.
Referenced by OSD::OverrideUIScale(), and MythFontProperties::SetPixelSize().
Definition at line 1770 of file mythuihelper.cpp.
Referenced by OSD::OverrideUIScale(), and OSD::RevertUIScale().
Definition at line 1775 of file mythuihelper.cpp.
Referenced by OSD::OverrideUIScale(), MythUIGuideGrid::ParseElement(), and MythUIText::ParseElement().
|
private |
Definition at line 1156 of file mythuihelper.cpp.
Referenced by ThemeWidget().
Definition at line 727 of file mythuihelper.cpp.
Referenced by UpdateImageCache().
|
private |
Definition at line 791 of file mythuihelper.cpp.
Referenced by ClearOldImageCache().
|
static |
Definition at line 127 of file mythuihelper.h.
Referenced by GetX11Display(), and SetX11Display().
|
private |
Definition at line 155 of file mythuihelper.h.
Referenced by CacheImage(), ClearOldImageCache(), DoDisableScreensaver(), DoResetScreensaver(), DoRestoreScreensaver(), ExcludeFromCacheSize(), FindMenuThemeDir(), FindThemeDir(), GetBaseSize(), GetFontStretch(), GetImageFromCache(), GetImageThreadPool(), GetMenuCBs(), GetMenuThemeDir(), GetPixelAspectRatio(), GetScreenBounds(), GetScreenIsAsleep(), GetScreensaverEnabled(), GetScreenSettings(), GetThemeCacheDir(), GetThemeDir(), GetThemeName(), GetThemes(), GetThemeSearchPath(), IncludeInCacheSize(), Init(), IsImageInCache(), IsScreenSetup(), LoadCacheImage(), LoadQtConfig(), LoadScaleImage(), LoadScalePixmap(), MythUIHelper(), qtconfig(), RemoveFromCacheByFile(), RemoveFromCacheByURL(), SetFontStretch(), SetPalette(), ThemeWidget(), UpdateImageCache(), and ~MythUIHelper().
|
private |
Definition at line 157 of file mythuihelper.h.
Referenced by AddCurrentLocation(), GetCurrentLocation(), and RemoveCurrentLocation().
|
private |
Definition at line 158 of file mythuihelper.h.
Referenced by AddCurrentLocation(), GetCurrentLocation(), and RemoveCurrentLocation().
1.8.1.2