Ticket #1350: mythplugins.wide.diff
File mythplugins.wide.diff, 6.2 KB (added by , 18 years ago) |
---|
-
mythweather/mythweather/weather.cpp
827 827 // locale starts with "US" or locale is a zip code 828 828 if (locale.left(2) == "US" || locale.left(5).contains(QRegExp("[0-9]{5,5}")) > 0) 829 829 { 830 // update page to show US radar images831 if (AnimatedImage)832 {833 AnimatedImage->SetSize(765, 500);834 AnimatedImage->SetSkip(0, 58);835 }836 837 830 if (container) 838 831 { 839 texttype = (UITextType *) container->GetType("header5");840 if (texttype)841 texttype->SetText(tr("doppler radar"));842 843 832 for (int x = 1; x <= 9; x++) 844 833 { 845 834 texttype = (UITextType *) container->GetType(QString("maplabel-%1") … … 855 844 if (texttype) 856 845 texttype->hide(); 857 846 } 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 }872 847 } 873 848 } 874 849 else 875 850 { 876 // show satellite images877 if (AnimatedImage)878 {879 AnimatedImage->SetSize(765, 500 - 58);880 AnimatedImage->SetSkip(0, 0);881 }882 883 851 if (container) 884 852 { 885 texttype = (UITextType *) container->GetType("header5");886 if (texttype)887 texttype->SetText(tr("satellite image"));888 889 853 for (int x = 1; x <= 9; x++) 890 854 { 891 855 texttype = (UITextType *) container->GetType(QString("maplabel-%1") … … 902 866 texttype->show(); 903 867 } 904 868 905 imagetype = (UIImageType *) container->GetType("logo");906 if (imagetype)907 {908 imagetype->SetSize(100, 80);909 imagetype->LoadImage();910 }911 912 869 imagetype = (UIImageType *) container->GetType("radarbk"); 913 870 if (imagetype) 914 871 { -
mythvideo/mythvideo/globalsettings.cpp
215 215 216 216 static HostSpinBox *VideoGalleryColumns() 217 217 { 218 HostSpinBox *gc = new HostSpinBox("VideoGalleryColsPerPage", 2, 5, 1);218 HostSpinBox *gc = new HostSpinBox("VideoGalleryColsPerPage", 2, 6, 1); 219 219 gc->setLabel(QObject::tr("Columns to display")); 220 220 gc->setValue(4); 221 221 return gc; -
mythvideo/mythvideo/videomanager.cpp
647 647 648 648 void VideoManager::grayOut(QPainter *tmp) 649 649 { 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 } 657 662 } 658 663 659 664 void VideoManager::paintEvent(QPaintEvent *e) … … 1809 1814 RefreshMovieList(); 1810 1815 update(infoRect); 1811 1816 } 1817 1818 /* vim: set sw=4 expandtab: */ -
mythvideo/mythvideo/videobrowser.cpp
165 165 166 166 void VideoBrowser::grayOut(QPainter *tmp) 167 167 { 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 } 173 179 } 174 180 175 181 void VideoBrowser::paintEvent(QPaintEvent *e) -
mythvideo/mythvideo/videoselected.cpp
126 126 127 127 void VideoSelected::grayOut(QPainter *tmp) 128 128 { 129 int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0);130 if (transparentFlag == 0)129 int transparentFlag = gContext->GetNumSetting("PlayBoxShading", 0); 130 if (transparentFlag == 0) 131 131 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 } 134 140 } 135 141 136 142 void VideoSelected::paintEvent(QPaintEvent *e) … … 478 484 m_state = 1; 479 485 update(fullRect); 480 486 } 487 488 /* vim: set sw=4 expandtab: */