MessageDialog Class Reference

#include <MessageDialog.h>

Inheritance diagram for MessageDialog:

GLWWindow ClientChannelManagerI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

void clear ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void channelText (ChannelText &text)
virtual void registeredForChannels (std::list< ChannelDefinition > &registeredChannels, std::list< ChannelDefinition > &availableChannels)

Static Public Member Functions

static MessageDialoginstance ()

Protected Attributes

float showTime_
LangString currentText_
std::list< LangStringtexts_

Static Protected Attributes

static MessageDialoginstance_ = 0

Private Member Functions

 MessageDialog ()
virtual ~MessageDialog ()


Detailed Description

Definition at line 29 of file MessageDialog.h.


Constructor & Destructor Documentation

MessageDialog::MessageDialog (  )  [private]

Definition at line 36 of file MessageDialog.cpp.

References GLWWindow::disabled_, ClientChannelManager::instance(), ClientChannelManager::registerClient(), and GLWWindow::windowLevel_.

Referenced by instance().

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

Definition at line 49 of file MessageDialog.cpp.


Member Function Documentation

MessageDialog * MessageDialog::instance (  )  [static]

Definition at line 30 of file MessageDialog.cpp.

References instance_, and MessageDialog().

Referenced by ClientWindowSetup::addCommonComponents().

void MessageDialog::clear (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 79 of file MessageDialog.cpp.

References showTime_, and texts_.

Referenced by channelText().

void MessageDialog::draw (  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 85 of file MessageDialog.cpp.

References GLState::BLEND_ON, currentText_, GLState::DEPTH_OFF, GLFont2d::draw(), GLWWindow::draw(), GLWFont::getGameFont(), GLViewPort::getHeight(), GLFont2d::getWidth(), GLViewPort::getWidth(), GLWFont::instance(), GLWidget::setH(), GLWidget::setW(), GLWidget::setX(), GLWidget::setY(), showTime_, and GLState::TEXTURE_OFF.

void MessageDialog::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 65 of file MessageDialog.cpp.

References currentText_, showTime_, and texts_.

void MessageDialog::channelText ( ChannelText text  )  [virtual]

Implements ClientChannelManagerI.

Definition at line 53 of file MessageDialog.cpp.

References clear(), ChannelText::getMessage(), and texts_.

void MessageDialog::registeredForChannels ( std::list< ChannelDefinition > &  registeredChannels,
std::list< ChannelDefinition > &  availableChannels 
) [virtual]

Implements ClientChannelManagerI.

Definition at line 59 of file MessageDialog.cpp.


Member Data Documentation

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

Definition at line 49 of file MessageDialog.h.

Referenced by instance().

float MessageDialog::showTime_ [protected]

Definition at line 50 of file MessageDialog.h.

Referenced by clear(), draw(), and simulate().

LangString MessageDialog::currentText_ [protected]

Definition at line 51 of file MessageDialog.h.

Referenced by draw(), and simulate().

std::list<LangString> MessageDialog::texts_ [protected]

Definition at line 52 of file MessageDialog.h.

Referenced by channelText(), clear(), and simulate().


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