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

NCComboBox Class Reference

#include <NCComboBox.h>

Inheritance diagram for NCComboBox:

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

Public Member Functions

 NCComboBox (NCWidget *parent, const YWidgetOpt &opt, const YCPString &label)
virtual ~NCComboBox ()
virtual void itemAdded (const YCPString &string, int index, bool selected)
virtual long nicesize (YUIDimension dim)
virtual void setSize (long newwidth, long newheight)
virtual void setLabel (const YCPString &nlabel)
virtual void setValue (const YCPString &ntext)
virtual YCPString getValue () const
virtual void setValidChars (const YCPString &validchars)
virtual int getCurrentItem () const
virtual void setCurrentItem (int index)
virtual NCursesEvent wHandleInput (wint_t key)
virtual void setEnabling (bool do_bv)
virtual bool setKeyboardFocus ()
unsigned int getListSize ()
void deleteAllItems ()
void setInputMaxLength (const YCPInteger &numberOfChars)

Protected Member Functions

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

Protected Attributes

int InputMaxLength

Private Member Functions

NCComboBox & operator= (const NCComboBox &)
 NCComboBox (const NCComboBox &)
void setDefsze ()
void tUpdate ()

Private Attributes

bool mayedit
NClabel label
NCstring text
wstring buffer
bool modified
NCursesWindow * lwin
NCursesWindow * twin
string::size_type fldstart
string::size_type fldlength
string::size_type curpos
NCstring validChars
list< YCPString > deflist
int index

Friends

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

Constructor & Destructor Documentation

NCComboBox::NCComboBox (  const NCComboBox &   )  [private]
 

NCComboBox::NCComboBox (  NCWidget *  parent,
const YWidgetOpt &  opt,
const YCPString &  label
) 
 

NCComboBox::~NCComboBox (   )  [virtual]
 


Member Function Documentation

void NCComboBox::deleteAllItems (   )  [virtual]
 

Reimplemented from YSelectionWidget.

int NCComboBox::getCurrentItem (   )  const [virtual]
 

Implements YComboBox.

unsigned int NCComboBox::getListSize (   )  [inline]
 

YCPString NCComboBox::getValue (   )  const [virtual]
 

Implements YComboBox.

void NCComboBox::itemAdded (  const YCPString &  string,
int  index,
bool  selected
)  [virtual]
 

Implements YSelectionWidget.

int NCComboBox::listPopup (   )  [protected]
 

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

Reimplemented from NCWidget.

long NCComboBox::nicesize (  YUIDimension  dim  )  [virtual]
 

Implements YWidget.

NCComboBox& NCComboBox::operator= (  const NCComboBox &   )  [private]
 

void NCComboBox::setCurrentItem (  int  index  )  [virtual]
 

Implements YComboBox.

void NCComboBox::setDefsze (   )  [private]
 

virtual void NCComboBox::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 NCComboBox::setInputMaxLength (  const YCPInteger &  numberOfChars  )  [virtual]
 

Reimplemented from YComboBox.

virtual bool NCComboBox::setKeyboardFocus (   )  [inline, virtual]
 

Reimplemented from YWidget.

void NCComboBox::setLabel (  const YCPString &  nlabel  )  [virtual]
 

Reimplemented from YSelectionWidget.

void NCComboBox::setSize (  long  newwidth,
long  newheight
)  [virtual]
 

Reimplemented from YWidget.

void NCComboBox::setValidChars (  const YCPString &  validchars  )  [virtual]
 

Reimplemented from YComboBox.

void NCComboBox::setValue (  const YCPString &  ntext  )  [virtual]
 

Implements YComboBox.

void NCComboBox::tUpdate (   )  [private]
 

bool NCComboBox::validKey (  wint_t  key  )  const [protected]
 

void NCComboBox::wCreate (  const wrect &  newrect  )  [protected, virtual]
 

Reimplemented from NCWidget.

void NCComboBox::wDelete (   )  [protected, virtual]
 

Reimplemented from NCWidget.

NCursesEvent NCComboBox::wHandleInput (  wint_t  key  )  [virtual]
 

Reimplemented from NCWidget.

void NCComboBox::wRecoded (   )  [protected, virtual]
 

Reimplemented from NCWidget.

void NCComboBox::wRedraw (   )  [protected, virtual]
 

Reimplemented from NCWidget.


Friends And Related Function Documentation

std::ostream& operator<< (  std::ostream &  STREAM,
const NCComboBox &  OBJ
)  [friend]
 


Member Data Documentation

wstring NCComboBox::buffer [private]
 

string::size_type NCComboBox::curpos [private]
 

list<YCPString> NCComboBox::deflist [private]
 

string::size_type NCComboBox::fldlength [private]
 

string::size_type NCComboBox::fldstart [private]
 

int NCComboBox::index [private]
 

int NCComboBox::InputMaxLength [protected]
 

NClabel NCComboBox::label [private]
 

Reimplemented from YSelectionWidget.

NCursesWindow* NCComboBox::lwin [private]
 

bool NCComboBox::mayedit [private]
 

bool NCComboBox::modified [private]
 

NCstring NCComboBox::text [private]
 

NCursesWindow* NCComboBox::twin [private]
 

NCstring NCComboBox::validChars [private]
 

Reimplemented from YComboBox.


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:52:55 2005 for yast2-ncurses by  doxygen 1.4.4