Ticket #10161: lazystrings_v9.patch
File lazystrings_v9.patch, 4.2 KB (added by , 14 years ago) |
---|
-
mythtv/programs/mythfrontend/playbackbox.cpp
diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp index 2e65654..296e021 100644
a b void PlaybackBox::UpdateUIListItem(MythUIButtonListItem *item, 824 824 825 825 SetItemIcons(item, pginfo); 826 826 827 QMap<AudioProps, QString> audioFlags; 828 audioFlags[AUD_DOLBY] = "dolby"; 829 audioFlags[AUD_SURROUND] = "surround"; 830 audioFlags[AUD_STEREO] = "stereo"; 831 audioFlags[AUD_MONO] = "mono"; 832 833 QMap<VideoProps, QString> videoFlags; 834 videoFlags[VID_1080] = "hd1080"; 835 videoFlags[VID_720] = "hd720"; 836 videoFlags[VID_HDTV] = "hdtv"; 837 videoFlags[VID_WIDESCREEN] = "widescreen"; 838 839 QMap<SubtitleTypes, QString> subtitleFlags; 840 subtitleFlags[SUB_SIGNED] = "deafsigned"; 841 subtitleFlags[SUB_ONSCREEN] = "onscreensub"; 842 subtitleFlags[SUB_NORMAL] = "subtitles"; 843 subtitleFlags[SUB_HARDHEAR] = "cc"; 844 845 QMap<AudioProps, QString>::iterator ait; 846 for (ait = audioFlags.begin(); ait != audioFlags.end(); ++ait) 847 { 848 if (pginfo->GetAudioProperties() & ait.key()) 849 item->DisplayState(ait.value(), "audioprops"); 850 } 851 852 QMap<VideoProps, QString>::iterator vit; 853 for (vit = videoFlags.begin(); vit != videoFlags.end(); ++vit) 854 { 855 if (pginfo->GetVideoProperties() & vit.key()) 856 item->DisplayState(vit.value(), "videoprops"); 857 } 858 859 QMap<SubtitleTypes, QString>::iterator sit; 860 for (sit = subtitleFlags.begin(); sit != subtitleFlags.end(); ++sit) 861 { 862 if (pginfo->GetSubtitleType() & sit.key()) 863 item->DisplayState(sit.value(), "subtitletypes"); 864 } 865 866 item->DisplayState(pginfo->GetCategoryType(), "categorytype"); 867 827 868 QString rating = QString::number(pginfo->GetStars(10)); 828 869 829 870 item->DisplayState(rating, "ratingstate"); … … void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item) 1316 1357 1317 1358 ProgramList &progList = *pmit; 1318 1359 1360 #if 0 1319 1361 QMap<AudioProps, QString> audioFlags; 1320 1362 audioFlags[AUD_DOLBY] = "dolby"; 1321 1363 audioFlags[AUD_SURROUND] = "surround"; … … void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item) 1333 1375 subtitleFlags[SUB_ONSCREEN] = "onscreensub"; 1334 1376 subtitleFlags[SUB_NORMAL] = "subtitles"; 1335 1377 subtitleFlags[SUB_HARDHEAR] = "cc"; 1378 #endif 1336 1379 1337 1380 ProgramList::iterator it = progList.begin(); 1338 1381 for (; it != progList.end(); ++it) … … void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item) 1344 1387 MythUIButtonListItem *item = 1345 1388 new PlaybackBoxListItem(this, m_recordingList, *it); 1346 1389 1390 #if 0 1347 1391 QString state = extract_main_state(**it, m_player); 1348 1392 1349 1393 item->SetFontState(state); … … void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item) 1385 1429 } 1386 1430 1387 1431 item->DisplayState((*it)->GetCategoryType(), "categorytype"); 1432 #endif 1388 1433 } 1389 1434 1390 1435 if (m_noRecordingsText) -
mythtv/programs/mythfrontend/playbackboxlistitem.cpp
diff --git a/mythtv/programs/mythfrontend/playbackboxlistitem.cpp b/mythtv/programs/mythfrontend/playbackboxlistitem.cpp index 79772ab..f0c0663 100644
a b PlaybackBoxListItem::PlaybackBoxListItem( 9 9 pbbox(parent), needs_update(true) 10 10 { 11 11 } 12 /* 12 13 13 void PlaybackBoxListItem::SetToRealButton( 14 14 MythUIStateType *button, bool selected) 15 15 { … … void PlaybackBoxListItem::SetToRealButton( 20 20 } 21 21 MythUIButtonListItem::SetToRealButton(button, selected); 22 22 } 23 */ -
mythtv/programs/mythfrontend/playbackboxlistitem.h
diff --git a/mythtv/programs/mythfrontend/playbackboxlistitem.h b/mythtv/programs/mythfrontend/playbackboxlistitem.h index 954161f..f5d21a9 100644
a b class PlaybackBoxListItem : public MythUIButtonListItem 14 14 public: 15 15 PlaybackBoxListItem(PlaybackBox *parent, MythUIButtonList *lbtype, ProgramInfo *pi); 16 16 17 //virtual void SetToRealButton(MythUIStateType *button, bool selected);17 virtual void SetToRealButton(MythUIStateType *button, bool selected); 18 18 19 19 private: 20 20 PlaybackBox *pbbox;