MsgBoxDialog Class Reference

#include <MsgBoxDialog.h>

Inheritance diagram for MsgBoxDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

void show (const LangString &message)
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual void mouseUp (int button, float x, float y, bool &skipRest)
virtual void keyDown (char *buffer, unsigned int keyState, KeyboardHistory::HistoryElement *history, int hisCount, bool &skipRest)
virtual void mouseWheel (float x, float y, float z, bool &skipRest)
virtual void buttonDown (unsigned int id)

Static Public Member Functions

static MsgBoxDialoginstance ()

Protected Attributes

GLWTextButtonokButton_
GLWIconicon_
GLWLabelmessage_

Static Protected Attributes

static MsgBoxDialoginstance_ = 0

Private Member Functions

 MsgBoxDialog ()
virtual ~MsgBoxDialog ()


Detailed Description

Definition at line 28 of file MsgBoxDialog.h.


Constructor & Destructor Documentation

MsgBoxDialog::MsgBoxDialog (  )  [private]

Definition at line 36 of file MsgBoxDialog.cpp.

References GLWPanel::addWidget(), GLWPanel::AlignCenterLeftRight, GLWPanel::AlignRight, GLWPanel::AlignTop, GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, GLWLabel::eMultiLine, S3D::getDataFile(), GLWPanel::GLWPanel(), icon_, TextureStore::instance(), LANG_RESOURCE, LANG_STRING, GLWPanel::layout(), GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, TextureStore::loadTexture(), message_, okButton_, GLWPanel::setLayout(), GLWidget::setToolTip(), GLWPanel::SpaceAll, GLWPanel::SpaceLeft, GLWPanel::SpaceRight, GLWPanel::SpaceTop, ToolTip::ToolTipHelp, and GLWWindow::windowLevel_.

MsgBoxDialog::~MsgBoxDialog (  )  [private, virtual]

Definition at line 67 of file MsgBoxDialog.cpp.


Member Function Documentation

MsgBoxDialog * MsgBoxDialog::instance (  )  [static]

Definition at line 27 of file MsgBoxDialog.cpp.

References instance_.

Referenced by ClientWindowSetup::addCommonComponents(), ConnectDialog::connected(), SettingsSelectDialog::display(), NetworkSelectDialog::rowSelectedGames(), ClientConnectionAuthHandler::sendAuth(), ClientWindowSetup::setupGameWindows(), ClientWindowSetup::setupStartWindows(), and ConnectDialog::simulate().

void MsgBoxDialog::show ( const LangString message  ) 

Definition at line 72 of file MsgBoxDialog.cpp.

References GLWLabel::calcWidth(), GLWidget::id_, GLWWindowManager::instance(), GLWPanel::layout(), message_, GLWLabel::setText(), and GLWWindowManager::showWindow().

Referenced by ConnectDialog::connected(), SettingsSelectDialog::display(), NetworkSelectDialog::rowSelectedGames(), ClientConnectionAuthHandler::sendAuth(), and ConnectDialog::simulate().

void MsgBoxDialog::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWWindow.

Definition at line 89 of file MsgBoxDialog.cpp.

References GLWWindow::mouseDown().

void MsgBoxDialog::mouseUp ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWWindow.

Definition at line 95 of file MsgBoxDialog.cpp.

References GLWWindow::mouseUp().

void MsgBoxDialog::keyDown ( char *  buffer,
unsigned int  keyState,
KeyboardHistory::HistoryElement history,
int  hisCount,
bool &  skipRest 
) [virtual]

Reimplemented from GLWWindow.

Definition at line 101 of file MsgBoxDialog.cpp.

References GLWWindow::keyDown().

void MsgBoxDialog::mouseWheel ( float  x,
float  y,
float  z,
bool &  skipRest 
) [virtual]

Reimplemented from GLWWindow.

Definition at line 109 of file MsgBoxDialog.cpp.

References GLWWindow::mouseWheel().

void MsgBoxDialog::buttonDown ( unsigned int  id  )  [virtual]

Implements GLWButtonI.

Definition at line 81 of file MsgBoxDialog.cpp.

References GLWidget::getId(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), and okButton_.


Member Data Documentation

MsgBoxDialog * MsgBoxDialog::instance_ = 0 [static, protected]

Definition at line 46 of file MsgBoxDialog.h.

Referenced by instance().

GLWTextButton* MsgBoxDialog::okButton_ [protected]

Definition at line 48 of file MsgBoxDialog.h.

Referenced by buttonDown(), and MsgBoxDialog().

GLWIcon* MsgBoxDialog::icon_ [protected]

Definition at line 49 of file MsgBoxDialog.h.

Referenced by MsgBoxDialog().

GLWLabel* MsgBoxDialog::message_ [protected]

Definition at line 50 of file MsgBoxDialog.h.

Referenced by MsgBoxDialog(), and show().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:04 2009 for Scorched3D by  doxygen 1.5.3