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

NCProgressBar Class Reference

#include <NCProgressBar.h>

Inheritance diagram for NCProgressBar:

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

Public Member Functions

 NCProgressBar (NCWidget *parent, const YWidgetOpt &opt, const YCPString &label, const YCPInteger &maxprogress, const YCPInteger &progress)
virtual ~NCProgressBar ()
virtual long nicesize (YUIDimension dim)
virtual void setSize (long newwidth, long newheight)
virtual void setLabel (const YCPString &nlabel)
virtual void setProgress (const YCPInteger &nval)
virtual void setEnabling (bool do_bv)

Protected Member Functions

virtual const char * location () const
virtual void wCreate (const wrect &newrect)
virtual void wDelete ()
virtual void wRedraw ()

Private Types

typedef long long Value_t

Private Member Functions

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

Private Attributes

NClabel label
Value_t maxval
Value_t cval
NCursesWindow * lwin
NCursesWindow * twin

Friends

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

Member Typedef Documentation

typedef long long NCProgressBar::Value_t [private]
 


Constructor & Destructor Documentation

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

NCProgressBar::NCProgressBar (  NCWidget *  parent,
const YWidgetOpt &  opt,
const YCPString &  label,
const YCPInteger &  maxprogress,
const YCPInteger &  progress
) 
 

NCProgressBar::~NCProgressBar (   )  [virtual]
 


Member Function Documentation

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

Reimplemented from NCWidget.

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

Implements YWidget.

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

void NCProgressBar::setDefsze (   )  [private]
 

virtual void NCProgressBar::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 NCProgressBar::setLabel (  const YCPString &  nlabel  )  [virtual]
 

Reimplemented from YProgressBar.

void NCProgressBar::setProgress (  const YCPInteger &  nval  )  [virtual]
 

Reimplemented from YProgressBar.

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

Reimplemented from YWidget.

void NCProgressBar::tUpdate (   )  [private]
 

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

Reimplemented from NCWidget.

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

Reimplemented from NCWidget.

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

Reimplemented from NCWidget.


Friends And Related Function Documentation

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


Member Data Documentation

Value_t NCProgressBar::cval [private]
 

NClabel NCProgressBar::label [private]
 

Reimplemented from YProgressBar.

NCursesWindow* NCProgressBar::lwin [private]
 

Value_t NCProgressBar::maxval [private]
 

NCursesWindow* NCProgressBar::twin [private]
 


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