Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

IngameMessageViewer Class Reference

Inheritance diagram for IngameMessageViewer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 IngameMessageViewer (const ASCString &title, const Message &msg, PG_Rect rect=PG_Rect(50, 50, 500, 400), bool autoHeader=true)
void SetMessage (const Message &msg)
void Hide (bool fade=false)
 Hide a widget.
bool eventKeyDown (const SDL_KeyboardEvent *key)
 Overridable Eventhandler for a SDL_KeyboardEvent message.
bool getKeepMessage ()
 ~IngameMessageViewer ()

Constructor & Destructor Documentation

IngameMessageViewer::IngameMessageViewer const ASCString title,
const Message msg,
PG_Rect  rect = PG_Rect( 50, 50, 500, 400 ),
bool  autoHeader = true
[inline]
 

Definition at line 197 of file messagedlg.cpp.

References actmap, Message::cc, Message::from, Message::getFromText(), PG_Rect::Height(), PG_Rect::PG_Rect(), Message::reminder, SetMessage(), TextRenderer::SetText(), PG_RichEdit::SetText(), PG_ThemeWidget::SetTransparency(), PG_Button::sigClick, Message::text, Message::to, PolygonTriangulationLibrary::tr, and PG_Rect::Width().

IngameMessageViewer::~IngameMessageViewer  )  [inline]
 

Definition at line 317 of file messagedlg.cpp.

References displayLogMessage().


Member Function Documentation

bool IngameMessageViewer::eventKeyDown const SDL_KeyboardEvent *  key  )  [inline, virtual]
 

Overridable Eventhandler for a SDL_KeyboardEvent message.

This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
key SDL_KeyboardEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from ASC_PG_Dialog.

Definition at line 288 of file messagedlg.cpp.

References ASC_PG_Dialog::eventKeyDown(), ASC_PG_Dialog::quitModalLoop(), and TextRenderer::saveText().

bool IngameMessageViewer::getKeepMessage  )  [inline]
 

Definition at line 312 of file messagedlg.cpp.

Referenced by viewmessage().

void IngameMessageViewer::Hide bool  fade = false  )  [inline, virtual]
 

Hide a widget.

Parameters:
fade do a smooth fade out if true (non-threaded)

Reimplemented from PG_Widget.

Definition at line 282 of file messagedlg.cpp.

References getPGApplication(), and PG_Widget::Hide().

void IngameMessageViewer::SetMessage const Message msg  )  [inline]
 

Definition at line 258 of file messagedlg.cpp.

References actmap, PG_Application::BulkModeActivator::disable(), Message::getCcText(), Message::getFromText(), Message::getToText(), TextRenderer::SetText(), PG_Widget::Show(), and Message::text.

Referenced by IngameMessageViewer(), and MessageSelectionWindow::messageSelected().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:17:42 2008 for Advanced Strategic Command by  doxygen 1.4.2