Ticket #6813: 194-Upcoming.norecording.display.patch
File 194-Upcoming.norecording.display.patch, 5.4 KB (added by , 14 years ago) |
---|
-
mythtv/programs/mythfrontend/playbackbox.cpp
old new bool PlaybackBox::Create() 543 543 m_sortOrderText = dynamic_cast<MythUIText *> (GetChild("sortorder")); 544 544 m_showWatchedText = dynamic_cast<MythUIText *> (GetChild("showwatched")); 545 545 546 m_previewTopline = dynamic_cast<MythUIText *> (GetChild("previewtopline")); 547 m_previewMidline = dynamic_cast<MythUIText *> (GetChild("previewmidline")); 548 m_previewBotline = dynamic_cast<MythUIText *> (GetChild("previewbotline")); 549 m_previewConline = dynamic_cast<MythUIText *> (GetChild("previewconline")); 550 546 551 m_previewImage = dynamic_cast<MythUIImage *>(GetChild("preview")); 547 552 m_fanart = dynamic_cast<MythUIImage *>(GetChild("fanart")); 548 553 m_banner = dynamic_cast<MythUIImage *>(GetChild("banner")); … … void PlaybackBox::UpdateUIListItem( 896 901 if (jobState) 897 902 jobState->DisplayState(job); 898 903 899 if (m_previewImage) 904 if (pginfo->recstatus >= rsWillRecord) 905 { 906 // Upcoming recording info 907 908 if (m_previewImage) 909 m_previewImage->Reset(); 910 911 if (m_previewTopline) 912 { 913 m_previewTopline->SetText(pginfo->title); 914 m_previewTopline->Show(); 915 } 916 917 if (pginfo->recstatus == rsWillRecord) 918 { 919 int daysout = QDate::currentDate().daysTo(pginfo->recstartts.date()); 920 QString t1, t2; 921 922 if (daysout == 0) 923 { 924 t1 = "Will be recorded"; 925 t2 = "Today"; 926 } 927 else if (daysout == 1) 928 { 929 t1 = "Will be recorded"; 930 t2 = "Tomorrow"; 931 } 932 else 933 { 934 t1 = "Will be recorded on"; 935 t2 = pginfo->recstartts.date().toString(); 936 } 937 if (m_previewMidline) 938 m_previewMidline->SetText(t1); 939 940 if (m_previewBotline) 941 m_previewBotline->SetText(t2); 942 } 943 else // will not record 944 { 945 if (m_previewMidline) 946 m_previewMidline->SetText("Will Not Be Recorded"); 947 948 if (m_previewBotline) 949 m_previewBotline->SetText(""); 950 } 951 if (m_previewConline) 952 { 953 if (pginfo->recstatus == rsConflict) 954 m_previewConline->SetText("Due to a conflict"); 955 else 956 m_previewConline->SetText(""); 957 } 958 } 959 else 900 960 { 901 if (pginfo->recstatus <= rsRecording) 961 // currently recorded file 962 963 if (m_previewTopline) 964 m_previewTopline->Reset(); 965 966 if (m_previewMidline) 967 m_previewMidline->Reset(); 968 969 if (m_previewBotline) 970 m_previewBotline->Reset(); 971 972 if (m_previewConline) 973 m_previewConline->Reset(); 974 975 if (m_previewImage) 902 976 { 903 977 m_previewImage->SetFilename(oldimgfile); 904 978 m_previewImage->Load(); 905 979 } 906 else907 m_previewImage->Reset();908 980 } 909 981 910 982 if (m_fanart || m_banner || m_coverart) -
mythtv/programs/mythfrontend/playbackbox.h
old new class PlaybackBox : public ScheduleCommo 340 340 MythUIText *m_sortOrderText; 341 341 MythUIText *m_showWatchedText; 342 342 343 MythUIText *m_previewTopline; 344 MythUIText *m_previewMidline; 345 MythUIText *m_previewBotline; 346 MythUIText *m_previewConline; 347 343 348 MythUIImage *m_previewImage; 344 349 MythUIImage *m_fanart; 345 350 MythUIImage *m_banner; -
mythtv/themes/MythCenter-wide/recordings-ui.xml
old new 340 340 <template>%|"SUBTITLE|"% %STARS% %DESCRIPTION%</template> 341 341 </textarea> 342 342 343 <shape name="previewshape"> 344 <area>920,410,320,240</area> 345 <type>box</type> 346 <fill color="#000000" alpha="255" /> 347 <line color="#FFFFFF" alpha="255" width="1" /> 348 </shape> 349 350 <textarea name="previewtopline" from="basetextarea"> 351 <area>930,460,300,40</area> 352 <align>center</align> 353 </textarea> 354 355 <textarea name="previewmidline" from="previewtopline"> 356 <area>930,510,300,40</area> 357 </textarea> 358 359 <textarea name="previewbotline" from="previewtopline"> 360 <area>930,560,300,40</area> 361 </textarea> 362 363 <textarea name="previewconline" from="previewtopline"> 364 <area>930,560,300,40</area> 365 </textarea> 366 343 367 <imagetype name="preview"> 344 368 <area>920,410,320,240</area> 345 369 <preserveaspect>true</preserveaspect>