Permalink
Browse files

Improve the group filter display on the Watch Recordings screen.

Refs #11027.  The first entry in the group list on the left is labeled
"All Programs - <current_group_filter>".  If the current filter is All
Programs, the label is just "All Programs".  This makes it very clear
which group filter is in effect even when the theme doesn't explicitly
add it ot the Watch Recordings screen.
  • Loading branch information...
1 parent 5173ecb commit 7c7b44a7da27add500990307144a1e477dcfaff6 @stichnot stichnot committed Dec 13, 2012
Showing with 12 additions and 1 deletion.
  1. +5 −0 mythtv/libs/libmyth/programinfo.cpp
  2. +7 −1 mythtv/programs/mythfrontend/playbackbox.cpp
@@ -4386,6 +4386,10 @@ static int init_tr(void)
QObject::tr("Default", "Recording Group Default") +
QObject::tr("Deleted", "Recording Group Deleted");
+ QString special_program_groups =
+ QObject::tr("All Programs - %1",
+ "Show all programs from a specific recording group");
+
QString storage_groups =
QObject::tr("Default", "Storage Group Name") +
QObject::tr("Live TV", "Storage Group Name") +
@@ -4399,6 +4403,7 @@ static int init_tr(void)
return (rec_profile_names.length() +
rec_profile_groups.length() +
display_rec_groups.length() +
+ special_program_groups.length() +
storage_groups.length() +
play_groups.length());
}
@@ -1337,7 +1337,13 @@ void PlaybackBox::UpdateUIGroupList(const QStringList &groupPreferences)
QString displayName = groupname;
if (displayName.isEmpty())
- displayName = ProgramInfo::i18n("All Programs");
+ {
+ if (m_recGroup == "All Programs")
+ displayName = ProgramInfo::i18n("All Programs");
+ else
+ displayName = ProgramInfo::i18n("All Programs - %1")
+ .arg(m_groupDisplayName);
+ }
item->SetText(displayName, "name");
item->SetText(displayName);

0 comments on commit 7c7b44a

Please sign in to comment.