Advanced Strategic Command
Public Member Functions | List of all members
IngameMessageViewer Class Reference
Inheritance diagram for IngameMessageViewer:
Inheritance graph
[legend]

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)
 
bool eventKeyDown (const SDL_KeyboardEvent *key)
 
bool getKeepMessage ()
 
 ~IngameMessageViewer ()
 
- Public Member Functions inherited from ASC_PG_Dialog
 ASC_PG_Dialog (PG_Widget *parent, const PG_Rect &r, const ASCString &windowtext, WindowFlags flags=DEFAULT, const ASCString &style="Window", int heightTitlebar=25)
 
PG_Button * AddStandardButton (const ASCString &name)
 
void StandardButtonDirection (StandardButtonDirectonType dir)
 
int RunModal ()
 

Additional Inherited Members

- Public Types inherited from ASC_PG_Dialog
enum  StandardButtonDirectonType { Vertical, Horizontal }
 
- Static Public Member Functions inherited from ASC_PG_Dialog
static PG_Rect centerRectangle (const PG_Rect &rect)
 
- Protected Member Functions inherited from ASC_PG_Dialog
virtual bool closeWindow ()
 
bool quitModalLoopW (PG_Button *button, int value)
 
bool quitModalLoop (int value)
 
- Protected Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller
 

Detailed Description

Definition at line 170 of file messagedlg.cpp.

Constructor & Destructor Documentation

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

Definition at line 325 of file messagedlg.cpp.

References displayLogMessage().

Member Function Documentation

bool IngameMessageViewer::eventKeyDown ( const SDL_KeyboardEvent *  key)
inlinevirtual
bool IngameMessageViewer::getKeepMessage ( )
inline

Definition at line 320 of file messagedlg.cpp.

Referenced by viewmessage().

void IngameMessageViewer::Hide ( bool  fade = false)
inline

Definition at line 290 of file messagedlg.cpp.

References getPGApplication(), and ASC_PG_App::queueWidgetForDeletion().

void IngameMessageViewer::SetMessage ( const Message msg)
inline

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