A status bar at the bottom of the screen. More...
#include <statusbar.h>


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 StatusBar & | operator= (const StatusBar &) |
| StatusBar (const StatusBar &) | |
Private Attributes | |
| std::string | message |
| WINDOW * | statusbar |
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.
| 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().

| StatusBar::~StatusBar | ( | ) | [virtual] |
Definition at line 52 of file statusbar.cc.
References statusbar.
| 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().


| std::string StatusBar::getMsg | ( | ) | const [inline] |
Definition at line 73 of file statusbar.h.
References message.
Definition at line 61 of file statusbar.h.
| void StatusBar::putMsg | ( | std::string | msg | ) | throw (YAPET::UI::UIException) |
Definition at line 58 of file statusbar.cc.
Referenced by MainWindow::addNewRecord(), MainWindow::bottomRightWinContent(), MainWindow::changePassword(), MainWindow::deleteSelectedRecord(), MainWindow::editSelectedRecord(), MainWindow::quit(), refresh(), MainWindow::run(), MainWindow::saveFile(), MainWindow::searchNext(), MainWindow::searchTerm(), and MainWindow::setSortOrder().

| 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().


| void StatusBar::resize | ( | ) | [virtual] |
Implements YAPET::UI::BaseWindow.
Definition at line 83 of file statusbar.cc.
References createWindow(), and statusbar.

std::string StatusBar::message [private] |
Definition at line 58 of file statusbar.h.
WINDOW* StatusBar::statusbar [private] |
Definition at line 57 of file statusbar.h.
Referenced by createWindow(), resize(), and ~StatusBar().
1.7.1