summaryrefslogtreecommitdiff
path: root/menu_searchedit.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2011-06-12 10:41:37 +0200
committerChristian Wieninger <cwieninger@gmx.de>2011-06-12 10:41:37 +0200
commit7caf8219ca7295a0f25bb1789f9658c4b3c324ff (patch)
tree2d4c4d0f37702aeb5882e88ad3535980e0f3dd7b /menu_searchedit.c
parenta31c53e6d76e60de171394371f07b188b759fa74 (diff)
downloadvdr-plugin-epgsearch-7caf8219ca7295a0f25bb1789f9658c4b3c324ff.tar.gz
vdr-plugin-epgsearch-7caf8219ca7295a0f25bb1789f9658c4b3c324ff.tar.bz2
avoid repeats by 'compare epxression'
Diffstat (limited to 'menu_searchedit.c')
-rw-r--r--menu_searchedit.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/menu_searchedit.c b/menu_searchedit.c
index f415e51..ebf4da9 100644
--- a/menu_searchedit.c
+++ b/menu_searchedit.c
@@ -367,30 +367,31 @@ void cMenuEditSearchExt::Set()
if (data.avoidRepeats)
{
Add(new cMenuEditIntItem(IndentMenuItem(tr("Allowed repeats"),2), &data.allowedRepeats, 0, 99));
- if (data.allowedRepeats > 0)
- Add(new cMenuEditIntItem(IndentMenuItem(tr("Only repeats within ... days"),2), &data.repeatsWithinDays, 0, 999));
- Add(new cMenuEditBoolItem(IndentMenuItem(tr("Compare title"),2), &data.compareTitle, trVDR("no"), trVDR("yes")));
- Add(new cMenuEditStraItem(IndentMenuItem(tr("Compare subtitle"),2), &data.compareSubtitle, 2, CompareSubtitleModes));
- Add(new cMenuEditBoolItem(IndentMenuItem(tr("Compare summary"),2), &data.compareSummary, trVDR("no"), trVDR("yes")));
- if (data.compareSummary)
- Add(new cMenuEditIntItem(IndentMenuItem(tr("Min. match in %"),3), &data.compareSummaryMatchInPercent, 1, 100));
- // show 'Compare categories' only if we have them
- if (SearchExtCats.Count() > 0)
- {
+ if (data.allowedRepeats > 0)
+ Add(new cMenuEditIntItem(IndentMenuItem(tr("Only repeats within ... days"),2), &data.repeatsWithinDays, 0, 999));
+ Add(new cMenuEditBoolItem(IndentMenuItem(tr("Compare title"),2), &data.compareTitle, trVDR("no"), trVDR("yes")));
+ Add(new cMenuEditStraItem(IndentMenuItem(tr("Compare subtitle"),2), &data.compareSubtitle, 2, CompareSubtitleModes));
+ Add(new cMenuEditBoolItem(IndentMenuItem(tr("Compare summary"),2), &data.compareSummary, trVDR("no"), trVDR("yes")));
+ if (data.compareSummary)
+ Add(new cMenuEditIntItem(IndentMenuItem(tr("Min. match in %"),3), &data.compareSummaryMatchInPercent, 1, 100));
+ Add(new cMenuEditStrItem(IndentMenuItem(tr("Compare expression")), data.compareExpression, sizeof(data.compareExpression), tr(AllowedChars)));
+ // show 'Compare categories' only if we have them
+ if (SearchExtCats.Count() > 0)
+ {
cSearchExtCat *SearchExtCat = SearchExtCats.First();
int iUsed = 0;
int index = 0;
while (SearchExtCat)
- {
- if (catarrayAvoidRepeats[index])
+ {
+ if (catarrayAvoidRepeats[index])
iUsed++;
- SearchExtCat = SearchExtCats.Next(SearchExtCat);
- index++;
- }
-
+ SearchExtCat = SearchExtCats.Next(SearchExtCat);
+ index++;
+ }
+
cString itemtext = cString::sprintf("%s (%d/%d)", tr("Compare categories"), iUsed, SearchExtCats.Count());
Add(new cOsdItem(IndentMenuItem(IndentMenuItem(itemtext))));
- }
+ }
}
Add(new cMenuEditIntItem(IndentMenuItem(trVDR("Priority")), &data.Priority, 0, MAXPRIORITY));