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

NCMultiSelectionBox Class Reference

#include <NCMultiSelectionBox.h>

Inheritance diagram for NCMultiSelectionBox:

YMultiSelectionBox NCPadWidget YSelectionWidget NCWidget NCSchrollCB YWidget tnode< NCWidget * > NCursesError List of all members.

Public Member Functions

 NCMultiSelectionBox (NCWidget *parent, const YWidgetOpt &opt, const YCPString &label)
virtual ~NCMultiSelectionBox ()
virtual long nicesize (YUIDimension dim)
virtual void setSize (long newwidth, long newheight)
virtual void setLabel (const YCPString &nlabel)
virtual int getCurrentItem ()
virtual void setCurrentItem (int index)
virtual NCursesEvent wHandleInput (wint_t key)
virtual void setEnabling (bool do_bv)
virtual bool setKeyboardFocus ()
unsigned int getNumLines ()
const NCTableLine * getLine (const int &index)
void clearItems ()

Protected Member Functions

NCTableTag * tagCell (int index)
const NCTableTag * tagCell (int index) const
bool isItemSelected (int index) const
bool setItemSelected (int index, bool val, bool update=true)
void setAllItemsSelected (bool val)
void toggleCurrentItem ()
virtual void startMultipleChanges ()
virtual void doneMultipleChanges ()
virtual const char * location () const
virtual NCPad * CreatePad ()
virtual void wRecoded ()
virtual void itemAdded (const YCPString &string, int index, bool selected)
virtual void deleteAllItems ()
virtual bool itemIsSelected (int index)
virtual void selectItem (int index)
virtual void deselectItem (int index)
virtual void selectAllItems ()
virtual void deselectAllItems ()

Protected Attributes

NCTablePad *& pad

Private Member Functions

NCMultiSelectionBox & operator= (const NCMultiSelectionBox &)
 NCMultiSelectionBox (const NCMultiSelectionBox &)

Friends

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

Constructor & Destructor Documentation

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

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

NCMultiSelectionBox::~NCMultiSelectionBox (   )  [virtual]
 


Member Function Documentation

void NCMultiSelectionBox::clearItems (   )  [inline]
 

NCPad * NCMultiSelectionBox::CreatePad (   )  [protected, virtual]
 

Reimplemented from NCPadWidget.

void NCMultiSelectionBox::deleteAllItems (   )  [protected, virtual]
 

Reimplemented from YSelectionWidget.

virtual void NCMultiSelectionBox::deselectAllItems (   )  [inline, protected, virtual]
 

Implements YMultiSelectionBox.

virtual void NCMultiSelectionBox::deselectItem (  int  index  )  [inline, protected, virtual]
 

virtual void NCMultiSelectionBox::doneMultipleChanges (   )  [inline, protected, virtual]
 

Reimplemented from YWidget.

int NCMultiSelectionBox::getCurrentItem (   )  [virtual]
 

Implements YMultiSelectionBox.

const NCTableLine* NCMultiSelectionBox::getLine (  const int &  index  )  [inline]
 

unsigned int NCMultiSelectionBox::getNumLines (   )  [inline]
 

bool NCMultiSelectionBox::isItemSelected (  int  index  )  const [protected]
 

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

Implements YSelectionWidget.

virtual bool NCMultiSelectionBox::itemIsSelected (  int  index  )  [inline, protected, virtual]
 

Implements YMultiSelectionBox.

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

Reimplemented from NCPadWidget.

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

Implements YWidget.

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

virtual void NCMultiSelectionBox::selectAllItems (   )  [inline, protected, virtual]
 

virtual void NCMultiSelectionBox::selectItem (  int  index  )  [inline, protected, virtual]
 

Implements YMultiSelectionBox.

void NCMultiSelectionBox::setAllItemsSelected (  bool  val  )  [protected]
 

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

Implements YMultiSelectionBox.

virtual void NCMultiSelectionBox::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.

Reimplemented from NCPadWidget.

bool NCMultiSelectionBox::setItemSelected (  int  index,
bool  val,
bool  update = true
)  [protected]
 

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

Reimplemented from YWidget.

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

Reimplemented from YSelectionWidget.

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

Reimplemented from YWidget.

virtual void NCMultiSelectionBox::startMultipleChanges (   )  [inline, protected, virtual]
 

Reimplemented from YWidget.

const NCTableTag * NCMultiSelectionBox::tagCell (  int  index  )  const [protected]
 

NCTableTag * NCMultiSelectionBox::tagCell (  int  index  )  [protected]
 

void NCMultiSelectionBox::toggleCurrentItem (   )  [protected]
 

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

Reimplemented from NCWidget.

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

Reimplemented from NCPadWidget.


Friends And Related Function Documentation

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


Member Data Documentation

NCTablePad*& NCMultiSelectionBox::pad [protected]
 

Reimplemented from NCPadWidget.


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