summaryrefslogtreecommitdiff
path: root/recmenuview.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-10 18:53:52 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-10 18:53:52 +0200
commit344cc88d61119abd632c3adc68ccc2c0d34130fc (patch)
treea89043827da439a16d15a462a11af40c5133ed14 /recmenuview.c
parenta9dc904b819562f553b0018f62cef8b4469ef71b (diff)
downloadvdr-plugin-tvguideng-344cc88d61119abd632c3adc68ccc2c0d34130fc.tar.gz
vdr-plugin-tvguideng-344cc88d61119abd632c3adc68ccc2c0d34130fc.tar.bz2
Cosmetic changes
Diffstat (limited to 'recmenuview.c')
-rw-r--r--recmenuview.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/recmenuview.c b/recmenuview.c
index 67c4ac4..a3f7ee4 100644
--- a/recmenuview.c
+++ b/recmenuview.c
@@ -254,7 +254,7 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
break; }
case rmsEditTimer: {
//edit timer for active event
- const cTimer *timer = recManager->GetTimerForEvent(event);
+ const cTimer *timer = recManager->GetTimerForEvent(event);
if (timer) {
delete activeMenu;
activeMenu = new cRecMenuEditTimer(timer, rmsSaveTimer);
@@ -264,7 +264,7 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
case rmsSaveTimer: {
//caller: cRecMenuEditTimer
//save timer for active event
- cTimer timerModified;
+ cTimer timerModified;
const cTimer *originalTimer;
if (cRecMenuEditTimer *menu = dynamic_cast<cRecMenuEditTimer*>(activeMenu)) {
timerModified = menu->GetTimer();
@@ -394,32 +394,8 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
DisplayMenu();
break; }
/**********************************************************************************************
- * SWITCH TIMER
- ***********************************************************************************************/
- case rmsSwitchTimer:
- delete activeMenu;
- activeMenu = new cRecMenuSwitchTimer();
- DisplayMenu();
- break;
- case rmsSwitchTimerCreate: {
- cSwitchTimer switchTimer;
- if (cRecMenuSwitchTimer *menu = dynamic_cast<cRecMenuSwitchTimer*>(activeMenu)) {
- switchTimer = menu->GetSwitchTimer();
- } else break;
- bool success = recManager->CreateSwitchTimer(event, switchTimer);
- delete activeMenu;
- activeMenu = new cRecMenuSwitchTimerConfirm(success);
- DisplayMenu();
- break; }
- case rmsSwitchTimerDelete:
- recManager->DeleteSwitchTimer(event);
- delete activeMenu;
- activeMenu = new cRecMenuSwitchTimerDelete();
- DisplayMenu();
- break;
-/**********************************************************************************************
- * SEARCH TIMER
- ***********************************************************************************************/
+* SEARCH TIMER
+***********************************************************************************************/
case rmsSearchTimer:
//Caller: main menu
//set search String for search timer
@@ -561,7 +537,7 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
activeMenu = new cRecMenuSearchTimerDeleteConfirm(searchTimer);
DisplayMenu(true);
break; }
- case rmsSearchTimerDelete:
+ case rmsSearchTimerDelete:
case rmsSearchTimerDeleteWithTimers: {
//caller: cRecMenuSearchTimerDeleteConfirm
//actually delete searchtimer
@@ -663,8 +639,32 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
DisplayMenu(true);
break;}
/**********************************************************************************************
- * CHECK FOR TIMER CONFLICTS
- ***********************************************************************************************/
+* SWITCH TIMER
+***********************************************************************************************/
+ case rmsSwitchTimer:
+ delete activeMenu;
+ activeMenu = new cRecMenuSwitchTimer();
+ DisplayMenu();
+ break;
+ case rmsSwitchTimerCreate: {
+ cSwitchTimer switchTimer;
+ if (cRecMenuSwitchTimer *menu = dynamic_cast<cRecMenuSwitchTimer*>(activeMenu)) {
+ switchTimer = menu->GetSwitchTimer();
+ } else break;
+ bool success = recManager->CreateSwitchTimer(event, switchTimer);
+ delete activeMenu;
+ activeMenu = new cRecMenuSwitchTimerConfirm(success);
+ DisplayMenu();
+ break; }
+ case rmsSwitchTimerDelete:
+ recManager->DeleteSwitchTimer(event);
+ delete activeMenu;
+ activeMenu = new cRecMenuSwitchTimerDelete();
+ DisplayMenu();
+ break;
+/**********************************************************************************************
+* CHECK FOR TIMER CONFLICTS
+***********************************************************************************************/
case rmsTimerConflicts: {
//caller: main menu
//Show timer conflict
@@ -724,7 +724,7 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
} else {
activeMenuBuffer = activeMenu;
activeMenuBuffer->Hide();
- activeMenu = new cRecMenuNoRerunsFound((event->Title())?event->Title():"");
+ activeMenu = new cRecMenuNoRerunsFound((event->Title()) ? event->Title() : "");
}
DisplayMenu(true);
}
@@ -764,9 +764,9 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
DisplayMenu();
}
break; }
- /**********************************************************************************************
- * TIMELINE
- ***********************************************************************************************/
+/**********************************************************************************************
+* TIMELINE
+***********************************************************************************************/
case rmsTimeline: {
delete activeMenu;
activeMenu = new cRecMenuTimeline();
@@ -808,8 +808,8 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
default:
break;
/**********************************************************************************************
- * RECORDINGS SEARCH
- ***********************************************************************************************/
+* RECORDINGS SEARCH
+***********************************************************************************************/
case rmsRecordingSearch: {
//caller: main menu or rmsRecordingSearchResult
string searchString = event->Title();
@@ -840,9 +840,9 @@ eOSState cRecMenuView::StateMachine(eRecMenuState nextState) {
}
DisplayMenu();
break; }
- /**********************************************************************************************
- * FAVORITES
- *********************************************************************************************/
+/**********************************************************************************************
+* FAVORITES
+*********************************************************************************************/
case rmsFavoritesRecord: {
//caller: cRecMenuSearchTimerResults
const cEvent *ev = NULL;