mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuSeriesTimer
This commit is contained in:
parent
37db3b185c
commit
2531526a4d
22
po/ca_ES.po
22
po/ca_ES.po
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\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"
|
"PO-Revision-Date: 2013-09-21 17:49+0200\n"
|
||||||
"Last-Translator: My friend <Sampep> Thanks David <Gabychan> <gbonich@gmail.com>\n"
|
"Last-Translator: My friend <Sampep> Thanks David <Gabychan> <gbonich@gmail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -225,6 +225,12 @@ msgstr ""
|
|||||||
msgid "replaced by rerun"
|
msgid "replaced by rerun"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Desa"
|
||||||
|
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Cancel·la"
|
||||||
|
|
||||||
msgid "Timer Active"
|
msgid "Timer Active"
|
||||||
msgstr "Temporitzador actiu"
|
msgstr "Temporitzador actiu"
|
||||||
|
|
||||||
@ -249,14 +255,11 @@ msgstr ""
|
|||||||
msgid "New Folder"
|
msgid "New Folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Save"
|
msgid "Create Series Timer based on:"
|
||||||
msgstr "Desa"
|
msgstr "Programa enregistrament de Sèries segons:"
|
||||||
|
|
||||||
msgid "Cancel"
|
msgid "Create Timer"
|
||||||
msgstr "Cancel·la"
|
msgstr "Crea temporitzador"
|
||||||
|
|
||||||
msgid "Create Series Timer based on"
|
|
||||||
msgstr "Programa enregistrament de Sèries segons"
|
|
||||||
|
|
||||||
msgid "Series Timer start time"
|
msgid "Series Timer start time"
|
||||||
msgstr "Inici temporitzador Sèries"
|
msgstr "Inici temporitzador Sèries"
|
||||||
@ -270,9 +273,6 @@ msgstr "Dies a enregistrar"
|
|||||||
msgid "Day to start"
|
msgid "Day to start"
|
||||||
msgstr "Dia d'inici"
|
msgstr "Dia d'inici"
|
||||||
|
|
||||||
msgid "Create Timer"
|
|
||||||
msgstr "Crea temporitzador"
|
|
||||||
|
|
||||||
msgid "Series Timer created"
|
msgid "Series Timer created"
|
||||||
msgstr "Sèrie programada"
|
msgstr "Sèrie programada"
|
||||||
|
|
||||||
|
22
po/de_DE.po
22
po/de_DE.po
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\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"
|
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
|
||||||
"Last-Translator: Horst\n"
|
"Last-Translator: Horst\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -222,6 +222,12 @@ msgstr "Timer für"
|
|||||||
msgid "replaced by rerun"
|
msgid "replaced by rerun"
|
||||||
msgstr "ersetzt durch Wiederholung"
|
msgstr "ersetzt durch Wiederholung"
|
||||||
|
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Speichern"
|
||||||
|
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
msgid "Timer Active"
|
msgid "Timer Active"
|
||||||
msgstr "Timer aktiv"
|
msgstr "Timer aktiv"
|
||||||
|
|
||||||
@ -246,14 +252,11 @@ msgstr "Timer Datei"
|
|||||||
msgid "New Folder"
|
msgid "New Folder"
|
||||||
msgstr "Neues Verzeichnis"
|
msgstr "Neues Verzeichnis"
|
||||||
|
|
||||||
msgid "Save"
|
msgid "Create Series Timer based on:"
|
||||||
msgstr "Speichern"
|
msgstr "Serientimer anlegen basierend auf:"
|
||||||
|
|
||||||
msgid "Cancel"
|
msgid "Create Timer"
|
||||||
msgstr "Abbrechen"
|
msgstr "Timer anlegen"
|
||||||
|
|
||||||
msgid "Create Series Timer based on"
|
|
||||||
msgstr "Serientimer anlegen basierend auf"
|
|
||||||
|
|
||||||
msgid "Series Timer start time"
|
msgid "Series Timer start time"
|
||||||
msgstr "Serientimer Start Zeit"
|
msgstr "Serientimer Start Zeit"
|
||||||
@ -267,9 +270,6 @@ msgstr "Tage"
|
|||||||
msgid "Day to start"
|
msgid "Day to start"
|
||||||
msgstr "Beginnen am"
|
msgstr "Beginnen am"
|
||||||
|
|
||||||
msgid "Create Timer"
|
|
||||||
msgstr "Timer anlegen"
|
|
||||||
|
|
||||||
msgid "Series Timer created"
|
msgid "Series Timer created"
|
||||||
msgstr "Serientimer angelegt"
|
msgstr "Serientimer angelegt"
|
||||||
|
|
||||||
|
22
po/it_IT.po
22
po/it_IT.po
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\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"
|
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
|
||||||
"Last-Translator: fiveten_59\n"
|
"Last-Translator: fiveten_59\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -222,6 +222,12 @@ msgstr "Timer per"
|
|||||||
msgid "replaced by rerun"
|
msgid "replaced by rerun"
|
||||||
msgstr "rimosso dal riavvio"
|
msgstr "rimosso dal riavvio"
|
||||||
|
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Salva"
|
||||||
|
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Cancella"
|
||||||
|
|
||||||
msgid "Timer Active"
|
msgid "Timer Active"
|
||||||
msgstr "Timer attivo"
|
msgstr "Timer attivo"
|
||||||
|
|
||||||
@ -246,14 +252,11 @@ msgstr "File del Timer"
|
|||||||
msgid "New Folder"
|
msgid "New Folder"
|
||||||
msgstr "Nuova cartella"
|
msgstr "Nuova cartella"
|
||||||
|
|
||||||
msgid "Save"
|
msgid "Create Series Timer based on:"
|
||||||
msgstr "Salva"
|
msgstr "Crea il Series Timer basato su:"
|
||||||
|
|
||||||
msgid "Cancel"
|
msgid "Create Timer"
|
||||||
msgstr "Cancella"
|
msgstr "Crea il Timer"
|
||||||
|
|
||||||
msgid "Create Series Timer based on"
|
|
||||||
msgstr "Crea il Series Timer basato su"
|
|
||||||
|
|
||||||
msgid "Series Timer start time"
|
msgid "Series Timer start time"
|
||||||
msgstr "Ora d'avvio del Series Timer"
|
msgstr "Ora d'avvio del Series Timer"
|
||||||
@ -267,9 +270,6 @@ msgstr "Giorni da registrare"
|
|||||||
msgid "Day to start"
|
msgid "Day to start"
|
||||||
msgstr "Giorno d'inizio"
|
msgstr "Giorno d'inizio"
|
||||||
|
|
||||||
msgid "Create Timer"
|
|
||||||
msgstr "Crea il Timer"
|
|
||||||
|
|
||||||
msgid "Series Timer created"
|
msgid "Series Timer created"
|
||||||
msgstr "Series Timer creato"
|
msgstr "Series Timer creato"
|
||||||
|
|
||||||
|
22
po/ru_RU.po
22
po/ru_RU.po
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 1.0.0\n"
|
"Project-Id-Version: vdr-tvguide 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\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"
|
"PO-Revision-Date: 2013-09-25 17:49+0400\n"
|
||||||
"Last-Translator: AmiD, ilya\n"
|
"Last-Translator: AmiD, ilya\n"
|
||||||
"Language-Team: Russia-Cherepovets(wm.amid@gmail.com)\n"
|
"Language-Team: Russia-Cherepovets(wm.amid@gmail.com)\n"
|
||||||
@ -222,6 +222,12 @@ msgstr ""
|
|||||||
msgid "replaced by rerun"
|
msgid "replaced by rerun"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Сохранить"
|
||||||
|
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Отменить"
|
||||||
|
|
||||||
msgid "Timer Active"
|
msgid "Timer Active"
|
||||||
msgstr "Таймер активен"
|
msgstr "Таймер активен"
|
||||||
|
|
||||||
@ -246,14 +252,11 @@ msgstr ""
|
|||||||
msgid "New Folder"
|
msgid "New Folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Save"
|
msgid "Create Series Timer based on:"
|
||||||
msgstr "Сохранить"
|
msgstr "Настроить циклический таймер:"
|
||||||
|
|
||||||
msgid "Cancel"
|
msgid "Create Timer"
|
||||||
msgstr "Отменить"
|
msgstr "Создать"
|
||||||
|
|
||||||
msgid "Create Series Timer based on"
|
|
||||||
msgstr "Настроить циклический таймер"
|
|
||||||
|
|
||||||
msgid "Series Timer start time"
|
msgid "Series Timer start time"
|
||||||
msgstr "Время с"
|
msgstr "Время с"
|
||||||
@ -267,9 +270,6 @@ msgstr "Дни недели"
|
|||||||
msgid "Day to start"
|
msgid "Day to start"
|
||||||
msgstr "Начиная с"
|
msgstr "Начиная с"
|
||||||
|
|
||||||
msgid "Create Timer"
|
|
||||||
msgstr "Создать"
|
|
||||||
|
|
||||||
msgid "Series Timer created"
|
msgid "Series Timer created"
|
||||||
msgstr "Циклический таймер создан"
|
msgstr "Циклический таймер создан"
|
||||||
|
|
||||||
|
22
po/sk_SK.po
22
po/sk_SK.po
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 1.1.0\n"
|
"Project-Id-Version: vdr-tvguide 1.1.0\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\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"
|
"PO-Revision-Date: 2013-09-15 00:12+0100\n"
|
||||||
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
|
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -222,6 +222,12 @@ msgstr ""
|
|||||||
msgid "replaced by rerun"
|
msgid "replaced by rerun"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Ulo¾i»"
|
||||||
|
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Zru¹i»"
|
||||||
|
|
||||||
msgid "Timer Active"
|
msgid "Timer Active"
|
||||||
msgstr "Plán aktívny"
|
msgstr "Plán aktívny"
|
||||||
|
|
||||||
@ -246,14 +252,11 @@ msgstr ""
|
|||||||
msgid "New Folder"
|
msgid "New Folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Save"
|
msgid "Create Series Timer based on:"
|
||||||
msgstr "Ulo¾i»"
|
msgstr "Vytvorenie plánu na základe série:"
|
||||||
|
|
||||||
msgid "Cancel"
|
msgid "Create Timer"
|
||||||
msgstr "Zru¹i»"
|
msgstr "Vytvori» plán"
|
||||||
|
|
||||||
msgid "Create Series Timer based on"
|
|
||||||
msgstr "Vytvorenie plánu na základe série"
|
|
||||||
|
|
||||||
msgid "Series Timer start time"
|
msgid "Series Timer start time"
|
||||||
msgstr "Sériový plán zaèína"
|
msgstr "Sériový plán zaèína"
|
||||||
@ -267,9 +270,6 @@ msgstr "Dni"
|
|||||||
msgid "Day to start"
|
msgid "Day to start"
|
||||||
msgstr "Zaèína dòa"
|
msgstr "Zaèína dòa"
|
||||||
|
|
||||||
msgid "Create Timer"
|
|
||||||
msgstr "Vytvori» plán"
|
|
||||||
|
|
||||||
msgid "Series Timer created"
|
msgid "Series Timer created"
|
||||||
msgstr "Vytvorený sériový plán"
|
msgstr "Vytvorený sériový plán"
|
||||||
|
|
||||||
|
18
recmenus.c
18
recmenus.c
@ -497,9 +497,12 @@ cTimer *cRecMenuEditTimer::GetTimer(void) {
|
|||||||
******************************************************************************************/
|
******************************************************************************************/
|
||||||
|
|
||||||
// --- cRecMenuSeriesTimer ---------------------------------------------------------
|
// --- 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)
|
if (!initialChannel)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
SetWidthPercent(70);
|
||||||
|
|
||||||
timerActive = true;
|
timerActive = true;
|
||||||
channel = initialChannel->Number();
|
channel = initialChannel->Number();
|
||||||
dayOfWeek = 127;
|
dayOfWeek = 127;
|
||||||
@ -508,12 +511,11 @@ cRecMenuSeriesTimer::cRecMenuSeriesTimer(const cChannel *initialChannel, const c
|
|||||||
CalculateTimes(event);
|
CalculateTimes(event);
|
||||||
this->folder = folder;
|
this->folder = folder;
|
||||||
|
|
||||||
SetWidthPercent(70);
|
const cString line1 = tr("Create Series Timer based on:");
|
||||||
cString title = tr("Create Series Timer based on");
|
const cString line2 = cString::sprintf("\"%s\"", event->Title());
|
||||||
cString infoText = cString::sprintf("%s:\n%s", *title, event->Title());
|
|
||||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText, true);
|
AddHeader(new cRecMenuItemInfo(*line1, 2, *line2, "", "", width - 2 * border, true));
|
||||||
infoItem->CalculateHeight(width - 2 * border);
|
AddFooter(new cRecMenuItemButtonYesNo(tr("Create Timer"), tr("Cancel"), rmsSeriesTimerCreate, rmsClose, true));
|
||||||
SetHeader(infoItem);
|
|
||||||
|
|
||||||
AddMenuItem(new cRecMenuItemBool(tr("Timer Active"), false, &timerActive));
|
AddMenuItem(new cRecMenuItemBool(tr("Timer Active"), false, &timerActive));
|
||||||
AddMenuItem(new cRecMenuItemChannelChooser(tr("Channel"), false, &channel));
|
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("Priority"), 0, MAXPRIORITY, false, &priority));
|
||||||
AddMenuItem(new cRecMenuItemInt(tr("Lifetime"), 0, MAXLIFETIME, false, &lifetime));
|
AddMenuItem(new cRecMenuItemInt(tr("Lifetime"), 0, MAXLIFETIME, false, &lifetime));
|
||||||
|
|
||||||
AddMenuItem(new cRecMenuItemButtonYesNo(tr("Create Timer"), tr("Cancel"), rmsSeriesTimerCreate, rmsClose, true));
|
|
||||||
|
|
||||||
CalculateHeight();
|
CalculateHeight();
|
||||||
CreatePixmap();
|
CreatePixmap();
|
||||||
Arrange();
|
Arrange();
|
||||||
|
Loading…
Reference in New Issue
Block a user