diff -p -r -u -N -X /tmp/diff.exclude -x release.21111.0803bare -x release.21111.0803bareb release.21111.0803bare/mythtv/programs/mythfrontend/playbackbox.cpp release.21111.0803bareb/mythtv/programs/mythfrontend/playbackbox.cpp
|
|
PlaybackBox::PlaybackBox(BoxType ltype, |
324 | 324 | drawTransPixmap = new QPixmap(); |
325 | 325 | |
326 | 326 | episodeSort = gContext->GetSetting("PlayBoxEpisodeSort", "Date"); |
| 327 | showWatched = gContext->GetNumSetting("ShowWatched", 1); |
327 | 328 | |
328 | 329 | bool displayCat = gContext->GetNumSetting("DisplayRecGroupIsCategory", 0); |
329 | 330 | int initialFilt = gContext->GetNumSetting("QueryInitialFilter", 0); |
… |
… |
void PlaybackBox::updateSortOrder(QPaint |
810 | 811 | LayerSet *container = theme->GetSet("sortorder_info"); |
811 | 812 | if (container) |
812 | 813 | { |
| 814 | UITextType *type1 = (UITextType *)container->GetType("showwatched"); |
| 815 | if (type1) |
| 816 | { |
| 817 | QString newtag = "(4) "; |
| 818 | if (showWatched) |
| 819 | newtag += "Hide Watched"; |
| 820 | else |
| 821 | newtag += "Show Watched"; |
| 822 | type1->SetText(tr(newtag)); |
| 823 | } |
| 824 | |
813 | 825 | UITextType *type = (UITextType *)container->GetType("sortorder"); |
814 | 826 | if (type) |
815 | 827 | { |
… |
… |
bool PlaybackBox::FillList(bool useCache |
1914 | 1926 | tmpsubtitle.remove(QRegExp("^(The |A |An )")); |
1915 | 1927 | p->sortTitle = tmptitle + " - " + tmpsubtitle; |
1916 | 1928 | |
1917 | | if ((((p->recgroup == recGroup) || |
| 1929 | if ((showWatched || (! (p->programflags & FL_WATCHED))) && |
| 1930 | ( (((p->recgroup == recGroup) || |
1918 | 1931 | ((recGroup == "All Programs") && |
1919 | 1932 | (p->recgroup != "Deleted") && |
1920 | 1933 | (p->recgroup != "LiveTV" || LiveTVInAllPrograms))) && |
… |
… |
bool PlaybackBox::FillList(bool useCache |
1922 | 1935 | ((recGroupType[recGroup] == "category") && |
1923 | 1936 | ((p->category == recGroup ) || |
1924 | 1937 | ((p->category == "") && (recGroup == tr("Unknown")))) && |
1925 | | ( !recGroupPwCache.contains(p->recgroup)))) |
| 1938 | ( !recGroupPwCache.contains(p->recgroup))))) |
1926 | 1939 | { |
1927 | 1940 | if (viewMask != VIEW_NONE) |
1928 | 1941 | progLists[""].prepend(p); |
… |
… |
void PlaybackBox::keyPressEvent(QKeyEven |
4370 | 4383 | paintSkipUpdate = false; |
4371 | 4384 | update(drawTotalBounds); |
4372 | 4385 | } |
| 4386 | else if (action == "4") |
| 4387 | { |
| 4388 | showWatched = ! showWatched; |
| 4389 | gContext->SaveSetting("ShowWatched", (int)showWatched); |
| 4390 | connected = FillList(true); |
| 4391 | paintSkipUpdate = false; |
| 4392 | update(drawTotalBounds); |
| 4393 | } |
| 4394 | |
4373 | 4395 | else if (action == "MENU") |
4374 | 4396 | showMenu(); |
4375 | 4397 | else if (action == "NEXTFAV") |
diff -p -r -u -N -X /tmp/diff.exclude -x release.21111.0803bare -x release.21111.0803bareb release.21111.0803bare/mythtv/programs/mythfrontend/playbackbox.h release.21111.0803bareb/mythtv/programs/mythfrontend/playbackbox.h
|
|
class PlaybackBox : public MythDialog |
350 | 350 | QString formatTime; |
351 | 351 | |
352 | 352 | QString episodeSort; |
| 353 | bool showWatched; |
| 354 | |
353 | 355 | /// titleView controls showing titles in group list |
354 | 356 | bool titleView; |
355 | 357 | /// useCategories controls showing categories in group list |