~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/mythmainwindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey), Jamie Bennett, Mario Limonciello, Dave Walker (Daviey)
  • Date: 2010-03-23 19:32:33 UTC
  • mfrom: (1.1.49 upstream)
  • Revision ID: james.westby@ubuntu.com-20100323193233-5sv9djoxtlmwt3ca
Tags: 0.23.0+fixes23789-0ubuntu1
[ Jamie Bennett ]
* Fix FTBFS on armel (LP: #537714)

[ Mario Limonciello ]
* mythtv-{common,backend}.{config,templates,postinst}: (LP: #483748)
  - Simplify debconf questions by avoiding showing the generated pw
  - Don't warn about mythtv group.
  - Don't notify about running mythtv-setup.  This is optional (but
    of course encouraged!)
* Set version to include a "+" delimitter.
* Restore libfaad-dev dependency. (LP: #546552)

[ Dave Walker (Daviey) ]
* New snapshot (r23789), based from 0.23-fixes.
* debian/control:
  - mythtv-frontend set to Conflict with mythflix, as it's dropped
    upstream. (LP: #544521)
  - Remove unnecessary and potentially problematic use of Pre-Depends.
  - Set the debug package to Priority extra.
  - Change *-perl Section's from libs to perl
  - add ${shlibs:Depends} for mythtv-common Depends field
  - Minor spelling fix.
  - Fixes the long description for one of the packages, ensuring the
    description doesn't exceed 80 characters.
  - Vcs-* set to -fixes, rather than -trunk.
* debian/rules:
  - Use debconf-updatepo to update translations when required
  - Ensure license files are not included in the binary packages, except 
    for debian/copyright.
  - Fixes the permissions of certain files in the packaging.
* debian/copyright:
  - updated to reflect that mythtv is GPL-2 only.
  - inserted better licence statement and Copyright reference.
* debian/mythtv-*.templates
  - Simplified strings; removed verbosity and improved readability.
* Prevent the maintainer scripts from failing in case any questions 
  can't be displayed.
* Added holding debian/mythtv-frontend.config, mainly to appease lintian.
* debian/mythtv-frontend.menu: Changed section to Applications/Graphics.
* debian/mythtv-backend.postinst: Load debconf libraries.
* debian/source.lintian-overrides: Removes the unecessary override of the 
  binNMU warnings.
* Fix perl binding installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
863
863
    GetMythUI()->GetScreenSettings(d->xbase, d->screenwidth, d->wmult,
864
864
                                   d->ybase, d->screenheight, d->hmult);
865
865
 
866
 
    if (d->xbase > 0 || d->screenwidth > 0 || d->ybase > 0 || d->screenheight > 0)
 
866
    if (GetMythDB()->GetNumSetting("GuiOffsetX") > 0 ||
 
867
        GetMythDB()->GetNumSetting("GuiWidth")   > 0 ||
 
868
        GetMythDB()->GetNumSetting("GuiOffsetY") > 0 ||
 
869
        GetMythDB()->GetNumSetting("GuiHeight")  > 0)
867
870
        d->does_fill_screen = false;
868
871
    else
869
872
        d->does_fill_screen = true;
872
875
    Qt::WindowFlags flags = Qt::Window;
873
876
 
874
877
    if (!GetMythDB()->GetNumSetting("RunFrontendInWindow", 0))
 
878
    {
 
879
        VERBOSE(VB_GENERAL, "Using Frameless Window");
875
880
        flags |= Qt::FramelessWindowHint;
876
 
   
 
881
    }
 
882
 
877
883
    if (d->does_fill_screen && !GetMythUI()->IsGeometryOverridden())
878
 
            setWindowState(Qt::WindowFullScreen);
 
884
    {
 
885
        VERBOSE(VB_GENERAL, "Using Full Screen Window");
 
886
        setWindowState(Qt::WindowFullScreen);
 
887
    }
879
888
 
880
889
    // Workarounds for Qt/Mac bugs
881
890
#ifdef Q_WS_MACX
1050
1059
        return d->widgetList.back();
1051
1060
    return NULL;
1052
1061
}
 
1062
/* FIXME: end compatibility */
1053
1063
 
1054
1064
void MythMainWindow::SetDrawEnabled(bool enable)
1055
1065
{
1067
1077
    usleep(50 * 1000);
1068
1078
}
1069
1079
 
1070
 
/* FIXME: end compatibility */
 
1080
void MythMainWindow::SetEffectsEnabled(bool enable)
 
1081
{
 
1082
    QVector<MythScreenStack *>::Iterator it;
 
1083
    for (it = d->stackList.begin(); it != d->stackList.end(); ++it)
 
1084
    {
 
1085
        if (enable)
 
1086
            (*it)->EnableEffects();
 
1087
        else
 
1088
            (*it)->DisableEffects();
 
1089
    }
 
1090
}
1071
1091
 
1072
1092
bool MythMainWindow::IsExitingToMain(void) const
1073
1093
{