Logo Search packages:      
Sourcecode: yapet version File versions  Download package

YAPETUI::MessageBox Class Reference

#include <messagebox.h>

Inheritance diagram for YAPETUI::MessageBox:

YAPETUI::BaseWindow YAPETUI::DialogBox

List of all members.


Detailed Description

Displays a message in a window on the screen.

Displays a message in a separate window on the screen. A button will be available to quit the message.

Line breaks in the message string are not handled at all. So try to avoid them.

Definition at line 59 of file messagebox.h.


Public Member Functions

 MessageBox (std::string t, std::string m) throw (UIException)
virtual void refresh () throw (UIException)
virtual void resize () throw (UIException)
virtual int run () throw (UIException)

Protected Types

enum  MinDimension { MIN_Y = 24, MIN_X = 80 }
 The minimum dimensions supported. More...

Protected Member Functions

int getBaseHeight () const
int getOkButtonLength () const
int getStartX () const
int getStartY () const
int getWidth () const
int maxX () const
 The maximum x value of the screen.
int maxY () const
 The maximum y value of the screen.
int minX () const
 The minimum x value of the screen.
int minY () const
 The minimum y value of the screen.

Static Protected Member Functions

static void deleteAll ()
 Delete all registered windows.
static void endCurses ()
 Ends the curses mode.
static void initCurses ()
 Initializes (n)curses.
static void refreshAll ()
 Calls the refresh() method of all registered windows.
static void registerBaseWindow (BaseWindow *r)
 Register a base window.
static void resizeAll ()
 Calls the resize() method of all registered windows.
static void unregisterBaseWindow (BaseWindow *r)
 un-registers a base window.

Private Types

enum  { BASE_HEIGHT = 6, BASE_WIDTH = 4 }

Private Member Functions

void createWindow () throw (UIException)

Private Attributes

std::string message
Buttonokbutton
std::string title
WINDOW * window

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

Generated by  Doxygen 1.6.0   Back to index