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

NCCheckBox Class Reference

#include <NCCheckBox.h>

Inheritance diagram for NCCheckBox:

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

Public Member Functions

 NCCheckBox (NCWidget *parent, const YWidgetOpt &opt, const YCPString &label, bool checked)
virtual ~NCCheckBox ()
virtual long nicesize (YUIDimension dim)
virtual void setSize (long newwidth, long newheight)
virtual void setLabel (const YCPString &nlabel)
virtual void setValue (const YCPValue &newval)
virtual YCPValue getValue ()
virtual NCursesEvent wHandleInput (wint_t key)
virtual void setEnabling (bool do_bv)
virtual bool setKeyboardFocus ()

Protected Types

enum  State { S_DC = 0, S_OFF = 1, S_ON = 2 }

Protected Member Functions

virtual const char * location () const
virtual void wRedraw ()

Private Member Functions

NCCheckBox & operator= (const NCCheckBox &)
 NCCheckBox (const NCCheckBox &)

Private Attributes

bool tristate
State checkstate
NClabel label

Static Private Attributes

static unsigned char statetag [3] = { '?', ' ', 'x' }

Friends

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

Member Enumeration Documentation

enum NCCheckBox::State [protected]
 

Enumerator:
S_DC 
S_OFF 
S_ON 


Constructor & Destructor Documentation

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

NCCheckBox::NCCheckBox (  NCWidget *  parent,
const YWidgetOpt &  opt,
const YCPString &  label,
bool  checked
) 
 

NCCheckBox::~NCCheckBox (   )  [virtual]
 


Member Function Documentation

YCPValue NCCheckBox::getValue (   )  [virtual]
 

Implements YCheckBox.

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

Reimplemented from NCWidget.

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

Implements YWidget.

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

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

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

Reimplemented from YWidget.

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

Reimplemented from YCheckBox.

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

Reimplemented from YWidget.

void NCCheckBox::setValue (  const YCPValue &  newval  )  [virtual]
 

Implements YCheckBox.

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

Reimplemented from NCWidget.

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

Reimplemented from NCWidget.


Friends And Related Function Documentation

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


Member Data Documentation

State NCCheckBox::checkstate [private]
 

NClabel NCCheckBox::label [private]
 

Reimplemented from YCheckBox.

unsigned char NCCheckBox::statetag = { '?', ' ', 'x' } [static, private]
 

bool NCCheckBox::tristate [private]
 


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