Ticket #1350: mythplugins.wide.diff

File mythplugins.wide.diff, 6.2 KB (added by Robert Tsai <rtsai1111>, 18 years ago)
  • mythweather/mythweather/weather.cpp

     
    827827    // locale starts with "US" or locale is a zip code
    828828    if (locale.left(2) == "US" || locale.left(5).contains(QRegExp("[0-9]{5,5}")) > 0)
    829829    {
    830         // update page to show US radar images
    831         if (AnimatedImage)
    832         {
    833             AnimatedImage->SetSize(765, 500);
    834             AnimatedImage->SetSkip(0, 58);
    835         }
    836 
    837830        if (container)
    838831        {
    839             texttype = (UITextType *) container->GetType("header5");
    840             if (texttype)
    841                 texttype->SetText(tr("doppler radar"));
    842 
    843832            for (int x = 1; x <= 9; x++)
    844833            {
    845834                texttype = (UITextType *) container->GetType(QString("maplabel-%1")
     
    855844                if (texttype)
    856845                    texttype->hide();
    857846            }
    858 
    859             imagetype = (UIImageType *) container->GetType("logo");
    860             if (imagetype)
    861             {
    862                 imagetype->SetSize(80, 60);
    863                 imagetype->LoadImage();
    864             }
    865 
    866             imagetype = (UIImageType *) container->GetType("radarbk");
    867             if (imagetype)
    868             {
    869                 imagetype->SetImage("mw-map.png");
    870                 imagetype->LoadImage();
    871             }
    872847        }
    873848    }
    874849    else
    875850    {
    876        // show satellite images
    877        if (AnimatedImage)
    878         {
    879             AnimatedImage->SetSize(765, 500 - 58);
    880             AnimatedImage->SetSkip(0, 0);
    881         }
    882 
    883851        if (container)
    884852        {
    885             texttype = (UITextType *) container->GetType("header5");
    886             if (texttype)
    887                 texttype->SetText(tr("satellite image"));
    888 
    889853            for (int x = 1; x <= 9; x++)
    890854            {
    891855                texttype = (UITextType *) container->GetType(QString("maplabel-%1")
     
    902866                    texttype->show();
    903867            }
    904868
    905             imagetype = (UIImageType *) container->GetType("logo");
    906             if (imagetype)
    907             {
    908                 imagetype->SetSize(100, 80);
    909                 imagetype->LoadImage();
    910             }
    911 
    912869            imagetype = (UIImageType *) container->GetType("radarbk");
    913870            if (imagetype)
    914871            {
  • mythvideo/mythvideo/globalsettings.cpp

     
    215215
    216216static HostSpinBox *VideoGalleryColumns()
    217217{
    218     HostSpinBox *gc = new HostSpinBox("VideoGalleryColsPerPage", 2, 5, 1);
     218    HostSpinBox *gc = new HostSpinBox("VideoGalleryColsPerPage", 2, 6, 1);
    219219    gc->setLabel(QObject::tr("Columns to display"));
    220220    gc->setValue(4);
    221221    return gc;
  • mythvideo/mythvideo/videomanager.cpp

     
    647647
    648648void VideoManager::grayOut(QPainter *tmp)
    649649{
    650    int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);
    651    if (transparentFlag == 0)
    652        tmp->fillRect(QRect(QPoint(0, 0), size()), QBrush(QColor(10, 10, 10),
    653                      Dense4Pattern));
    654    else if (transparentFlag == 1)
    655        tmp->drawPixmap(0, 0, *bgTransBackup, 0, 0, (int)(800*wmult),
    656                        (int)(600*hmult));
     650    int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);
     651    if (transparentFlag == 0)
     652        tmp->fillRect(QRect(QPoint(0, 0), size()), QBrush(QColor(10, 10, 10),
     653            Dense4Pattern));
     654    else if (transparentFlag == 1)
     655    {
     656        int ww, hh;
     657        float wm, hm;
     658
     659        gContext->GetScreenSettings(ww, wm, hh, hm);
     660        tmp->drawPixmap(0, 0, *bgTransBackup, 0, 0, ww, hh);
     661    }
    657662}
    658663
    659664void VideoManager::paintEvent(QPaintEvent *e)
     
    18091814    RefreshMovieList();
    18101815    update(infoRect);
    18111816}
     1817
     1818/* vim: set sw=4 expandtab: */
  • mythvideo/mythvideo/videobrowser.cpp

     
    165165
    166166void VideoBrowser::grayOut(QPainter *tmp)
    167167{
    168    int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);
    169    if (transparentFlag == 0)
    170        tmp->fillRect(QRect(QPoint(0, 0), size()), QBrush(QColor(10, 10, 10), Dense4Pattern));
    171    else if (transparentFlag == 1)
    172        tmp->drawPixmap(0, 0, *bgTransBackup, 0, 0, (int)(800*wmult), (int)(600*hmult));
     168    int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);
     169    if (transparentFlag == 0)
     170        tmp->fillRect(QRect(QPoint(0, 0), size()), QBrush(QColor(10, 10, 10), Dense4Pattern));
     171    else if (transparentFlag == 1)
     172    {
     173        int ww, hh;
     174        float wm, hm;
     175
     176        gContext->GetScreenSettings(ww, wm, hh, hm);
     177        tmp->drawPixmap(0, 0, *bgTransBackup, 0, 0, ww, hh);
     178    }
    173179}
    174180
    175181void VideoBrowser::paintEvent(QPaintEvent *e)
  • mythvideo/mythvideo/videoselected.cpp

     
    126126
    127127void VideoSelected::grayOut(QPainter *tmp)
    128128{
    129    int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);
    130    if (transparentFlag == 0)
     129    int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);
     130    if (transparentFlag == 0)
    131131       tmp->fillRect(QRect(QPoint(0, 0), size()), QBrush(QColor(10, 10, 10), Dense4Pattern));
    132    else if (transparentFlag == 1)
    133        tmp->drawPixmap(0, 0, *bgTransBackup, 0, 0, (int)(800*wmult), (int)(600*hmult));
     132    else if (transparentFlag == 1)
     133    {
     134        int ww, hh;
     135        float wm, hm;
     136
     137        gContext->GetScreenSettings(ww, wm, hh, hm);
     138        tmp->drawPixmap(0, 0, *bgTransBackup, 0, 0, ww, hh);
     139    }
    134140}
    135141
    136142void VideoSelected::paintEvent(QPaintEvent *e)
     
    478484    m_state = 1;
    479485    update(fullRect);
    480486}
     487
     488/* vim: set sw=4 expandtab: */