CADialog Class Reference

Base class for dialogs. More...

#include <cadialog.h>

Inheritance diagram for CADialog:

CAScreen CACredits CAInfoDialog CAPlayerSettingsDialog CAPositionTableView CASlotSelectionDialog List of all members.

Public Member Functions

 CADialog (bool modal=false, CAScreen *screen=0)
 Constructor.
 ~CADialog ()
 Destructor.
virtual int run ()
 Runs the dialog.
virtual void buildScreen ()
 Builds the dialog screen.
virtual void on_button_release (CL_InputDevice *device, const CL_Key &key)=0
virtual void resize (int w, int h)
 Resizes the dialog.

Public Attributes

CL_Slot slot

Protected Attributes

int left
 Left position of the dialog.
int right
 Right position of the dialog.
int top
 Top position of the dialog.
int bottom
 Bottom position of the dialog.
int width
 Width of the dialog.
int height
 Height of the dialog.
bool modal
 Dialog modal? Modal means it's shown transparently over the current screen.
CAScreenscreen
 Pointer to screen (if dialog is modal) or NULL if it's not modal.

Detailed Description

Base class for dialogs.

Author:
Andrew Mustun


Constructor & Destructor Documentation

CADialog::CADialog ( bool  modal = false,
CAScreen screen = 0 
)

Constructor.

Parameters:
modal true: Dialog shown in addition to the current screen. false: Dialog sown in new screen with new background (default).
screen pointer to screen shown in the background if this dialog is modal. zero if this dialog is not modal (default).


Member Data Documentation

bool CADialog::modal [protected]

Dialog modal? Modal means it's shown transparently over the current screen.

A pointer to the current screen must be given in constructor if the dialog is modal.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:28 2006 by  doxygen 1.5.0