vdr 2.7.5
menu.c File Reference
#include "menu.h"
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "channels.h"
#include "config.h"
#include "cutter.h"
#include "eitscan.h"
#include "i18n.h"
#include "interface.h"
#include "plugin.h"
#include "recording.h"
#include "remote.h"
#include "shutdown.h"
#include "sourceparams.h"
#include "sources.h"
#include "status.h"
#include "svdrp.h"
#include "themes.h"
#include "timers.h"
#include "transfer.h"
#include "videodir.h"

Go to the source code of this file.

Classes

class  cMenuEditCaItem
class  cMenuEditSrcItem
class  cMenuEditChannel
class  cMenuChannelItem
class  cMenuChannels
class  cMenuFolderItem
class  cMenuEditFolder
class  cMenuTimerItem
class  cMenuTimers
class  cMenuScheduleItem
class  cMenuWhatsOn
class  cMenuSchedule
class  cMenuCam
class  cMenuPathEdit
class  cMenuRecordingEdit
class  cMenuRecording
class  cMenuRecordingItem
class  cMenuSetupBase
class  cMenuSetupOSD
class  cMenuSetupEPG
class  cMenuSetupDVB
class  cMenuSetupLNB
class  cMenuSetupCAMItem
class  cMenuSetupCAM
class  cMenuSetupRecord
class  cMenuSetupReplay
class  cMenuSetupMisc
class  cMenuSetupPluginItem
class  cMenuSetupPlugins
class  cMenuSetup
class  cMenuPluginItem

Macros

#define MAXWAIT4EPGINFO   3
#define MODETIMEOUT   3
#define NEWTIMERLIMIT   120
#define DEFERTIMER   60
#define MAXRECORDCONTROLS   (MAXDEVICES * MAXRECEIVERS)
#define MAXINSTANTRECTIME   (24 * 60 - 1)
#define MAXWAITFORCAMMENU   10
#define CAMMENURETRYTIMEOUT   3
#define CAMRESPONSETIMEOUT   5
#define PROGRESSTIMEOUT   100
#define MINFREEDISK   300
#define NODISKSPACEDELTA   300
#define MAXCHNAMWIDTH   16
#define CHNUMWIDTH   (numdigits(cChannels::MaxNumber()) + 1)
#define CHNAMWIDTH   (min(MAXCHNAMWIDTH, cChannels::MaxShortChannelNameLength() + 1))
#define CHANNELNUMBERTIMEOUT   1000
#define FOLDERDELIMCHARSUBST   0x01
#define osUserRecRenamed   osUser1
#define osUserRecMoved   osUser2
#define osUserRecRemoved   osUser3
#define osUserRecEmpty   osUser4
#define STOP_RECORDING   trNOOP(" Stop recording ")
#define VOLUMETIMEOUT   1000
#define MUTETIMEOUT   5000
#define TRACKTIMEOUT   5000
#define INSTANT_REC_EPG_LOOKAHEAD   300
#define STAY_SECONDS_OFF_END   10

Functions

static void AddRecordingFolders (const cRecordings *Recordings, cList< cNestedItem > *List, char *Path)
static bool RemoteTimerError (const cTimer *Timer)
static bool HandleRemoteModifications (cTimer *NewTimer, cTimer *OldTimer=NULL)
cOsdObjectCamControl (void)
bool CamMenuActive (void)
static bool TimerStillRecording (const char *FileName)
void SetTrackDescriptions (int LiveChannel)

Variables

static const char * TimerFileMacrosForPattern []
static const char * TimerFileMacros []
static const char * TimerMatchChars = " tT iI"
static bool CamMenuIsOpen = false

Macro Definition Documentation

◆ CAMMENURETRYTIMEOUT

#define CAMMENURETRYTIMEOUT   3

Definition at line 46 of file menu.c.

Referenced by cMenuSetupCAM::Menu().

◆ CAMRESPONSETIMEOUT

#define CAMRESPONSETIMEOUT   5

Definition at line 47 of file menu.c.

Referenced by cMenuCam::ProcessKey().

◆ CHANNELNUMBERTIMEOUT

#define CHANNELNUMBERTIMEOUT   1000

Definition at line 352 of file menu.c.

Referenced by cMenuChannels::Number().

◆ CHNAMWIDTH

◆ CHNUMWIDTH

◆ DEFERTIMER

#define DEFERTIMER   60

Definition at line 41 of file menu.c.

Referenced by cRecordControl::cRecordControl().

◆ FOLDERDELIMCHARSUBST

#define FOLDERDELIMCHARSUBST   0x01

Definition at line 823 of file menu.c.

Referenced by AddRecordingFolders().

◆ INSTANT_REC_EPG_LOOKAHEAD

#define INSTANT_REC_EPG_LOOKAHEAD   300

Definition at line 5495 of file menu.c.

Referenced by cRecordControl::GetEvent().

◆ MAXCHNAMWIDTH

#define MAXCHNAMWIDTH   16

Definition at line 51 of file menu.c.

◆ MAXINSTANTRECTIME

#define MAXINSTANTRECTIME   (24 * 60 - 1)

Definition at line 44 of file menu.c.

Referenced by cMenuSetupRecord::cMenuSetupRecord().

◆ MAXRECORDCONTROLS

◆ MAXWAIT4EPGINFO

#define MAXWAIT4EPGINFO   3

Definition at line 36 of file menu.c.

Referenced by cRecordControl::GetEvent().

◆ MAXWAITFORCAMMENU

#define MAXWAITFORCAMMENU   10

Definition at line 45 of file menu.c.

Referenced by cMenuSetupCAM::Menu().

◆ MINFREEDISK

#define MINFREEDISK   300

Definition at line 49 of file menu.c.

Referenced by cRecordControls::Start().

◆ MODETIMEOUT

#define MODETIMEOUT   3

Definition at line 37 of file menu.c.

Referenced by cReplayControl::ShowMode().

◆ MUTETIMEOUT

#define MUTETIMEOUT   5000

Definition at line 5120 of file menu.c.

Referenced by cDisplayVolume::cDisplayVolume(), and cDisplayVolume::ProcessKey().

◆ NEWTIMERLIMIT

#define NEWTIMERLIMIT   120

Definition at line 38 of file menu.c.

Referenced by cMenuSchedule::Record(), and cMenuWhatsOn::Record().

◆ NODISKSPACEDELTA

#define NODISKSPACEDELTA   300

Definition at line 50 of file menu.c.

Referenced by cRecordControls::Start().

◆ osUserRecEmpty

#define osUserRecEmpty   osUser4

Definition at line 2515 of file menu.c.

Referenced by cMenuRecordings::Delete(), and cMenuRecordings::ProcessKey().

◆ osUserRecMoved

#define osUserRecMoved   osUser2

◆ osUserRecRemoved

#define osUserRecRemoved   osUser3

Definition at line 2514 of file menu.c.

Referenced by cMenuRecordings::Delete(), and cMenuRecordings::ProcessKey().

◆ osUserRecRenamed

#define osUserRecRenamed   osUser1

◆ PROGRESSTIMEOUT

#define PROGRESSTIMEOUT   100

Definition at line 48 of file menu.c.

Referenced by cReplayControl::ShowProgress().

◆ STAY_SECONDS_OFF_END

#define STAY_SECONDS_OFF_END   10

◆ STOP_RECORDING

#define STOP_RECORDING   trNOOP(" Stop recording ")

Definition at line 4525 of file menu.c.

Referenced by cMenuMain::ProcessKey(), and cMenuMain::Update().

◆ TRACKTIMEOUT

◆ VOLUMETIMEOUT

#define VOLUMETIMEOUT   1000

Definition at line 5119 of file menu.c.

Referenced by cDisplayVolume::cDisplayVolume(), and cDisplayVolume::ProcessKey().

Function Documentation

◆ AddRecordingFolders()

◆ CamControl()

cOsdObject * CamControl ( void )

Definition at line 2496 of file menu.c.

References CamSlots.

Referenced by main().

◆ CamMenuActive()

bool CamMenuActive ( void )

Definition at line 2505 of file menu.c.

References CamMenuIsOpen.

Referenced by main().

◆ HandleRemoteModifications()

bool HandleRemoteModifications ( cTimer * NewTimer,
cTimer * OldTimer = NULL )
static

◆ RemoteTimerError()

bool RemoteTimerError ( const cTimer * Timer)
static

Definition at line 1132 of file menu.c.

References cTimer::Id(), mtError, cTimer::Remote(), Skins, cString::sprintf(), and tr.

Referenced by cMenuTimers::OnOff().

◆ SetTrackDescriptions()

◆ TimerStillRecording()

Variable Documentation

◆ CamMenuIsOpen

bool CamMenuIsOpen = false
static

Definition at line 2312 of file menu.c.

Referenced by CamMenuActive(), cMenuCam::cMenuCam(), and cMenuCam::~cMenuCam().

◆ TimerFileMacros

const char* TimerFileMacros[]
static
Initial value:
= {
"",
NULL
}
#define TIMERMACRO_EPISODE
Definition config.h:54
#define TIMERMACRO_TITLE
Definition config.h:53

Definition at line 1008 of file menu.c.

Referenced by cMenuEditTimer::SetPatternItem().

◆ TimerFileMacrosForPattern

const char* TimerFileMacrosForPattern[]
static
Initial value:
= {
"",
NULL
}
#define TIMERMACRO_MATCH
Definition config.h:56
#define TIMERMACRO_AFTER
Definition config.h:57
#define TIMERMACRO_BEFORE
Definition config.h:55

Definition at line 998 of file menu.c.

Referenced by cMenuEditTimer::SetPatternItem().

◆ TimerMatchChars

const char* TimerMatchChars = " tT iI"
static

Definition at line 1609 of file menu.c.

Referenced by cMenuScheduleItem::Update().