Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

StatusBar Class Reference

A status bar at the bottom of the screen. More...

#include <statusbar.h>

Inheritance diagram for StatusBar:
Inheritance graph
[legend]
Collaboration diagram for StatusBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

std::string getMsg () const
void putMsg (std::string msg) throw (YAPET::UI::UIException)
void refresh ()
void resize ()
 StatusBar () throw (YAPET::UI::UIException)
virtual ~StatusBar ()

Protected Member Functions

void createWindow () throw (YAPET::UI::UIException)

Private Member Functions

const StatusBaroperator= (const StatusBar &)
 StatusBar (const StatusBar &)

Private Attributes

std::string message
WINDOW * statusbar

Detailed Description

Shows a status bar at the bottom of the screen on character high. Messages can be showed to the user by calling putMsg(). The message stays visible until a new message is put.

Definition at line 55 of file statusbar.h.


Constructor & Destructor Documentation

StatusBar::StatusBar ( const StatusBar  )  [inline, private]

Definition at line 60 of file statusbar.h.

StatusBar::StatusBar (  )  throw (YAPET::UI::UIException)

Definition at line 47 of file statusbar.cc.

References createWindow().

Here is the call graph for this function:

StatusBar::~StatusBar (  )  [virtual]

Definition at line 52 of file statusbar.cc.

References statusbar.


Member Function Documentation

void StatusBar::createWindow (  )  throw (YAPET::UI::UIException) [protected]

Definition at line 25 of file statusbar.cc.

References YAPET::UI::BaseWindow::maxX(), YAPET::UI::BaseWindow::maxY(), YAPET::UI::BaseWindow::minX(), refresh(), and statusbar.

Referenced by resize(), and StatusBar().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string StatusBar::getMsg (  )  const [inline]

Definition at line 73 of file statusbar.h.

References message.

const StatusBar& StatusBar::operator= ( const StatusBar  )  [inline, private]

Definition at line 61 of file statusbar.h.

void StatusBar::putMsg ( std::string  msg  )  throw (YAPET::UI::UIException)
void StatusBar::refresh (  )  [virtual]

Implements YAPET::UI::BaseWindow.

Definition at line 77 of file statusbar.cc.

References message, and putMsg().

Referenced by createWindow(), and MainWindow::refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

void StatusBar::resize (  )  [virtual]

Implements YAPET::UI::BaseWindow.

Definition at line 83 of file statusbar.cc.

References createWindow(), and statusbar.

Here is the call graph for this function:


Member Data Documentation

std::string StatusBar::message [private]

Definition at line 58 of file statusbar.h.

Referenced by getMsg(), and refresh().

WINDOW* StatusBar::statusbar [private]

Definition at line 57 of file statusbar.h.

Referenced by createWindow(), resize(), and ~StatusBar().


The documentation for this class was generated from the following files: