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

NCursesPanel Class Reference

#include <ncursesp.h>

Inheritance diagram for NCursesPanel:

NCursesWindow NCursesUserPanel< T > List of all members.

Public Member Functions

 NCursesPanel (int lines, int cols, int begin_y=0, int begin_x=0)
 NCursesPanel ()
virtual ~NCursesPanel ()
virtual int resize (int lines, int columns)
void hide ()
void show ()
void top ()
void bottom ()
int mvwin (int y, int x)
bool hidden () const
NCursesPanelabove () const
NCursesPanelbelow () const
PANEL * PANEL_above () const
PANEL * PANEL_below () const
int transparent (int y, int x)
int refresh ()
int noutrefresh ()
virtual void frame (const char *title=NULL, const char *btitle=NULL)
virtual void boldframe (const char *title=NULL, const char *btitle=NULL)
virtual void label (const char *topLabel, const char *bottomLabel)
virtual void centertext (int row, const char *label)

Static Public Member Functions

void redraw ()

Protected Member Functions

void set_user (void *user)
void * get_user () const
void OnError (int err) const THROWS((NCursesPanelException))

Static Protected Member Functions

const NCursesPanelget_Panel_of (const PANEL &pan)

Protected Attributes

PANEL * p

Static Protected Attributes

NCursesPaneldummy = (NCursesPanel*)0

Private Member Functions

void init ()

Friends

std::ostream & operator<< (std::ostream &Stream, const NCursesPanel &Obj_Cv)
std::ostream & operator<< (std::ostream &Stream, const NCursesPanel *Obj_Cv)

Constructor & Destructor Documentation

NCursesPanel::NCursesPanel int  lines,
int  cols,
int  begin_y = 0,
int  begin_x = 0
[inline]
 

Create a panel with this size starting at the requested position.

NCursesPanel::NCursesPanel  )  [inline]
 

This constructor creates the default Panel associated with the ::stdscr window

NCursesPanel::~NCursesPanel  )  [virtual]
 


Member Function Documentation

NCursesPanel& NCursesPanel::above  )  const [inline]
 

The functions panel_above() and panel_below() are not reflected in the NCursesPanel class. The reason for this is, that we cannot assume that a panel retrieved by those operations is one wrapped by a C++ class. Although this situation might be handled, we also need a reverse mapping from PANEL to NCursesPanel which needs some redesign of the low level stuff. At the moment, we define them in the interface but they will always produce an error.

NCursesPanel& NCursesPanel::below  )  const [inline]
 

void NCursesPanel::boldframe const char *  title = NULL,
const char *  btitle = NULL
[virtual]
 

Same as frame(), but use highlighted attributes.

void NCursesPanel::bottom  )  [inline]
 

Make this panel the bottom panel in the stack. N.B.: The panel associated with ::stdscr is always on the bottom. So actually bottom() makes the panel the first above ::stdscr.

void NCursesPanel::centertext int  row,
const char *  label
[virtual]
 

Put the label text centered in the specified row.

void NCursesPanel::frame const char *  title = NULL,
const char *  btitle = NULL
[virtual]
 

Put a frame around the panel and put the title centered in the top line and btitle in the bottom line.

const NCursesPanel* NCursesPanel::get_Panel_of const PANEL &  pan  )  [inline, static, protected]
 

void* NCursesPanel::get_user  )  const [inline, protected]
 

bool NCursesPanel::hidden  )  const [inline]
 

Return TRUE if the panel is hidden, FALSE otherwise.

void NCursesPanel::hide  )  [inline]
 

Hide the panel. It stays in the stack but becomes invisible.

void NCursesPanel::init  )  [private]
 

Initialize the panel object

Reimplemented from NCursesWindow.

void NCursesPanel::label const char *  topLabel,
const char *  bottomLabel
[virtual]
 

Put the title centered in the top line and btitle in the bottom line.

int NCursesPanel::mvwin int  y,
int  x
[inline, virtual]
 

Move window to new position with the new position as top left corner. This is virtual because it is redefined in NCursesPanel.

Reimplemented from NCursesWindow.

int NCursesPanel::noutrefresh  )  [virtual]
 

Propagate all panel changes to the virtual screen.

Reimplemented from NCursesWindow.

void NCursesPanel::OnError int  err  )  const [inline, protected]
 

If err is equal to the curses error indicator ERR, an error handler is called.

PANEL* NCursesPanel::PANEL_above  )  const [inline]
 

PANEL* NCursesPanel::PANEL_below  )  const [inline]
 

void NCursesPanel::redraw  )  [static]
 

Redraw all panels.

int NCursesPanel::refresh  )  [virtual]
 

Propagate all panel changes to the virtual screen and update the physical screen.

Reimplemented from NCursesWindow.

virtual int NCursesPanel::resize int  lines,
int  columns
[inline, virtual]
 

Resize the panel window.

Reimplemented from NCursesWindow.

void NCursesPanel::set_user void *  user  )  [inline, protected]
 

Set the user pointer of the panel.

void NCursesPanel::show  )  [inline]
 

Show the panel, i.e. make it visible.

void NCursesPanel::top  )  [inline]
 

Make this panel the top panel in the stack.

int NCursesPanel::transparent int  y,
int  x
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  Stream,
const NCursesPanel Obj_Cv
[friend]
 

std::ostream& operator<< std::ostream &  Stream,
const NCursesPanel Obj_Cv
[friend]
 


Member Data Documentation

NCursesPanel * NCursesPanel::dummy = (NCursesPanel*)0 [static, protected]
 

PANEL* NCursesPanel::p [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Sep 5 17:18:57 2007 for yast2-ncurses by doxygen 1.3.6