SASC
DVBSoftCAM

cOptSel Class Reference

#include <opts.h>

Inheritance diagram for cOptSel:

List of all members.

Public Member Functions

 cOptSel (const char *Name, const char *Title, int *Storage, int NumStr, const char *const *Strings)
virtual ~cOptSel ()
virtual void Create (cOsdMenu *menu)
 cOptSel (const char *Name, const char *Title, int *Storage, int NumStr, const char *const *Strings)
virtual ~cOptSel ()
virtual void Create (cOsdMenu *menu)

Protected Attributes

const char *const strings

Detailed Description

Definition at line 66 of file opts.h.


Constructor & Destructor Documentation

cOptSel::cOptSel ( const char *  Name,
const char *  Title,
int *  Storage,
int  NumStr,
const char *const *  Strings 
)

Definition at line 313 of file sc.c.

References strings.

:cOptInt(Name,Title,Storage,0,NumStr)
{
  strings=Strings;
  trStrings=0;
}
cOptSel::~cOptSel ( ) [virtual]

Definition at line 320 of file sc.c.

References free.

{
  free(trStrings);
}
cOptSel::cOptSel ( const char *  Name,
const char *  Title,
int *  Storage,
int  NumStr,
const char *const *  Strings 
)
virtual cOptSel::~cOptSel ( ) [virtual]

Member Function Documentation

void cOptSel::Create ( cOsdMenu *  menu) [virtual]

Reimplemented from cOptInt.

Definition at line 325 of file sc.c.

References cOsdMenu::Add(), free, i, MALLOC, cOptInt::max, strings, cOpt::title, tr, and cOptInt::value.

{
  free(trStrings);
  if((trStrings=MALLOC(const char *,max))) {
    for(int i=0; i<max ; i++) trStrings[i]=tr(strings[i]);
    menu->Add(new cMenuEditStraItem(tr(title),&value,max,trStrings));
    }
}
virtual void cOptSel::Create ( cOsdMenu *  menu) [virtual]

Reimplemented from cOptInt.


Member Data Documentation

const char *const cOptSel::strings [protected]

Definition at line 70 of file opts.h.

Referenced by cOptSel(), and Create().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines