vdr  2.4.0
Classes | Macros | Functions | Variables
menu.c File Reference
#include "menu.h"
#include "iconpatch.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"
Include dependency graph for menu.c:

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)
 
static void SetTrackDescriptions (int LiveChannel)
 

Variables

static const char * TimerMatchChars [18]
 
static bool CamMenuIsOpen = false
 

Macro Definition Documentation

◆ CAMMENURETRYTIMEOUT

#define CAMMENURETRYTIMEOUT   3

Definition at line 47 of file menu.c.

◆ CAMRESPONSETIMEOUT

#define CAMRESPONSETIMEOUT   5

Definition at line 48 of file menu.c.

◆ CHANNELNUMBERTIMEOUT

#define CHANNELNUMBERTIMEOUT   1000

Definition at line 360 of file menu.c.

◆ CHNAMWIDTH

#define CHNAMWIDTH   (min(MAXCHNAMWIDTH, cChannels::MaxShortChannelNameLength() + 1))

Definition at line 55 of file menu.c.

◆ CHNUMWIDTH

#define CHNUMWIDTH   (numdigits(cChannels::MaxNumber()) + 1)

Definition at line 54 of file menu.c.

◆ DEFERTIMER

#define DEFERTIMER   60

Definition at line 42 of file menu.c.

◆ FOLDERDELIMCHARSUBST

#define FOLDERDELIMCHARSUBST   0x01

Definition at line 813 of file menu.c.

◆ INSTANT_REC_EPG_LOOKAHEAD

#define INSTANT_REC_EPG_LOOKAHEAD   300

Definition at line 5344 of file menu.c.

◆ MAXCHNAMWIDTH

#define MAXCHNAMWIDTH   16

Definition at line 52 of file menu.c.

◆ MAXINSTANTRECTIME

#define MAXINSTANTRECTIME   (24 * 60 - 1)

Definition at line 45 of file menu.c.

◆ MAXRECORDCONTROLS

#define MAXRECORDCONTROLS   (MAXDEVICES * MAXRECEIVERS)

Definition at line 44 of file menu.c.

◆ MAXWAIT4EPGINFO

#define MAXWAIT4EPGINFO   3

Definition at line 37 of file menu.c.

◆ MAXWAITFORCAMMENU

#define MAXWAITFORCAMMENU   10

Definition at line 46 of file menu.c.

◆ MINFREEDISK

#define MINFREEDISK   300

Definition at line 50 of file menu.c.

◆ MODETIMEOUT

#define MODETIMEOUT   3

Definition at line 38 of file menu.c.

◆ MUTETIMEOUT

#define MUTETIMEOUT   5000

Definition at line 4975 of file menu.c.

◆ NEWTIMERLIMIT

#define NEWTIMERLIMIT   120

Definition at line 39 of file menu.c.

◆ NODISKSPACEDELTA

#define NODISKSPACEDELTA   300

Definition at line 51 of file menu.c.

◆ osUserRecEmpty

#define osUserRecEmpty   osUser4

Definition at line 2447 of file menu.c.

◆ osUserRecMoved

#define osUserRecMoved   osUser2

Definition at line 2445 of file menu.c.

◆ osUserRecRemoved

#define osUserRecRemoved   osUser3

Definition at line 2446 of file menu.c.

◆ osUserRecRenamed

#define osUserRecRenamed   osUser1

Definition at line 2444 of file menu.c.

◆ PROGRESSTIMEOUT

#define PROGRESSTIMEOUT   100

Definition at line 49 of file menu.c.

◆ STAY_SECONDS_OFF_END

#define STAY_SECONDS_OFF_END   10

◆ STOP_RECORDING

#define STOP_RECORDING   trNOOP(" Stop recording ")

Definition at line 4385 of file menu.c.

◆ TRACKTIMEOUT

#define TRACKTIMEOUT   5000

Definition at line 5041 of file menu.c.

◆ VOLUMETIMEOUT

#define VOLUMETIMEOUT   1000

Definition at line 4974 of file menu.c.

Function Documentation

◆ AddRecordingFolders()

static void AddRecordingFolders ( const cRecordings Recordings,
cList< cNestedItem > *  List,
char *  Path 
)
static

◆ CamControl()

cOsdObject* CamControl ( void  )

Definition at line 2428 of file menu.c.

References CamSlots, cList< T >::First(), and cList< T >::Next().

Referenced by main().

Here is the caller graph for this function:

◆ CamMenuActive()

bool CamMenuActive ( void  )

Definition at line 2437 of file menu.c.

References CamMenuIsOpen.

Referenced by main().

Here is the caller graph for this function:

◆ HandleRemoteModifications()

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

◆ RemoteTimerError()

static bool RemoteTimerError ( const cTimer Timer)
static

Definition at line 1077 of file menu.c.

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

Referenced by cMenuTimers::OnOff().

◆ SetTrackDescriptions()

static void SetTrackDescriptions ( int  LiveChannel)
static

◆ TimerStillRecording()

static bool TimerStillRecording ( const char *  FileName)
static

Variable Documentation

◆ CamMenuIsOpen

bool CamMenuIsOpen = false
static

Definition at line 2244 of file menu.c.

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

◆ TimerMatchChars

const char* TimerMatchChars[18]
static
Initial value:
=
{
" ", "t", "T",
" ", "i", "I",
}
#define ICON_TIMER_INACT
Definition: iconpatch.h:43
#define ICON_CLOCK_UH
Definition: iconpatch.h:41
#define ICON_BLANK
Definition: iconpatch.h:24
#define ICON_TIMER_INACT_UTF8
Definition: iconpatch.h:68
#define ICON_BLANK_UTF8
Definition: iconpatch.h:49
#define ICON_CLOCK_UH_UTF8
Definition: iconpatch.h:66
#define ICON_CLOCK
Definition: iconpatch.h:33
#define ICON_CLOCK_UTF8
Definition: iconpatch.h:58

Definition at line 1530 of file menu.c.

Referenced by cMenuScheduleItem::Update().