Refactor cRecMenuSearchTimer

This commit is contained in:
kamel5 2019-11-09 13:39:14 +01:00
parent cf9250e50b
commit 30fc49af0c
6 changed files with 19 additions and 17 deletions

View File

@ -282,8 +282,8 @@ msgstr "Inici"
msgid "Stop"
msgstr "Final"
msgid "Configure Search Timer based on"
msgstr "Configura cerca de temporitzadors segons"
msgid "Configure Search Timer based on:"
msgstr "Configura cerca de temporitzadors segons:"
msgid "Search Expression:"
msgstr "Cerca expressió:"

View File

@ -279,8 +279,8 @@ msgstr "Start"
msgid "Stop"
msgstr "Stop"
msgid "Configure Search Timer based on"
msgstr "Suchtimer konfigurieren basierend auf"
msgid "Configure Search Timer based on:"
msgstr "Suchtimer konfigurieren basierend auf:"
msgid "Search Expression:"
msgstr "Suchausdruck:"

View File

@ -279,8 +279,8 @@ msgstr "Avvio"
msgid "Stop"
msgstr "Ferma"
msgid "Configure Search Timer based on"
msgstr "Configura il Search Timer in serie basato su"
msgid "Configure Search Timer based on:"
msgstr "Configura il Search Timer in serie basato su:"
msgid "Search Expression:"
msgstr "Cerca espressione:"

View File

@ -279,8 +279,8 @@ msgstr "Старт"
msgid "Stop"
msgstr "Стоп"
msgid "Configure Search Timer based on"
msgstr "Настроить поисковый таймер"
msgid "Configure Search Timer based on:"
msgstr "Настроить поисковый таймер:"
msgid "Search Expression:"
msgstr "Искать выражение:"

View File

@ -279,8 +279,8 @@ msgstr "
msgid "Stop"
msgstr "Stop"
msgid "Configure Search Timer based on"
msgstr "Vyhľadávanie plánu nastaviť na základe"
msgid "Configure Search Timer based on:"
msgstr "Vyhľadávanie plánu nastaviť na základe:"
msgid "Search Expression:"
msgstr "Hµadaný výraz:"

View File

@ -599,16 +599,18 @@ cRecMenuConfirmSeriesTimer::cRecMenuConfirmSeriesTimer(cTimer *seriesTimer) { //
******************************************************************************************/
// --- cRecMenuSearchTimer ---------------------------------------------------------
cRecMenuSearchTimer::cRecMenuSearchTimer(const cEvent *event) {
cRecMenuSearchTimer::cRecMenuSearchTimer(const cEvent *event) { // OK
SetWidthPercent(70);
cString message = tr("Configure Search Timer based on");
cString infoText = cString::sprintf("%s:\n\"%s\"", *message, event->Title());
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText, true);
infoItem->CalculateHeight(width - 2 * border);
SetHeader(infoItem);
const cString line1 = tr("Configure Search Timer based on:");
const cString line2 = cString::sprintf("\"%s\"", event->Title());
AddHeader(new cRecMenuItemInfo(*line1, 2, *line2, "", "", width - 2 * border, true));
AddFooter(new cRecMenuItemButtonYesNo(tr("Continue"), tr("Cancel"), rmsSearchTimerOptions, rmsClose, true));
strncpy(searchString, event->Title(), TEXTINPUTLENGTH);
AddMenuItemInitial(new cRecMenuItemText(tr("Search Expression:"), TEXTINPUTLENGTH, false, searchString));
AddMenuItemInitial(new cRecMenuItemButtonYesNo(tr("Continue"), tr("Cancel"), rmsSearchTimerOptions, rmsClose, true));
CalculateHeight();
CreatePixmap();
Arrange();