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

NCDialog Class Reference

#include <NCDialog.h>

Inheritance diagram for NCDialog:

YDialog NCWidget YContainerWidget tnode< NCWidget * > NCursesError YWidget NCPopup NCAskForExistingDirectory NCAskForFile NCPopupDeps NCPopupDiskspace NCPopupFile NCPopupInfo NCPopupPkgDescr NCPopupPkgTable NCPopupSearch NCPopupSelection NCPopupTable NCPopupTextEntry NCPopupTree List of all members.

Public Member Functions

 NCDialog (const YWidgetOpt &opt)
virtual ~NCDialog ()
void showDialog ()
void closeDialog ()
void activate (const bool newactive)
bool isActive () const
void idleInput ()
NCursesEvent userInput (int timeout_millisec=-1)
NCursesEvent pollInput ()
virtual long nicesize (YUIDimension dim)
virtual void setSize (long newwidth, long newheight)

Protected Types

typedef unsigned NCDoptflag
enum  NCDopts { DEFAULT = 0x00, POPUP = 0x01, NOBOX = 0x10 }

Protected Member Functions

virtual const char * location () const
wint_t getch (int timeout_millisec=-1)
virtual NCursesEvent wHandleInput (wint_t ch)
virtual NCursesEvent wHandleHotkey (wint_t key)
virtual void startMultipleChanges ()
virtual void doneMultipleChanges ()
 NCDialog (const YWidgetOpt &opt, const wpos at, const bool boxed=true)
bool isPopup () const
bool isBoxed () const
virtual void initDialog ()
virtual const NCstyle::StylewStyle () const
virtual void setEnabling (bool do_bv)

Protected Attributes

NCDoptflag ncdopts
wpos popedpos
bool hshaddow
bool vshaddow

Private Types

typedef tnode< NCWidget
* > *(tnode< NCWidget * >::* 
SeekDir )(const bool)

Private Member Functions

NCDialogoperator= (const NCDialog &)
 NCDialog (const NCDialog &)
NCWidgetGetNormal (NCWidget &startwith, SeekDir Direction)
void Activate (SeekDir Direction)
void _init (const YWidgetOpt &opt)
void _init_size ()
NCursesEvent getInputEvent (wint_t ch)
NCursesEvent getHotkeyEvent (wint_t key)
void grabActive (NCWidget *nactive)
virtual void grabNotify (NCWidget *mgrab)
virtual bool wantFocus (NCWidget &ngrab)
virtual void wCreate (const wrect &newrect)
virtual void wMoveTo (const wpos &newpos)
virtual void wDelete ()
virtual void wRedraw ()
virtual void wRecoded ()
virtual void wUpdate (bool forced_br=false)
void doUpdate ()
NCWidgetGetNextNormal (NCWidget &startwith)
NCWidgetGetPrevNormal (NCWidget &startwith)
bool Activate (NCWidget &nactive)
void Activate ()
void Deactivate ()
void ActivateNext ()
void ActivatePrev ()
bool ActivateByKey (int key)
void processInput (int timeout_millisec)
bool describeFunctionKeys (string &helpText)
wint_t getinput ()
bool getInvisible ()
bool getVisible ()
void resizeEvent ()

Private Attributes

NCursesUserPanel< NCDialog > * pan
NCstyle::StyleSet mystyleset
const NCstyle::Styledlgstyle
unsigned inMultiDraw_i
bool active
NCWidget *const wActive
NCursesEvent pendingEvent
NCPopupInfohelpPopup

Friends

class NCurses
std::ostream & operator<< (std::ostream &STREAM, const NCDialog &OBJ)
std::ostream & operator<< (std::ostream &STREAM, const NCDialog *OBJ)

Member Typedef Documentation

typedef unsigned NCDialog::NCDoptflag [protected]
 

typedef tnode<NCWidget *>*(tnode<NCWidget *>::* NCDialog::SeekDir)(const bool) [private]
 


Member Enumeration Documentation

enum NCDialog::NCDopts [protected]
 

Enumerator:
DEFAULT 
POPUP 
NOBOX 


Constructor & Destructor Documentation

NCDialog::NCDialog const NCDialog  )  [private]
 

NCDialog::NCDialog const YWidgetOpt opt  ) 
 

NCDialog::~NCDialog  )  [virtual]
 

NCDialog::NCDialog const YWidgetOpt opt,
const wpos  at,
const bool  boxed = true
[protected]
 


Member Function Documentation

void NCDialog::_init const YWidgetOpt opt  )  [private]
 

void NCDialog::_init_size  )  [private]
 

void NCDialog::activate const bool  newactive  ) 
 

void NCDialog::Activate  )  [private]
 

bool NCDialog::Activate NCWidget nactive  )  [private]
 

void NCDialog::Activate SeekDir  Direction  )  [private]
 

bool NCDialog::ActivateByKey int  key  )  [private]
 

void NCDialog::ActivateNext  )  [private]
 

void NCDialog::ActivatePrev  )  [private]
 

void NCDialog::closeDialog  ) 
 

void NCDialog::Deactivate  )  [private]
 

bool NCDialog::describeFunctionKeys string &  helpText  )  [private]
 

void NCDialog::doneMultipleChanges  )  [protected, virtual]
 

Reimplemented from YWidget.

void NCDialog::doUpdate  )  [inline, private]
 

wint_t NCDialog::getch int  timeout_millisec = -1  )  [protected]
 

NCursesEvent NCDialog::getHotkeyEvent wint_t  key  )  [private]
 

wint_t NCDialog::getinput  )  [private]
 

NCursesEvent NCDialog::getInputEvent wint_t  ch  )  [private]
 

bool NCDialog::getInvisible  )  [private]
 

NCWidget & NCDialog::GetNextNormal NCWidget startwith  )  [private]
 

NCWidget & NCDialog::GetNormal NCWidget startwith,
SeekDir  Direction
[private]
 

NCWidget & NCDialog::GetPrevNormal NCWidget startwith  )  [private]
 

bool NCDialog::getVisible  )  [private]
 

void NCDialog::grabActive NCWidget nactive  )  [private]
 

void NCDialog::grabNotify NCWidget mgrab  )  [private, virtual]
 

Reimplemented from NCWidget.

void NCDialog::idleInput  ) 
 

void NCDialog::initDialog  )  [protected, virtual]
 

bool NCDialog::isActive  )  const [inline]
 

bool NCDialog::isBoxed  )  const [inline, protected]
 

bool NCDialog::isPopup  )  const [inline, protected]
 

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

Reimplemented from NCWidget.

long NCDialog::nicesize YUIDimension  dim  )  [virtual]
 

Reimplemented from YContainerWidget.

Reimplemented in NCAskForExistingDirectory, NCAskForFile, NCPopupDeps, NCPopupDiskspace, NCPopupFile, NCPopupInfo, NCPopupPkgDescr, NCPopupPkgTable, NCPopupSearch, NCPopupSelection, and NCPopupTree.

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

NCursesEvent NCDialog::pollInput  ) 
 

void NCDialog::processInput int  timeout_millisec  )  [private]
 

void NCDialog::resizeEvent  )  [private]
 

virtual void NCDialog::setEnabling bool  do_bv  )  [inline, protected, 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 NCDialog::setSize long  newwidth,
long  newheight
[virtual]
 

Reimplemented from YContainerWidget.

void NCDialog::showDialog  ) 
 

void NCDialog::startMultipleChanges  )  [protected, virtual]
 

Reimplemented from YWidget.

NCursesEvent NCDialog::userInput int  timeout_millisec = -1  ) 
 

bool NCDialog::wantFocus NCWidget ngrab  )  [private, virtual]
 

Reimplemented from NCWidget.

void NCDialog::wCreate const wrect newrect  )  [private, virtual]
 

Reimplemented from NCWidget.

void NCDialog::wDelete  )  [private, virtual]
 

Reimplemented from NCWidget.

NCursesEvent NCDialog::wHandleHotkey wint_t  key  )  [protected, virtual]
 

Reimplemented from NCWidget.

Reimplemented in NCPopupTable, and NCPopupTree.

NCursesEvent NCDialog::wHandleInput wint_t  ch  )  [protected, virtual]
 

Reimplemented from NCWidget.

Reimplemented in NCAskForExistingDirectory, NCAskForFile, NCPopup, NCPopupDeps, NCPopupDiskspace, NCPopupFile, NCPopupInfo, NCPopupMenu, NCPopupPkgDescr, NCPopupPkgTable, NCPopupSearch, NCPopupSelection, and NCPopupTree.

void NCDialog::wMoveTo const wpos newpos  )  [private, virtual]
 

Reimplemented from NCWidget.

void NCDialog::wRecoded  )  [private, virtual]
 

Reimplemented from NCWidget.

void NCDialog::wRedraw  )  [private, virtual]
 

Reimplemented from NCWidget.

virtual const NCstyle::Style& NCDialog::wStyle  )  const [inline, protected, virtual]
 

Reimplemented from NCWidget.

void NCDialog::wUpdate bool  forced_br = false  )  [private, virtual]
 

Reimplemented from NCWidget.


Friends And Related Function Documentation

friend class NCurses [friend]
 

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

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


Member Data Documentation

bool NCDialog::active [private]
 

const NCstyle::Style* NCDialog::dlgstyle [private]
 

NCPopupInfo* NCDialog::helpPopup [private]
 

bool NCDialog::hshaddow [protected]
 

unsigned NCDialog::inMultiDraw_i [private]
 

NCstyle::StyleSet NCDialog::mystyleset [private]
 

NCDoptflag NCDialog::ncdopts [protected]
 

NCursesUserPanel<NCDialog>* NCDialog::pan [private]
 

NCursesEvent NCDialog::pendingEvent [private]
 

wpos NCDialog::popedpos [protected]
 

bool NCDialog::vshaddow [protected]
 

NCWidget* const NCDialog::wActive [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