mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
				synced 2023-10-05 13:01:48 +00:00 
			
		
		
		
	Refactor cRecMenuSwitchTimer
This commit is contained in:
		
							
								
								
									
										12
									
								
								po/ca_ES.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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 15:29+0200\n" | "POT-Creation-Date: 2022-04-29 15:32+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" | ||||||
| @@ -498,8 +498,8 @@ msgstr "No s'ha trobat la cadena de text" | |||||||
| msgid "Configure Options for Switchtimer" | msgid "Configure Options for Switchtimer" | ||||||
| msgstr "Opcions de configuració de canvi de temporitzador" | msgstr "Opcions de configuració de canvi de temporitzador" | ||||||
|  |  | ||||||
| msgid "Minutes before switching" | msgid "Create" | ||||||
| msgstr "Minuts abans del canvi" | msgstr "Crea" | ||||||
|  |  | ||||||
| msgid "switch" | msgid "switch" | ||||||
| msgstr "canvia" | msgstr "canvia" | ||||||
| @@ -510,12 +510,12 @@ msgstr "només anunci" | |||||||
| msgid "ask for switch" | msgid "ask for switch" | ||||||
| msgstr "pregunta pel canvi" | msgstr "pregunta pel canvi" | ||||||
|  |  | ||||||
|  | msgid "Minutes before switching" | ||||||
|  | msgstr "Minuts abans del canvi" | ||||||
|  |  | ||||||
| msgid "Switch Mode" | msgid "Switch Mode" | ||||||
| msgstr "Mode de canvi" | msgstr "Mode de canvi" | ||||||
|  |  | ||||||
| msgid "Create" |  | ||||||
| msgstr "Crea" |  | ||||||
|  |  | ||||||
| msgid "Switch Timer sucessfully created" | msgid "Switch Timer sucessfully created" | ||||||
| msgstr "Canvi de temporitzador creat" | msgstr "Canvi de temporitzador creat" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								po/de_DE.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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 15:29+0200\n" | "POT-Creation-Date: 2022-04-29 15:32+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" | ||||||
| @@ -495,8 +495,8 @@ msgstr "Keine Treffer für Suchbegriff" | |||||||
| msgid "Configure Options for Switchtimer" | msgid "Configure Options for Switchtimer" | ||||||
| msgstr "Optionen für Umschalttimer konfigurieren" | msgstr "Optionen für Umschalttimer konfigurieren" | ||||||
|  |  | ||||||
| msgid "Minutes before switching" | msgid "Create" | ||||||
| msgstr "Minuten vor umschalten" | msgstr "Anlegen" | ||||||
|  |  | ||||||
| msgid "switch" | msgid "switch" | ||||||
| msgstr "umschalten" | msgstr "umschalten" | ||||||
| @@ -507,12 +507,12 @@ msgstr "nur ankündigen" | |||||||
| msgid "ask for switch" | msgid "ask for switch" | ||||||
| msgstr "vor umschalten fragen" | msgstr "vor umschalten fragen" | ||||||
|  |  | ||||||
|  | msgid "Minutes before switching" | ||||||
|  | msgstr "Minuten vor umschalten" | ||||||
|  |  | ||||||
| msgid "Switch Mode" | msgid "Switch Mode" | ||||||
| msgstr "Umschaltmodus" | msgstr "Umschaltmodus" | ||||||
|  |  | ||||||
| msgid "Create" |  | ||||||
| msgstr "Anlegen" |  | ||||||
|  |  | ||||||
| msgid "Switch Timer sucessfully created" | msgid "Switch Timer sucessfully created" | ||||||
| msgstr "Umschalttimer erfolgreich angelegt" | msgstr "Umschalttimer erfolgreich angelegt" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								po/it_IT.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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 15:29+0200\n" | "POT-Creation-Date: 2022-04-29 15:32+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" | ||||||
| @@ -495,8 +495,8 @@ msgstr "Keine Treffer für Suchbegriff" | |||||||
| msgid "Configure Options for Switchtimer" | msgid "Configure Options for Switchtimer" | ||||||
| msgstr "Optionen für Umschalttimer konfigurieren" | msgstr "Optionen für Umschalttimer konfigurieren" | ||||||
|  |  | ||||||
| msgid "Minutes before switching" | msgid "Create" | ||||||
| msgstr "Minuten vor umschalten" | msgstr "Creare" | ||||||
|  |  | ||||||
| msgid "switch" | msgid "switch" | ||||||
| msgstr "cambio" | msgstr "cambio" | ||||||
| @@ -507,12 +507,12 @@ msgstr "Segnala solamente" | |||||||
| msgid "ask for switch" | msgid "ask for switch" | ||||||
| msgstr "chiedi per cambiare" | msgstr "chiedi per cambiare" | ||||||
|  |  | ||||||
|  | msgid "Minutes before switching" | ||||||
|  | msgstr "Minuten vor umschalten" | ||||||
|  |  | ||||||
| msgid "Switch Mode" | msgid "Switch Mode" | ||||||
| msgstr "Modalità Switch" | msgstr "Modalità Switch" | ||||||
|  |  | ||||||
| msgid "Create" |  | ||||||
| msgstr "Creare" |  | ||||||
|  |  | ||||||
| msgid "Switch Timer sucessfully created" | msgid "Switch Timer sucessfully created" | ||||||
| msgstr "Switch Timer creato con successo" | msgstr "Switch Timer creato con successo" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								po/ru_RU.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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 15:29+0200\n" | "POT-Creation-Date: 2022-04-29 15:32+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" | ||||||
| @@ -495,8 +495,8 @@ msgstr "Совпадений НЕ найдено" | |||||||
| msgid "Configure Options for Switchtimer" | msgid "Configure Options for Switchtimer" | ||||||
| msgstr "Настройка таймера переключения" | msgstr "Настройка таймера переключения" | ||||||
|  |  | ||||||
| msgid "Minutes before switching" | msgid "Create" | ||||||
| msgstr "Минут до события" | msgstr "Создать" | ||||||
|  |  | ||||||
| msgid "switch" | msgid "switch" | ||||||
| msgstr "Переключить" | msgstr "Переключить" | ||||||
| @@ -507,12 +507,12 @@ msgstr "Только предупредить" | |||||||
| msgid "ask for switch" | msgid "ask for switch" | ||||||
| msgstr "Спросить о переключении" | msgstr "Спросить о переключении" | ||||||
|  |  | ||||||
|  | msgid "Minutes before switching" | ||||||
|  | msgstr "Минут до события" | ||||||
|  |  | ||||||
| msgid "Switch Mode" | msgid "Switch Mode" | ||||||
| msgstr "Режим переключения" | msgstr "Режим переключения" | ||||||
|  |  | ||||||
| msgid "Create" |  | ||||||
| msgstr "Создать" |  | ||||||
|  |  | ||||||
| msgid "Switch Timer sucessfully created" | msgid "Switch Timer sucessfully created" | ||||||
| msgstr "Таймер переключения создан" | msgstr "Таймер переключения создан" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								po/sk_SK.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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 15:29+0200\n" | "POT-Creation-Date: 2022-04-29 15:32+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" | ||||||
| @@ -495,8 +495,8 @@ msgstr "H | |||||||
| msgid "Configure Options for Switchtimer" | msgid "Configure Options for Switchtimer" | ||||||
| msgstr "Konfigurova<76> mo<6D>nosti pre prep<65>nac<61> pl<70>n" | msgstr "Konfigurova<76> mo<6D>nosti pre prep<65>nac<61> pl<70>n" | ||||||
|  |  | ||||||
| msgid "Minutes before switching" | msgid "Create" | ||||||
| msgstr "Min<EFBFBD>ty pred prepnut<75>m" | msgstr "Vytvori<EFBFBD>" | ||||||
|  |  | ||||||
| msgid "switch" | msgid "switch" | ||||||
| msgstr "Prepn<70><6E>" | msgstr "Prepn<70><6E>" | ||||||
| @@ -507,12 +507,12 @@ msgstr "iba ozn | |||||||
| msgid "ask for switch" | msgid "ask for switch" | ||||||
| msgstr "op<6F>ta<74> sa na prepnutie" | msgstr "op<6F>ta<74> sa na prepnutie" | ||||||
|  |  | ||||||
|  | msgid "Minutes before switching" | ||||||
|  | msgstr "Min<69>ty pred prepnut<75>m" | ||||||
|  |  | ||||||
| msgid "Switch Mode" | msgid "Switch Mode" | ||||||
| msgstr "Prep<65>nac<61> re<72>im" | msgstr "Prep<65>nac<61> re<72>im" | ||||||
|  |  | ||||||
| msgid "Create" |  | ||||||
| msgstr "Vytvori<72>" |  | ||||||
|  |  | ||||||
| msgid "Switch Timer sucessfully created" | msgid "Switch Timer sucessfully created" | ||||||
| msgstr "Prepnutie je napl<70>novan<61>" | msgstr "Prepnutie je napl<70>novan<61>" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										17
									
								
								recmenus.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								recmenus.c
									
									
									
									
									
								
							| @@ -1089,25 +1089,22 @@ cRecMenuSearchTimerNothingFound::cRecMenuSearchTimerNothingFound(std::string sea | |||||||
| ******************************************************************************************/ | ******************************************************************************************/ | ||||||
|  |  | ||||||
| // --- cRecMenuSwitchTimer  --------------------------------------------------------- | // --- cRecMenuSwitchTimer  --------------------------------------------------------- | ||||||
| cRecMenuSwitchTimer::cRecMenuSwitchTimer(void) { | cRecMenuSwitchTimer::cRecMenuSwitchTimer(void) { // OK | ||||||
|  |     SetWidthPercent(60); | ||||||
|  |  | ||||||
|     switchMinsBefore = config.switchMinsBefore; |     switchMinsBefore = config.switchMinsBefore; | ||||||
|     switchMode = config.switchMode; |     switchMode = config.switchMode; | ||||||
|  |  | ||||||
|     SetWidthPercent(60); |     AddHeader(new cRecMenuItemInfo(tr("Configure Options for Switchtimer"), 1, "", "", "", width - 2 * border, true)); | ||||||
|  |     AddFooter(new cRecMenuItemButtonYesNo(tr("Create"), tr("Cancel"), rmsSwitchTimerCreate, rmsClose, true)); | ||||||
|  |  | ||||||
|     cString infoText = tr("Configure Options for Switchtimer"); |  | ||||||
|     cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText, true); |  | ||||||
|     infoItem->CalculateHeight(width - 2 * border); |  | ||||||
|     AddMenuItem(infoItem); |  | ||||||
|  |  | ||||||
|     AddMenuItem(new cRecMenuItemInt(tr("Minutes before switching"), 0, 10, false, &switchMinsBefore)); |  | ||||||
|     std::vector<std::string> switchModeItems; |     std::vector<std::string> switchModeItems; | ||||||
|     switchModeItems.push_back(tr("switch")); |     switchModeItems.push_back(tr("switch")); | ||||||
|     switchModeItems.push_back(tr("announce only")); |     switchModeItems.push_back(tr("announce only")); | ||||||
|     switchModeItems.push_back(tr("ask for switch")); |     switchModeItems.push_back(tr("ask for switch")); | ||||||
|     AddMenuItem(new cRecMenuItemSelect(tr("Switch Mode"), switchModeItems, false, &switchMode)); |  | ||||||
|  |  | ||||||
|     AddMenuItem(new cRecMenuItemButtonYesNo(tr("Create"), tr("Cancel"), rmsSwitchTimerCreate, rmsClose, true)); |     AddMenuItem(new cRecMenuItemInt(tr("Minutes before switching"), 0, 10, false, &switchMinsBefore)); | ||||||
|  |     AddMenuItem(new cRecMenuItemSelect(tr("Switch Mode"), switchModeItems, false, &switchMode)); | ||||||
|  |  | ||||||
|     CalculateHeight(); |     CalculateHeight(); | ||||||
|     CreatePixmap(); |     CreatePixmap(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user