mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Rework cRecMenuItemDay
This commit is contained in:
parent
fb165b2b43
commit
b17fd9b7aa
@ -1448,13 +1448,12 @@ eRecMenuState cRecMenuItemTime::ProcessKey(eKeys Key) {
|
||||
|
||||
// --- cRecMenuItemDay -------------------------------------------------------
|
||||
cRecMenuItemDay::cRecMenuItemDay(cString text,
|
||||
time_t initialVal,
|
||||
bool active,
|
||||
time_t *callback,
|
||||
eRecMenuState action) {
|
||||
selectable = true;
|
||||
this->text = text;
|
||||
this->currentVal = cTimer::SetTime(initialVal, 0);
|
||||
this->currentVal = cTimer::SetTime(*callback, 0);
|
||||
this->active = active;
|
||||
this->callback = callback;
|
||||
this->action = action;
|
||||
|
@ -393,7 +393,6 @@ private:
|
||||
void DrawValue(void);
|
||||
public:
|
||||
cRecMenuItemDay(cString text,
|
||||
time_t initialVal,
|
||||
bool active = false,
|
||||
time_t *callback = NULL,
|
||||
eRecMenuState action = rmsNotConsumed);
|
||||
|
@ -447,7 +447,7 @@ cRecMenuEditTimer::cRecMenuEditTimer(const cTimer *timer, eRecMenuState nextStat
|
||||
AddMenuItemInitial(new cRecMenuItemBool(tr("Timer Active"), true, &timerActive));
|
||||
AddMenuItemInitial(new cRecMenuItemInt(tr("Priority"), 0, MAXPRIORITY, false, &prio));
|
||||
AddMenuItemInitial(new cRecMenuItemInt(tr("Lifetime"), 0, MAXLIFETIME, false, &lifetime));
|
||||
AddMenuItemInitial(new cRecMenuItemDay(tr("Day"), day, false, &day));
|
||||
AddMenuItemInitial(new cRecMenuItemDay(tr("Day"), false, &day));
|
||||
AddMenuItemInitial(new cRecMenuItemTime(tr("Timer start time"), false, &start));
|
||||
AddMenuItemInitial(new cRecMenuItemTime(tr("Timer stop time"), false, &stop));
|
||||
cString fileInfo = cString::sprintf("%s:\n%s", tr("Timer File"), timer->File());
|
||||
@ -527,7 +527,7 @@ cRecMenuSeriesTimer::cRecMenuSeriesTimer(const cChannel *initialChannel, const c
|
||||
AddMenuItem(new cRecMenuItemTime(tr("Series Timer start time"), false, &start));
|
||||
AddMenuItem(new cRecMenuItemTime(tr("Series Timer stop time"), false, &stop));
|
||||
AddMenuItem(new cRecMenuItemDayChooser(tr("Days to record"), dayOfWeek, false, &dayOfWeek));
|
||||
AddMenuItem(new cRecMenuItemDay(tr("Day to start"), tstart, false, &tstart));
|
||||
AddMenuItem(new cRecMenuItemDay(tr("Day to start"), false, &tstart));
|
||||
AddMenuItem(new cRecMenuItemInt(tr("Priority"), 0, MAXPRIORITY, false, &priority));
|
||||
AddMenuItem(new cRecMenuItemInt(tr("Lifetime"), 0, MAXLIFETIME, false, &lifetime));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user