mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuSearchTimer
This commit is contained in:
parent
cf9250e50b
commit
30fc49af0c
@ -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ó:"
|
||||||
|
@ -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:"
|
||||||
|
@ -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:"
|
||||||
|
@ -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 "Искать выражение:"
|
||||||
|
@ -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:"
|
||||||
|
16
recmenus.c
16
recmenus.c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user