Refactor cRecMenuSeriesTimer

This commit is contained in:
kamel5 2019-11-09 13:32:08 +01:00
parent 37db3b185c
commit 2531526a4d
6 changed files with 64 additions and 64 deletions

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-tvguide 0.0.1\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2022-04-29 13:18+0200\n"
"POT-Creation-Date: 2022-04-29 14:39+0200\n"
"PO-Revision-Date: 2013-09-21 17:49+0200\n"
"Last-Translator: My friend <Sampep> Thanks David <Gabychan> <gbonich@gmail.com>\n"
"Language-Team: \n"
@ -225,6 +225,12 @@ msgstr ""
msgid "replaced by rerun"
msgstr ""
msgid "Save"
msgstr "Desa"
msgid "Cancel"
msgstr "Cancel·la"
msgid "Timer Active"
msgstr "Temporitzador actiu"
@ -249,14 +255,11 @@ msgstr ""
msgid "New Folder"
msgstr ""
msgid "Save"
msgstr "Desa"
msgid "Create Series Timer based on:"
msgstr "Programa enregistrament de Sèries segons:"
msgid "Cancel"
msgstr "Cancel·la"
msgid "Create Series Timer based on"
msgstr "Programa enregistrament de Sèries segons"
msgid "Create Timer"
msgstr "Crea temporitzador"
msgid "Series Timer start time"
msgstr "Inici temporitzador Sèries"
@ -270,9 +273,6 @@ msgstr "Dies a enregistrar"
msgid "Day to start"
msgstr "Dia d'inici"
msgid "Create Timer"
msgstr "Crea temporitzador"
msgid "Series Timer created"
msgstr "Sèrie programada"

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-tvguide 0.0.1\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2022-04-29 13:18+0200\n"
"POT-Creation-Date: 2022-04-29 14:39+0200\n"
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
"Last-Translator: Horst\n"
"Language-Team: \n"
@ -222,6 +222,12 @@ msgstr "Timer für"
msgid "replaced by rerun"
msgstr "ersetzt durch Wiederholung"
msgid "Save"
msgstr "Speichern"
msgid "Cancel"
msgstr "Abbrechen"
msgid "Timer Active"
msgstr "Timer aktiv"
@ -246,14 +252,11 @@ msgstr "Timer Datei"
msgid "New Folder"
msgstr "Neues Verzeichnis"
msgid "Save"
msgstr "Speichern"
msgid "Create Series Timer based on:"
msgstr "Serientimer anlegen basierend auf:"
msgid "Cancel"
msgstr "Abbrechen"
msgid "Create Series Timer based on"
msgstr "Serientimer anlegen basierend auf"
msgid "Create Timer"
msgstr "Timer anlegen"
msgid "Series Timer start time"
msgstr "Serientimer Start Zeit"
@ -267,9 +270,6 @@ msgstr "Tage"
msgid "Day to start"
msgstr "Beginnen am"
msgid "Create Timer"
msgstr "Timer anlegen"
msgid "Series Timer created"
msgstr "Serientimer angelegt"

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-tvguide 0.0.1\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2022-04-29 13:18+0200\n"
"POT-Creation-Date: 2022-04-29 14:39+0200\n"
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
"Last-Translator: fiveten_59\n"
"Language-Team: \n"
@ -222,6 +222,12 @@ msgstr "Timer per"
msgid "replaced by rerun"
msgstr "rimosso dal riavvio"
msgid "Save"
msgstr "Salva"
msgid "Cancel"
msgstr "Cancella"
msgid "Timer Active"
msgstr "Timer attivo"
@ -246,14 +252,11 @@ msgstr "File del Timer"
msgid "New Folder"
msgstr "Nuova cartella"
msgid "Save"
msgstr "Salva"
msgid "Create Series Timer based on:"
msgstr "Crea il Series Timer basato su:"
msgid "Cancel"
msgstr "Cancella"
msgid "Create Series Timer based on"
msgstr "Crea il Series Timer basato su"
msgid "Create Timer"
msgstr "Crea il Timer"
msgid "Series Timer start time"
msgstr "Ora d'avvio del Series Timer"
@ -267,9 +270,6 @@ msgstr "Giorni da registrare"
msgid "Day to start"
msgstr "Giorno d'inizio"
msgid "Create Timer"
msgstr "Crea il Timer"
msgid "Series Timer created"
msgstr "Series Timer creato"

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-tvguide 1.0.0\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2022-04-29 13:18+0200\n"
"POT-Creation-Date: 2022-04-29 14:39+0200\n"
"PO-Revision-Date: 2013-09-25 17:49+0400\n"
"Last-Translator: AmiD, ilya\n"
"Language-Team: Russia-Cherepovets(wm.amid@gmail.com)\n"
@ -222,6 +222,12 @@ msgstr ""
msgid "replaced by rerun"
msgstr ""
msgid "Save"
msgstr "Сохранить"
msgid "Cancel"
msgstr "Отменить"
msgid "Timer Active"
msgstr "Таймер активен"
@ -246,14 +252,11 @@ msgstr ""
msgid "New Folder"
msgstr ""
msgid "Save"
msgstr "Сохранить"
msgid "Create Series Timer based on:"
msgstr "Настроить циклический таймер:"
msgid "Cancel"
msgstr "Отменить"
msgid "Create Series Timer based on"
msgstr "Настроить циклический таймер"
msgid "Create Timer"
msgstr "Создать"
msgid "Series Timer start time"
msgstr "Время с"
@ -267,9 +270,6 @@ msgstr "Дни недели"
msgid "Day to start"
msgstr "Начиная с"
msgid "Create Timer"
msgstr "Создать"
msgid "Series Timer created"
msgstr "Циклический таймер создан"

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vdr-tvguide 1.1.0\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2022-04-29 13:18+0200\n"
"POT-Creation-Date: 2022-04-29 14:39+0200\n"
"PO-Revision-Date: 2013-09-15 00:12+0100\n"
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
"Language-Team: \n"
@ -222,6 +222,12 @@ msgstr ""
msgid "replaced by rerun"
msgstr ""
msgid "Save"
msgstr "Ulo¾i»"
msgid "Cancel"
msgstr "Zru¹i»"
msgid "Timer Active"
msgstr "Plán aktívny"
@ -246,14 +252,11 @@ msgstr ""
msgid "New Folder"
msgstr ""
msgid "Save"
msgstr "Ulo¾i»"
msgid "Create Series Timer based on:"
msgstr "Vytvorenie plánu na základe série:"
msgid "Cancel"
msgstr "Zru¹i»"
msgid "Create Series Timer based on"
msgstr "Vytvorenie plánu na základe série"
msgid "Create Timer"
msgstr "Vytvori» plán"
msgid "Series Timer start time"
msgstr "Sériový plán zaèína"
@ -267,9 +270,6 @@ msgstr "Dni"
msgid "Day to start"
msgstr "Zaèína dòa"
msgid "Create Timer"
msgstr "Vytvori» plán"
msgid "Series Timer created"
msgstr "Vytvorený sériový plán"

View File

@ -497,9 +497,12 @@ cTimer *cRecMenuEditTimer::GetTimer(void) {
******************************************************************************************/
// --- cRecMenuSeriesTimer ---------------------------------------------------------
cRecMenuSeriesTimer::cRecMenuSeriesTimer(const cChannel *initialChannel, const cEvent *event, std::string folder) {
cRecMenuSeriesTimer::cRecMenuSeriesTimer(const cChannel *initialChannel, const cEvent *event, std::string folder) { // OK
if (!initialChannel)
return;
SetWidthPercent(70);
timerActive = true;
channel = initialChannel->Number();
dayOfWeek = 127;
@ -508,12 +511,11 @@ cRecMenuSeriesTimer::cRecMenuSeriesTimer(const cChannel *initialChannel, const c
CalculateTimes(event);
this->folder = folder;
SetWidthPercent(70);
cString title = tr("Create Series Timer based on");
cString infoText = cString::sprintf("%s:\n%s", *title, event->Title());
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText, true);
infoItem->CalculateHeight(width - 2 * border);
SetHeader(infoItem);
const cString line1 = tr("Create Series 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("Create Timer"), tr("Cancel"), rmsSeriesTimerCreate, rmsClose, true));
AddMenuItem(new cRecMenuItemBool(tr("Timer Active"), false, &timerActive));
AddMenuItem(new cRecMenuItemChannelChooser(tr("Channel"), false, &channel));
@ -524,8 +526,6 @@ cRecMenuSeriesTimer::cRecMenuSeriesTimer(const cChannel *initialChannel, const c
AddMenuItem(new cRecMenuItemInt(tr("Priority"), 0, MAXPRIORITY, false, &priority));
AddMenuItem(new cRecMenuItemInt(tr("Lifetime"), 0, MAXLIFETIME, false, &lifetime));
AddMenuItem(new cRecMenuItemButtonYesNo(tr("Create Timer"), tr("Cancel"), rmsSeriesTimerCreate, rmsClose, true));
CalculateHeight();
CreatePixmap();
Arrange();