diff --git a/mythtv/programs/mythfrontend/schedulecommon.cpp b/mythtv/programs/mythfrontend/schedulecommon.cpp
index cfca9e0..6840a37 100644
a
|
b
|
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
| 102 | * \brief Show the previous recordings for this recording rule |
| 103 | */ |
| 104 | void ScheduleCommon::ShowPrevious(RecordingInfo *recinfo) const |
| 105 | { |
| 106 | MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); |
| 107 | ProgLister *pl = new ProgLister(mainStack, recinfo->GetRecordingRuleID(), |
| 108 | recinfo->GetTitle()); |
| 109 | if (pl->Create()) |
| 110 | mainStack->AddScreen(pl); |
| 111 | else |
| 112 | delete pl; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * \brief Show the previous recordings for this recording rule |
| 117 | */ |
| 118 | void ScheduleCommon::ShowPrevious(ProgramInfo *pginfo) const |
| 119 | { |
| 120 | if (!pginfo) |
| 121 | return; |
| 122 | |
| 123 | RecordingInfo ri(*pginfo); |
| 124 | |
| 125 | ShowPrevious(&ri); |
| 126 | } |
| 127 | |
| 128 | /** |
102 | 129 | * \brief Creates a dialog for editing the recording status, |
103 | 130 | * blocking until user leaves dialog. |
104 | 131 | */ |
diff --git a/mythtv/programs/mythfrontend/schedulecommon.h b/mythtv/programs/mythfrontend/schedulecommon.h
index 3f348f3..31998ad 100644
a
|
b
|
|
25 | 25 | void ShowUpcoming(const QString &title, const QString &seriesid) const; |
26 | 26 | void ShowUpcoming(ProgramInfo *pginfo) const; |
27 | 27 | void ShowUpcomingScheduled(ProgramInfo *pginfo) const; |
| 28 | void ShowPrevious(RecordingInfo *recinfo) const; |
| 29 | void ShowPrevious(ProgramInfo *pginfo) const; |
28 | 30 | void EditRecording(ProgramInfo *pginfo); |
29 | 31 | void EditScheduled(ProgramInfo *pginfo); |
30 | 32 | void EditScheduled(RecordingInfo *recinfo); |
diff --git a/mythtv/programs/mythfrontend/scheduleeditor.cpp b/mythtv/programs/mythfrontend/scheduleeditor.cpp
index 09881bc..65ec4fe 100644
a
|
b
|
|
606 | 606 | if (m_recordingRule->m_type == kTemplateRecord) |
607 | 607 | return; |
608 | 608 | |
609 | | QString title; |
610 | | if (m_recInfo) |
611 | | title = m_recInfo->GetTitle(); |
612 | | MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); |
613 | | ProgLister *pl = new ProgLister(mainStack, m_recordingRule->m_recordID, |
614 | | title); |
615 | | if (pl->Create()) |
616 | | mainStack->AddScreen(pl); |
617 | | else |
618 | | delete pl; |
| 609 | ShowPrevious(m_recInfo); |
619 | 610 | } |
620 | 611 | |
621 | 612 | void ScheduleEditor::showUpcomingByRule(void) |
diff --git a/mythtv/programs/mythfrontend/viewscheduled.cpp b/mythtv/programs/mythfrontend/viewscheduled.cpp
index 5f100f2..51acdbc 100644
a
|
b
|
|
168 | 168 | upcoming(); |
169 | 169 | else if (action == "VIEWSCHEDULED") |
170 | 170 | upcomingScheduled(); |
| 171 | else if (action == "PREVIOUS") |
| 172 | previous(); |
171 | 173 | else if (action == "DETAILS" || action == "INFO") |
172 | 174 | details(); |
173 | 175 | else if (action == "1") |
… |
… |
|
214 | 216 | menuPopup->AddButton(tr("Program Details")); |
215 | 217 | menuPopup->AddButton(tr("Upcoming by title")); |
216 | 218 | menuPopup->AddButton(tr("Upcoming scheduled")); |
| 219 | menuPopup->AddButton(tr("Previously scheduled")); |
217 | 220 | menuPopup->AddButton(tr("Custom Edit")); |
218 | 221 | menuPopup->AddButton(tr("Delete Rule")); |
219 | 222 | menuPopup->AddButton(tr("Show Cards")); |
… |
… |
|
606 | 609 | //EmbedTVWindow(); |
607 | 610 | } |
608 | 611 | |
| 612 | void ViewScheduled::previous() |
| 613 | { |
| 614 | MythUIButtonListItem *item = m_schedulesList->GetItemCurrent(); |
| 615 | if (!item) |
| 616 | return; |
| 617 | |
| 618 | ProgramInfo *pginfo = qVariantValue<ProgramInfo*>(item->GetData()); |
| 619 | |
| 620 | ShowPrevious(pginfo); |
| 621 | |
| 622 | //FIXME: |
| 623 | //EmbedTVWindow(); |
| 624 | } |
| 625 | |
609 | 626 | void ViewScheduled::details() |
610 | 627 | { |
611 | 628 | MythUIButtonListItem *item = m_schedulesList->GetItemCurrent(); |
… |
… |
|
742 | 759 | { |
743 | 760 | upcomingScheduled(); |
744 | 761 | } |
| 762 | else if (resulttext == tr("Previously scheduled")) |
| 763 | { |
| 764 | previous(); |
| 765 | } |
745 | 766 | else if (resulttext == tr("Custom Edit")) |
746 | 767 | { |
747 | 768 | customEdit(); |
diff --git a/mythtv/programs/mythfrontend/viewscheduled.h b/mythtv/programs/mythfrontend/viewscheduled.h
index 787f1d3..bf9aa8d 100644
a
|
b
|
|
46 | 46 | void deleteRule(); |
47 | 47 | void upcoming(); |
48 | 48 | void upcomingScheduled(); |
| 49 | void previous(); |
49 | 50 | void details(); |
50 | 51 | void selected(MythUIButtonListItem *); |
51 | 52 | void updateInfo(MythUIButtonListItem *); |