vdr
2.2.0
|
#include <menu.h>
Public Member Functions | |
cMenuRecordings (const char *Base=NULL, int Level=0, bool OpenSubMenus=false, const cRecordingFilter *Filter=NULL) | |
~cMenuRecordings () | |
virtual eOSState | ProcessKey (eKeys Key) |
![]() | |
cOsdMenu (const char *Title, int c0=0, int c1=0, int c2=0, int c3=0, int c4=0) | |
virtual | ~cOsdMenu () |
virtual bool | NeedsFastResponse (void) |
void | SetMenuCategory (eMenuCategory MenuCategory) |
void | SetMenuSortMode (eMenuSortMode MenuSortMode) |
int | Current (void) const |
void | Add (cOsdItem *Item, bool Current=false, cOsdItem *After=NULL) |
void | Ins (cOsdItem *Item, bool Current=false, cOsdItem *Before=NULL) |
virtual void | Display (void) |
![]() | |
cOsdObject (bool FastResponse=false) | |
virtual | ~cOsdObject () |
bool | IsMenu (void) const |
virtual void | Show (void) |
![]() | |
cOsdItem * | Get (int Index) const |
cOsdItem * | First (void) const |
cOsdItem * | Last (void) const |
cOsdItem * | Prev (const cOsdItem *object) const |
cOsdItem * | Next (const cOsdItem *object) const |
![]() | |
virtual | ~cListBase () |
void | Add (cListObject *Object, cListObject *After=NULL) |
void | Ins (cListObject *Object, cListObject *Before=NULL) |
void | Del (cListObject *Object, bool DeleteObject=true) |
virtual void | Move (int From, int To) |
void | Move (cListObject *From, cListObject *To) |
cListObject * | Get (int Index) const |
int | Count (void) const |
void | Sort (void) |
Static Public Member Functions | |
static void | SetPath (const char *Path) |
static void | SetRecording (const char *FileName) |
Protected Member Functions | |
cString | DirectoryName (void) |
![]() | |
void | SetDisplayMenu (void) |
cSkinDisplayMenu * | DisplayMenu (void) |
const char * | hk (const char *s) |
void | SetCols (int c0, int c1=0, int c2=0, int c3=0, int c4=0) |
void | SetHasHotkeys (bool HasHotkeys=true) |
virtual void | Clear (void) |
const char * | Title (void) |
bool | SelectableItem (int idx) |
void | SetCurrent (cOsdItem *Item) |
void | RefreshCurrent (void) |
void | DisplayCurrent (bool Current) |
void | DisplayItem (cOsdItem *Item) |
void | CursorUp (void) |
void | CursorDown (void) |
void | PageUp (void) |
void | PageDown (void) |
void | Mark (void) |
eOSState | HotKey (eKeys Key) |
eOSState | AddSubMenu (cOsdMenu *SubMenu) |
eOSState | CloseSubMenu (bool ReDisplay=true) |
bool | HasSubMenu (void) |
cOsdMenu * | SubMenu (void) |
void | SetStatus (const char *s) |
void | SetTitle (const char *Title) |
void | SetHelp (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL) |
virtual void | Del (int Index) |
![]() | |
void | SetNeedsFastResponse (bool NeedsFastResponse) |
![]() | |
cListBase (void) | |
Private Member Functions | |
void | SetHelpKeys (void) |
void | Set (bool Refresh=false) |
bool | Open (bool OpenSubMenus=false) |
eOSState | Play (void) |
eOSState | Rewind (void) |
eOSState | Delete (void) |
eOSState | Info (void) |
eOSState | Sort (void) |
eOSState | Commands (eKeys Key=kNone) |
Private Attributes | |
char * | base |
int | level |
int | recordingsState |
int | helpKeys |
const cRecordingFilter * | filter |
Static Private Attributes | |
static cString | path |
static cString | fileName |
Additional Inherited Members | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cMenuRecordings::cMenuRecordings | ( | const char * | Base = NULL , |
int | Level = 0 , |
||
bool | OpenSubMenus = false , |
||
const cRecordingFilter * | Filter = NULL |
||
) |
Definition at line 2887 of file menu.c.
References base, cOsdMenu::Current(), cOsdMenu::Display(), fileName, filter, cList< cOsdItem >::First(), FOLDERDELIMCHAR, helpKeys, cReplayControl::LastReplayed(), level, mcRecording, Open(), path, cSetup::RecordingDirs, Recordings, recordingsState, Set(), cOsdMenu::SetCurrent(), SetHelpKeys(), cOsdMenu::SetMenuCategory(), Setup, cRecordings::StateChanged(), and strcountchr().
Referenced by Open().
cMenuRecordings::~cMenuRecordings | ( | ) |
Definition at line 2910 of file menu.c.
References base, cOsdMenu::Current(), cList< cOsdItem >::Get(), and SetRecording().
Definition at line 3124 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), cRecording::FileName(), cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), kNone, osContinue, cMenuCommands::ProcessKey(), cMenuRecordingItem::Recording(), RecordingCommands, cString::sprintf(), strescape(), and tr.
Referenced by ProcessKey().
|
private |
Definition at line 3055 of file menu.c.
References cReplayControl::ClearLastReplayed(), cInterface::Confirm(), cListBase::Count(), cOsdMenu::Current(), cOsdMenu::Del(), cTimers::Del(), cRecordingsHandler::Del(), cRecordings::DelByName(), cRecording::Delete(), cOsdMenu::Display(), cRecording::FileName(), cVideoDiskUsage::ForceCheck(), cList< cOsdItem >::Get(), cRecordings::GetByName(), cRecordControls::GetRecordControl(), cRecordingsHandler::GetUsage(), cOsdMenu::HasSubMenu(), Interface, cMenuRecordingItem::IsDirectory(), cTimer::IsSingleEvent(), isyslog, cSkins::Message(), mtError, cReplayControl::NowReplaying(), osBack, osContinue, osUser2, cRecordControls::Process(), cMenuRecordingItem::Recording(), Recordings, RecordingsHandler, SetHelpKeys(), cTimers::SetModified(), cControl::Shutdown(), Skins, cTimer::Skip(), cRecordControl::Timer(), Timers, cTimer::ToDescr(), and tr.
Referenced by ProcessKey().
|
protected |
Definition at line 3000 of file menu.c.
References AddDirectory(), base, ExchangeChars(), and cVideoDirectory::Name().
|
private |
Definition at line 3111 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), FOLDERDELIMCHAR, cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), osContinue, and strchrn().
Referenced by ProcessKey().
|
private |
Definition at line 3011 of file menu.c.
References cOsdMenu::AddSubMenu(), base, cMenuRecordings(), cOsdMenu::Current(), filter, FOLDERDELIMCHAR, cList< cOsdItem >::Get(), cMenuRecordingItem::IsDirectory(), level, cMenuRecordingItem::Name(), path, cString::sprintf(), and strcountchr().
Referenced by cMenuRecordings(), Play(), and ProcessKey().
|
private |
Definition at line 3027 of file menu.c.
References cOsdMenu::Current(), cRecording::FileName(), cList< cOsdItem >::Get(), cMenuRecordingItem::IsDirectory(), Open(), osContinue, osReplay, cMenuRecordingItem::Recording(), and cReplayControl::SetRecording().
Referenced by ProcessKey(), and Rewind().
Reimplemented from cOsdMenu.
Definition at line 3148 of file menu.c.
References base, cOsdMenu::CloseSubMenu(), Commands(), cListBase::Count(), cOsdMenu::Current(), cOsdMenu::Del(), Delete(), cOsdMenu::Display(), fileName, cList< cOsdItem >::Get(), cList< T >::Get(), cOsdMenu::HasSubMenu(), helpKeys, Info(), k0, k1, kBlue, kGreen, kInfo, kNone, kOk, kPlay, kPlayPause, kRed, kYellow, Open(), osBack, osUnknown, osUser1, osUser2, path, Play(), cOsdMenu::ProcessKey(), RecordingCommands, Recordings, recordingsState, Rewind(), Set(), SetHelpKeys(), Sort(), cRecordings::StateChanged(), and cOsdMenu::SubMenu().
|
private |
Definition at line 3041 of file menu.c.
References cListBase::Count(), cOsdMenu::Current(), cResumeFile::Delete(), cRecording::FileName(), cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), cRecording::IsPesRecording(), osContinue, Play(), cDevice::PrimaryDevice(), cMenuRecordingItem::Recording(), and cDevice::StopReplay().
Referenced by ProcessKey().
|
private |
Definition at line 2940 of file menu.c.
References cOsdMenu::Add(), base, cOsdMenu::Clear(), cOsdMenu::Current(), DirectoryName(), cOsdMenu::Display(), fileName, cRecordingFilter::Filter(), filter, cList< T >::First(), FOLDERDELIMCHAR, cList< cOsdItem >::Get(), GetRecordingsSortMode(), cMenuRecordingItem::IncrementCounter(), cMenuRecordingItem::IsDirectory(), cReplayControl::LastReplayed(), level, msmName, msmTime, cMenuRecordingItem::Name(), cList< T >::Next(), path, Recordings, RecordingsSortMode, rsmName, cOsdMenu::SetCurrent(), cOsdMenu::SetMenuSortMode(), cListBase::Sort(), and cOsdItem::Text().
Referenced by cMenuRecordings(), cMenuSetupOSD::cMenuSetupOSD(), ProcessKey(), cMenuSetupOSD::ProcessKey(), and Sort().
|
private |
Definition at line 2919 of file menu.c.
References cListBase::Count(), cOsdMenu::Current(), cList< cOsdItem >::Get(), helpKeys, cMenuRecordingItem::IsDirectory(), RecordingCommands, cOsdMenu::SetHelp(), and tr.
Referenced by cMenuRecordings(), Delete(), and ProcessKey().
|
static |
Definition at line 2990 of file menu.c.
References path.
Referenced by cMenuPathEdit::ApplyChanges().
|
static |
Definition at line 2995 of file menu.c.
References fileName.
Referenced by cMenuRecordingEdit::ApplyChanges(), cReplayControl::Stop(), and ~cMenuRecordings().
|
private |
Definition at line 3139 of file menu.c.
References DirectoryName(), cOsdMenu::HasSubMenu(), IncRecordingsSortMode(), osContinue, and Set().
Referenced by ProcessKey().
|
private |
Definition at line 206 of file menu.h.
Referenced by cMenuRecordings(), DirectoryName(), Open(), ProcessKey(), Set(), and ~cMenuRecordings().
|
staticprivate |
Definition at line 212 of file menu.h.
Referenced by cMenuRecordings(), ProcessKey(), Set(), cMenuRecordingItem::SetMenuItem(), and SetRecording().
|
private |
Definition at line 210 of file menu.h.
Referenced by cMenuRecordings(), Open(), and Set().
|
private |
Definition at line 209 of file menu.h.
Referenced by cMenuRecordings(), ProcessKey(), and SetHelpKeys().
|
private |
Definition at line 207 of file menu.h.
Referenced by cMenuRecordings(), Open(), and Set().
|
staticprivate |
Definition at line 211 of file menu.h.
Referenced by cMenuRecordings(), Open(), ProcessKey(), Set(), cMenuRecordingItem::SetMenuItem(), and SetPath().
|
private |
Definition at line 208 of file menu.h.
Referenced by cMenuRecordings(), and ProcessKey().