Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

NCTextEntry Class Reference

#include <NCTextEntry.h>

Inheritance diagram for NCTextEntry:

YTextEntry NCWidget YWidget tnode< NCWidget * > NCursesError List of all members.

Public Types

enum  FTYPE { PLAIN, NUMBER }

Public Member Functions

 NCTextEntry (NCWidget *parent, const YWidgetOpt &opt, const YCPString &label, const YCPString &text, unsigned maxInput=0, unsigned maxFld=0)
virtual ~NCTextEntry ()
void setFldtype (FTYPE t)
void setReturnOnReturn (bool on_br)
virtual long nicesize (YUIDimension dim)
virtual void setSize (long newwidth, long newheight)
virtual void setLabel (const YCPString &nlabel)
virtual void setText (const YCPString &ntext)
virtual YCPString getText ()
virtual void setValidChars (const YCPString &validchars)
virtual NCursesEvent wHandleInput (wint_t key)
virtual void setEnabling (bool do_bv)
virtual bool setKeyboardFocus ()

Protected Member Functions

virtual const char * location () const
virtual void wCreate (const wrect &newrect)
virtual void wDelete ()
virtual void wRedraw ()
bool validKey (wint_t key) const

Private Member Functions

NCTextEntryoperator= (const NCTextEntry &)
 NCTextEntry (const NCTextEntry &)
void setDefsze ()
void tUpdate ()
bool bufferFull () const
unsigned maxCursor () const

Private Attributes

bool mayedit
bool passwd
NClabel label
wstring buffer
NCursesWindowlwin
NCursesWindowtwin
unsigned maxFldLength
unsigned maxInputLength
unsigned fldstart
unsigned fldlength
unsigned curpos
FTYPE fldtype
NCstring validChars
bool returnOnReturn_b

Friends

std::ostream & operator<< (std::ostream &STREAM, const NCTextEntry &OBJ)

Member Enumeration Documentation

enum NCTextEntry::FTYPE
 

Enumeration values:
PLAIN 
NUMBER 


Constructor & Destructor Documentation

NCTextEntry::NCTextEntry const NCTextEntry  )  [private]
 

NCTextEntry::NCTextEntry NCWidget parent,
const YWidgetOpt opt,
const YCPString label,
const YCPString text,
unsigned  maxInput = 0,
unsigned  maxFld = 0
 

NCTextEntry::~NCTextEntry  )  [virtual]
 


Member Function Documentation

bool NCTextEntry::bufferFull  )  const [inline, private]
 

YCPString NCTextEntry::getText  )  [virtual]
 

Implements YTextEntry.

virtual const char* NCTextEntry::location  )  const [inline, protected, virtual]
 

Reimplemented from NCWidget.

unsigned NCTextEntry::maxCursor  )  const [inline, private]
 

long NCTextEntry::nicesize YUIDimension  dim  )  [virtual]
 

Implements YWidget.

NCTextEntry& NCTextEntry::operator= const NCTextEntry  )  [private]
 

void NCTextEntry::setDefsze  )  [private]
 

virtual void NCTextEntry::setEnabling bool  do_bv  )  [inline, virtual]
 

Pure virtual to make shure every widget implements it. Necessary to make shure that UI requests via YWidget::setEnabling perform, and behave the same way as direct calls to NCWidget::setEnabling.

Defaut implementation is provided, and for most derived widgets it's ok to simply use it.

Implements NCWidget.

void NCTextEntry::setFldtype FTYPE  t  )  [inline]
 

virtual bool NCTextEntry::setKeyboardFocus  )  [inline, virtual]
 

Reimplemented from YWidget.

void NCTextEntry::setLabel const YCPString nlabel  )  [virtual]
 

Reimplemented from YTextEntry.

void NCTextEntry::setReturnOnReturn bool  on_br  )  [inline]
 

void NCTextEntry::setSize long  newwidth,
long  newheight
[virtual]
 

Reimplemented from YWidget.

void NCTextEntry::setText const YCPString ntext  )  [virtual]
 

Implements YTextEntry.

void NCTextEntry::setValidChars const YCPString validchars  )  [virtual]
 

Reimplemented from YTextEntry.

void NCTextEntry::tUpdate  )  [private]
 

bool NCTextEntry::validKey wint_t  key  )  const [protected]
 

void NCTextEntry::wCreate const wrect newrect  )  [protected, virtual]
 

Reimplemented from NCWidget.

void NCTextEntry::wDelete  )  [protected, virtual]
 

Reimplemented from NCWidget.

NCursesEvent NCTextEntry::wHandleInput wint_t  key  )  [virtual]
 

Reimplemented from NCWidget.

void NCTextEntry::wRedraw  )  [protected, virtual]
 

Reimplemented from NCWidget.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  STREAM,
const NCTextEntry OBJ
[friend]
 


Member Data Documentation

wstring NCTextEntry::buffer [private]
 

unsigned NCTextEntry::curpos [private]
 

unsigned NCTextEntry::fldlength [private]
 

unsigned NCTextEntry::fldstart [private]
 

FTYPE NCTextEntry::fldtype [private]
 

NClabel NCTextEntry::label [private]
 

Reimplemented from YTextEntry.

NCursesWindow* NCTextEntry::lwin [private]
 

unsigned NCTextEntry::maxFldLength [private]
 

unsigned NCTextEntry::maxInputLength [private]
 

bool NCTextEntry::mayedit [private]
 

bool NCTextEntry::passwd [private]
 

bool NCTextEntry::returnOnReturn_b [private]
 

NCursesWindow* NCTextEntry::twin [private]
 

NCstring NCTextEntry::validChars [private]
 

Reimplemented from YTextEntry.


The documentation for this class was generated from the following files:
Generated on Wed Sep 5 17:18:57 2007 for yast2-ncurses by doxygen 1.3.6