Adapt epgsearch "allow empty" in searchtimer edit

This commit is contained in:
kamel5 2022-01-29 17:41:02 +01:00
parent a87a1db7c2
commit 519a87a471
9 changed files with 25 additions and 1 deletions

View File

@ -600,6 +600,9 @@ msgstr "expressió regular"
msgid "fuzzy" msgid "fuzzy"
msgstr "" msgstr ""
msgid "allow empty"
msgstr ""
msgid "Interval" msgid "Interval"
msgstr "" msgstr ""

View File

@ -597,6 +597,9 @@ msgstr "Regulärer Ausdruck"
msgid "fuzzy" msgid "fuzzy"
msgstr "unscharf" msgstr "unscharf"
msgid "allow empty"
msgstr "erlaube leere"
msgid "Interval" msgid "Interval"
msgstr "Bereich" msgstr "Bereich"

View File

@ -597,6 +597,9 @@ msgstr "Regulärer Ausdruck"
msgid "fuzzy" msgid "fuzzy"
msgstr "" msgstr ""
msgid "allow empty"
msgstr ""
msgid "Interval" msgid "Interval"
msgstr "" msgstr ""

View File

@ -597,6 +597,9 @@ msgstr "регулярные выражения"
msgid "fuzzy" msgid "fuzzy"
msgstr "" msgstr ""
msgid "allow empty"
msgstr ""
msgid "Interval" msgid "Interval"
msgstr "" msgstr ""

View File

@ -597,6 +597,9 @@ msgstr "regul
msgid "fuzzy" msgid "fuzzy"
msgstr "" msgstr ""
msgid "allow empty"
msgstr ""
msgid "Interval" msgid "Interval"
msgstr "" msgstr ""

View File

@ -728,6 +728,7 @@ cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit(cTVGuideSearchTimer searchTimer
} }
sT.GetSearchModes(&searchModes); sT.GetSearchModes(&searchModes);
sT.GetSubTitleModes(&subTitleModes);
sT.GetUseChannelModes(&useChannelModes); sT.GetUseChannelModes(&useChannelModes);
sT.GetCompareDateModes(&compareDateModes); sT.GetCompareDateModes(&compareDateModes);
sT.GetSearchTimerModes(&searchTimerModes); sT.GetSearchTimerModes(&searchTimerModes);
@ -864,7 +865,7 @@ void cRecMenuSearchTimerEdit::CreateMenuItems(void) {
mainMenuItems.push_back(new cRecMenuItemInt(cString::sprintf("%s%s%s%s%s", *indent, *indent, *indent, *indent, tr("Only repeats within ... days")), 0, 999, false, &sT.repeatsWithinDays, rmsSearchTimerSave)); mainMenuItems.push_back(new cRecMenuItemInt(cString::sprintf("%s%s%s%s%s", *indent, *indent, *indent, *indent, tr("Only repeats within ... days")), 0, 999, false, &sT.repeatsWithinDays, rmsSearchTimerSave));
} }
mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Title")), false, &sT.compareTitle, rmsSearchTimerSave)); mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Title")), false, &sT.compareTitle, rmsSearchTimerSave));
mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Subtitle")), false, &sT.compareSubtitle, rmsSearchTimerSave)); mainMenuItems.push_back(new cRecMenuItemSelect(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Subtitle")), subTitleModes, false, &sT.compareSubtitle, rmsSearchTimerSave));
mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Description")), false, &sT.compareSummary, rmsSearchTimerSave, true)); mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Description")), false, &sT.compareSummary, rmsSearchTimerSave, true));
if (sT.compareSummary) { if (sT.compareSummary) {
mainMenuItems.push_back(new cRecMenuItemInt(cString::sprintf("%s%s%s%s%s", *indent, *indent, *indent, *indent, tr("Min. match in %")), 1, 100, false, &sT.compareSummaryMatchInPercent, rmsSearchTimerSave)); mainMenuItems.push_back(new cRecMenuItemInt(cString::sprintf("%s%s%s%s%s", *indent, *indent, *indent, *indent, tr("Min. match in %")), 1, 100, false, &sT.compareSummaryMatchInPercent, rmsSearchTimerSave));

View File

@ -218,6 +218,7 @@ class cRecMenuSearchTimerEdit: public cRecMenu {
private: private:
cTVGuideSearchTimer sT; cTVGuideSearchTimer sT;
std::vector<std::string> searchModes; std::vector<std::string> searchModes;
std::vector<std::string> subTitleModes;
std::vector<std::string> useChannelModes; std::vector<std::string> useChannelModes;
std::vector<std::string> channelGroups; std::vector<std::string> channelGroups;
std::vector<std::string> compareDateModes; std::vector<std::string> compareDateModes;

View File

@ -554,6 +554,12 @@ void cTVGuideSearchTimer::GetSearchModes(std::vector<std::string> *searchModes)
searchModes->push_back(tr("fuzzy")); searchModes->push_back(tr("fuzzy"));
} }
void cTVGuideSearchTimer::GetSubTitleModes(std::vector<std::string> *subTitleModes) {
subTitleModes->push_back(trVDR("no"));
subTitleModes->push_back(trVDR("yes"));
subTitleModes->push_back(tr("allow empty"));
}
void cTVGuideSearchTimer::GetUseChannelModes(std::vector<std::string> *useChannelModes) { void cTVGuideSearchTimer::GetUseChannelModes(std::vector<std::string> *useChannelModes) {
useChannelModes->push_back(tr("No")); useChannelModes->push_back(tr("No"));
useChannelModes->push_back(tr("Interval")); useChannelModes->push_back(tr("Interval"));

View File

@ -81,6 +81,7 @@ public:
int GetNumTimers(void); int GetNumTimers(void);
int GetNumRecordings(void); int GetNumRecordings(void);
void GetSearchModes(std::vector<std::string> *searchModes); void GetSearchModes(std::vector<std::string> *searchModes);
void GetSubTitleModes(std::vector<std::string> *subTitleModes);
void GetUseChannelModes(std::vector<std::string> *useChannelModes); void GetUseChannelModes(std::vector<std::string> *useChannelModes);
void GetSearchTimerModes(std::vector<std::string> *searchTimerModes); void GetSearchTimerModes(std::vector<std::string> *searchTimerModes);
void GetCompareDateModes(std::vector<std::string> *compareDateModes); void GetCompareDateModes(std::vector<std::string> *compareDateModes);