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

YAPETUI::DialogBox Class Reference

#include <dialogbox.h>

Inheritance diagram for YAPETUI::DialogBox:

YAPETUI::MessageBox YAPETUI::BaseWindow

List of all members.


Detailed Description

Class for displaying a dialog box.

A dialog box presents the user a message and the buttons OK and Cancel.

It is displayed by calling run(). To find out which button was pressed, call getAnswer().

Definition at line 74 of file dialogbox.h.


Public Member Functions

 DialogBox (std::string t, std::string m) throw (UIException)
ANSWER getAnswer () const
 Returns the answer of the user.
virtual void refresh () throw (UIException)
virtual void resize () throw (UIException)
virtual int run () throw (UIException)
 Display and runs the dialog.

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 Attributes

ANSWER answer
Buttoncancelbutton

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

Generated by  Doxygen 1.6.0   Back to index