cMenuEditStrItem Class Reference

#include <menuitems.h>

Inheritance diagram for cMenuEditStrItem:

Inheritance graph
[legend]
Collaboration diagram for cMenuEditStrItem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cMenuEditStrItem (const char *Name, char *Value, int Length, const char *Allowed=NULL)
 ~cMenuEditStrItem ()
virtual eOSState ProcessKey (eKeys Key)

Protected Member Functions

void EnterEditMode (void)
void LeaveEditMode (bool SaveValue=false)
bool InEditMode (void)

Private Member Functions

void SetHelpKeys (void)
uint * IsAllowed (uint c)
void AdvancePos (void)
virtual void Set (void)
uint Inc (uint c, bool Up)
void Insert (void)
void Delete (void)

Private Attributes

char * value
int length
const char * allowed
int pos
int offset
bool insert
bool newchar
bool uppercase
int lengthUtf8
uint * valueUtf8
uint * allowedUtf8
uint * charMapUtf8
uint * currentCharUtf8
eKeys lastKey
cTimeMs autoAdvanceTimeout


Detailed Description

Definition at line 79 of file menuitems.h.


Constructor & Destructor Documentation

cMenuEditStrItem::cMenuEditStrItem ( const char *  Name,
char *  Value,
int  Length,
const char *  Allowed = NULL 
)

Definition at line 253 of file menuitems.c.

References allowed, allowedUtf8, charMapUtf8, currentCharUtf8, FileNameChars, insert, kNone, lastKey, length, lengthUtf8, newchar, offset, pos, Set(), tr, uppercase, value, and valueUtf8.

Here is the call graph for this function:

cMenuEditStrItem::~cMenuEditStrItem (  ) 

Definition at line 272 of file menuitems.c.

References allowedUtf8, charMapUtf8, and valueUtf8.


Member Function Documentation

void cMenuEditStrItem::SetHelpKeys ( void   )  [private]

Definition at line 316 of file menuitems.c.

References cSkinDisplay::Current(), InEditMode(), insert, cSkinDisplay::SetButtons(), and tr.

Referenced by ProcessKey().

Here is the call graph for this function:

uint * cMenuEditStrItem::IsAllowed ( uint  c  )  [private]

Definition at line 324 of file menuitems.c.

References allowedUtf8.

Referenced by Inc(), and ProcessKey().

void cMenuEditStrItem::AdvancePos ( void   )  [private]

Definition at line 335 of file menuitems.c.

References insert, length, lengthUtf8, newchar, pos, uppercase, Utf8is, and valueUtf8.

Referenced by EnterEditMode(), and ProcessKey().

void cMenuEditStrItem::Set ( void   )  [private, virtual]

Reimplemented from cOsdItem.

Definition at line 353 of file menuitems.c.

References cSkinDisplay::Current(), cSkinDisplay::EditableWidth(), fontOsd, cFont::GetFont(), InEditMode(), insert, lengthUtf8, newchar, offset, pos, cMenuEditItem::SetValue(), Utf8FromArray(), value, valueUtf8, and cFont::Width().

Referenced by cMenuEditStrItem(), and ProcessKey().

Here is the call graph for this function:

uint cMenuEditStrItem::Inc ( uint  c,
bool  Up 
) [private]

Definition at line 408 of file menuitems.c.

References allowedUtf8, and IsAllowed().

Referenced by ProcessKey().

Here is the call graph for this function:

void cMenuEditStrItem::Insert ( void   )  [private]

Definition at line 425 of file menuitems.c.

References lengthUtf8, pos, and valueUtf8.

Referenced by ProcessKey().

void cMenuEditStrItem::Delete ( void   )  [private]

Definition at line 432 of file menuitems.c.

References lengthUtf8, pos, and valueUtf8.

Referenced by ProcessKey().

void cMenuEditStrItem::EnterEditMode ( void   )  [protected]

Definition at line 279 of file menuitems.c.

References AdvancePos(), allowed, allowedUtf8, charMapUtf8, currentCharUtf8, length, lengthUtf8, tr, Utf8ToArray(), value, and valueUtf8.

Referenced by ProcessKey().

Here is the call graph for this function:

void cMenuEditStrItem::LeaveEditMode ( bool  SaveValue = false  )  [protected]

Definition at line 296 of file menuitems.c.

References allowedUtf8, charMapUtf8, length, lengthUtf8, newchar, offset, pos, stripspace(), Utf8FromArray(), value, and valueUtf8.

Referenced by ProcessKey().

Here is the call graph for this function:

bool cMenuEditStrItem::InEditMode ( void   )  [inline, protected]

Definition at line 103 of file menuitems.h.

References valueUtf8.

Referenced by ProcessKey(), Set(), and SetHelpKeys().

eOSState cMenuEditStrItem::ProcessKey ( eKeys  Key  )  [virtual]


Member Data Documentation

char* cMenuEditStrItem::value [private]

Definition at line 81 of file menuitems.h.

Referenced by cMenuEditStrItem(), EnterEditMode(), LeaveEditMode(), and Set().

int cMenuEditStrItem::length [private]

Definition at line 82 of file menuitems.h.

Referenced by AdvancePos(), cMenuEditStrItem(), EnterEditMode(), LeaveEditMode(), and ProcessKey().

const char* cMenuEditStrItem::allowed [private]

Definition at line 83 of file menuitems.h.

Referenced by cMenuEditStrItem(), and EnterEditMode().

int cMenuEditStrItem::pos [private]

Definition at line 84 of file menuitems.h.

Referenced by AdvancePos(), cMenuEditStrItem(), Delete(), Insert(), LeaveEditMode(), ProcessKey(), and Set().

int cMenuEditStrItem::offset [private]

Definition at line 84 of file menuitems.h.

Referenced by cMenuEditStrItem(), LeaveEditMode(), and Set().

bool cMenuEditStrItem::insert [private]

Definition at line 85 of file menuitems.h.

Referenced by AdvancePos(), cMenuEditStrItem(), ProcessKey(), Set(), and SetHelpKeys().

bool cMenuEditStrItem::newchar [private]

Definition at line 85 of file menuitems.h.

Referenced by AdvancePos(), cMenuEditStrItem(), LeaveEditMode(), ProcessKey(), and Set().

Definition at line 85 of file menuitems.h.

Referenced by AdvancePos(), cMenuEditStrItem(), and ProcessKey().

uint* cMenuEditStrItem::valueUtf8 [private]

Definition at line 90 of file menuitems.h.

Referenced by cMenuEditStrItem(), EnterEditMode(), and ProcessKey().

Definition at line 91 of file menuitems.h.

Referenced by cMenuEditStrItem(), and ProcessKey().

Definition at line 92 of file menuitems.h.

Referenced by ProcessKey().


The documentation for this class was generated from the following files:

Generated on Tue Jan 13 14:29:41 2009 for VDR by  doxygen 1.5.6