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" msgid "Stop"
msgstr "Final" msgstr "Final"
msgid "Configure Search Timer based on" msgid "Configure Search Timer based on:"
msgstr "Configura cerca de temporitzadors segons" msgstr "Configura cerca de temporitzadors segons:"
msgid "Search Expression:" msgid "Search Expression:"
msgstr "Cerca expressió:" msgstr "Cerca expressió:"

View File

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

View File

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

View File

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

View File

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

View File

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