Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tooltips: Lots more..
  • Loading branch information
Mark Clarkstone authored and perexg committed Jan 25, 2016
1 parent d750b24 commit 06d9721
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/dvr/dvr_autorec.c
Expand Up @@ -970,37 +970,50 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_BOOL,
.id = "enabled",
.name = N_("Enabled"),
.desc = N_("Enable/disable auto-rec rule."),
.off = offsetof(dvr_autorec_entry_t, dae_enabled),
},
{
.type = PT_STR,
.id = "name",
.name = N_("Name"),
.desc = N_("The name given to the rule."),
.off = offsetof(dvr_autorec_entry_t, dae_name),
},
{
.type = PT_STR,
.id = "directory",
.name = N_("Directory"),
.desc = N_("When specified, this setting overrides the "
"subdirectory rules (except the base directory) "
"specified by the DVR configuration and puts all "
"recordings done by this entry into the specified "
"subdirectory. See Help for more info."),
.off = offsetof(dvr_autorec_entry_t, dae_directory),
},
{
.type = PT_STR,
.id = "title",
.name = N_("Title (regexp)"),
.desc = N_("The title of the programme to look for. Note that "
"this accepts case- insensitive regular expressions."),
.set = dvr_autorec_entry_class_title_set,
.off = offsetof(dvr_autorec_entry_t, dae_title),
},
{
.type = PT_BOOL,
.id = "fulltext",
.name = N_("Full-text"),
.desc = N_("When the fulltext is checked, the title pattern is "
"matched against title, subtitle, summary and description."),
.off = offsetof(dvr_autorec_entry_t, dae_fulltext),
},
{
.type = PT_STR,
.id = "channel",
.name = N_("Channel"),
.desc = N_("The channel on which this rule applies, i.e. the "
"channel you’re aiming to record."),
.set = dvr_autorec_entry_class_channel_set,
.get = dvr_autorec_entry_class_channel_get,
.rend = dvr_autorec_entry_class_channel_rend,
Expand All @@ -1010,6 +1023,8 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "tag",
.name = N_("Channel tag"),
.desc = N_("A channel tag (e.g. a group of channels) on which "
"this rule applies."),
.set = dvr_autorec_entry_class_tag_set,
.get = dvr_autorec_entry_class_tag_get,
.rend = dvr_autorec_entry_class_tag_rend,
Expand All @@ -1020,6 +1035,9 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "start",
.name = N_("Start after"),
.desc = N_("An event which starts between this “start after” "
"and “start before” will be matched (including "
"boundary values)."),
.set = dvr_autorec_entry_class_start_set,
.get = dvr_autorec_entry_class_start_get,
.list = dvr_autorec_entry_class_time_list_,
Expand All @@ -1029,6 +1047,9 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "start_window",
.name = N_("Start before"),
.desc = N_("An event which starts between this “start after” "
"and “start before” will be matched (including "
"boundary values)."),
.set = dvr_autorec_entry_class_start_window_set,
.get = dvr_autorec_entry_class_start_window_get,
.list = dvr_autorec_entry_class_time_list_,
Expand All @@ -1038,6 +1059,8 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_TIME,
.id = "start_extra",
.name = N_("Extra start time"),
.desc = N_("Start recording earlier than the defined start "
"time by x minutes."),
.off = offsetof(dvr_autorec_entry_t, dae_start_extra),
.list = dvr_autorec_entry_class_extra_list,
.opts = PO_DURATION | PO_SORTKEY | PO_ADVANCED
Expand All @@ -1046,6 +1069,8 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_TIME,
.id = "stop_extra",
.name = N_("Extra stop time"),
.desc = N_("Continue recording for x minutes after scheduled "
"stop time"),
.off = offsetof(dvr_autorec_entry_t, dae_stop_extra),
.list = dvr_autorec_entry_class_extra_list,
.opts = PO_DURATION | PO_SORTKEY | PO_ADVANCED
Expand All @@ -1055,6 +1080,7 @@ const idclass_t dvr_autorec_entry_class = {
.islist = 1,
.id = "weekdays",
.name = N_("Days of week"),
.desc = N_("Days of the week which the rule should apply."),
.set = dvr_autorec_entry_class_weekdays_set,
.get = dvr_autorec_entry_class_weekdays_get_,
.list = dvr_autorec_entry_class_weekdays_list,
Expand All @@ -1065,6 +1091,9 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_INT,
.id = "minduration",
.name = N_("Minimum duration"),
.desc = N_("The minimal duration of a matching event - in "
"other words, only match programmes that are no "
"shorter than this duration."),
.list = dvr_autorec_entry_class_minduration_list,
.off = offsetof(dvr_autorec_entry_t, dae_minduration),
.opts = PO_ADVANCED
Expand All @@ -1073,6 +1102,9 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_INT,
.id = "maxduration",
.name = N_("Maximum duration"),
.desc = N_("The maximal duration of a matching event - in "
"other words, only match programmes that are no "
"longer than this duration."),
.list = dvr_autorec_entry_class_maxduration_list,
.off = offsetof(dvr_autorec_entry_t, dae_maxduration),
.opts = PO_ADVANCED
Expand All @@ -1081,6 +1113,8 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_U32,
.id = "content_type",
.name = N_("Content type"),
.desc = N_("The content type (Movie/Drama, Sports, etc.) to "
"be used to filter matching events/programmes."),
.list = dvr_autorec_entry_class_content_type_list,
.off = offsetof(dvr_autorec_entry_t, dae_content_type),
.opts = PO_ADVANCED
Expand All @@ -1089,6 +1123,11 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_U32,
.id = "pri",
.name = N_("Priority"),
.desc = N_("The priority of any recordings set because of this "
"rule: in descending priority, values are "
"important, high, normal, low and unimportant. "
"Higher-priority events will take precedence and "
"cancel lower-priority events."),
.list = dvr_entry_class_pri_list,
.def.i = DVR_PRIO_NORMAL,
.off = offsetof(dvr_autorec_entry_t, dae_pri),
Expand All @@ -1098,6 +1137,7 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_U32,
.id = "record",
.name = N_("Duplicate handling"),
.desc = N_("Duplicate recording handling."),
.def.i = DVR_AUTOREC_RECORD_ALL,
.off = offsetof(dvr_autorec_entry_t, dae_record),
.list = dvr_autorec_entry_class_dedup_list,
Expand All @@ -1107,6 +1147,7 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_U32,
.id = "retention",
.name = N_("DVR log retention"),
.desc = N_("Number of days to retain logging information."),
.def.i = DVR_RET_DVRCONFIG,
.off = offsetof(dvr_autorec_entry_t, dae_retention),
.list = dvr_entry_class_retention_list,
Expand All @@ -1116,6 +1157,7 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_U32,
.id = "removal",
.name = N_("DVR file retention period"),
.desc = N_("Number of days to keep the recordings` file."),
.def.i = DVR_RET_DVRCONFIG,
.off = offsetof(dvr_autorec_entry_t, dae_removal),
.list = dvr_entry_class_removal_list,
Expand All @@ -1125,20 +1167,25 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_U32,
.id = "maxcount",
.name = N_("Maximum count (0=default)"),
.desc = N_("The maximum number of times this rule can be "
"triggered."),
.off = offsetof(dvr_autorec_entry_t, dae_max_count),
.opts = PO_HIDDEN | PO_EXPERT,
},
{
.type = PT_U32,
.id = "maxsched",
.name = N_("Maximum schedules limit (0=default)"),
.desc = N_("The maximum number of recording entries this rule "
"can create."),
.off = offsetof(dvr_autorec_entry_t, dae_max_sched_count),
.opts = PO_HIDDEN | PO_EXPERT,
},
{
.type = PT_STR,
.id = "config_name",
.name = N_("DVR configuration"),
.desc = N_("The DVR profile to be used/used by this rule."),
.set = dvr_autorec_entry_class_config_name_set,
.get = dvr_autorec_entry_class_config_name_get,
.rend = dvr_autorec_entry_class_config_name_rend,
Expand All @@ -1149,6 +1196,7 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "brand",
.name = N_("Brand"),
.desc = N_("Branding information (if available)."),
.set = dvr_autorec_entry_class_brand_set,
.get = dvr_autorec_entry_class_brand_get,
.opts = PO_RDONLY | PO_ADVANCED,
Expand All @@ -1157,6 +1205,7 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "season",
.name = N_("Season"),
.desc = N_("Season information (if available)."),
.set = dvr_autorec_entry_class_season_set,
.get = dvr_autorec_entry_class_season_get,
.opts = PO_RDONLY | PO_ADVANCED,
Expand All @@ -1165,6 +1214,7 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "serieslink",
.name = N_("Series link"),
.desc = N_("Series link ID."),
.set = dvr_autorec_entry_class_series_link_set,
.get = dvr_autorec_entry_class_series_link_get,
.opts = PO_RDONLY | PO_ADVANCED,
Expand All @@ -1173,20 +1223,25 @@ const idclass_t dvr_autorec_entry_class = {
.type = PT_STR,
.id = "owner",
.name = N_("Owner"),
.desc = N_("Owner of the rule."),
.off = offsetof(dvr_autorec_entry_t, dae_owner),
.get_opts = dvr_autorec_entry_class_owner_opts,
},
{
.type = PT_STR,
.id = "creator",
.name = N_("Creator"),
.desc = N_("The user who created the recording or the "
"auto-recording source and IP address if scheduled "
"by a matching rule."),
.off = offsetof(dvr_autorec_entry_t, dae_creator),
.get_opts = dvr_autorec_entry_class_owner_opts,
},
{
.type = PT_STR,
.id = "comment",
.name = N_("Comment"),
.desc = N_("Free-form text field, enter whatever you like here."),
.off = offsetof(dvr_autorec_entry_t, dae_comment),
},
{}
Expand Down

0 comments on commit 06d9721

Please sign in to comment.